Joined: 27 Apr 2006
Posts: 22009
Location: Southern California
Posted: 08/09/07 23:29
*** KYLE'S EDIT ***
This has been taken from SixString's original post in the first thread about this, but I've moved it over to a new thread because that one got into more of a discussion of RSS vs. Podcasts, and got kind of convoluted, so let it be known now that this is NOT a podcast. See this thread for more information on the two: http://www.jamroom.net/phpBB2/viewtopic.php?t=13420&start=0 *** END KYLE'S EDIT ***
And now, in the words of SixString...
Ok... A BIG THANKS to Kyle and Jill, as they really deserve all the credit for getting this feed to validate.
Finally, create a file named podcast.tpl.php and add this:
Code
<?php
// These header calls are required to get the browser to see this as an RSS Feed
header('Expires: '. gmdate('D, d M Y H:i:s', time()) .' GMT');
header('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT');
header('Content-Type: application/xml; charset=utf-8');
?>
Upload these files to your active skin folder, ie. skins/Cobalt3 or skins/Sage.
If you have more than one play list you want to turn into a podcast,just pass a different id to your url ie. index.php?t=podcast?id=2 (Thanks Kyle!)
You can name your files whatever you wish, just make sure the pre-possessor file (podcast.tpl.php) is named the same as the podcast.tpl file or it will not work.
Note: Jamroom's playlist calls are heavy hitters on your database, so I'd suggest not going too crazy with this.
I have followed your instructions step by step but I am getting the following error
XML Parsing Error: syntax error
Location: http://piknclik.biz/index.php?t=podcast
Line Number 1, Column 1:ERROR: Recursive template structure found - verify usage!
^
Your code seemed to load the rss feed and took away our first problem, but i have a second small problem, the music files wont play in itunes or nor will it open up in media player, see my link here http://www.piknclik.biz/index.php?t=podcast
I have subscribe using itunes and i can see it but it wont play.
Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble
Posted: 07/17/09 01:20
gov:
Hi kyle
Your code seemed to load the rss feed and took away our first problem, but i have a second small problem, the music files wont play in itunes or nor will it open up in media player, see my link here http://www.piknclik.biz/index.php?t=podcast
I have subscribe using itunes and i can see it but it wont play.
Please advise
Cheers
Gov
This one plays for me in iTunes:
Quote:
For Love
Jun 4, 2:46 AM
Click To Listen! Look'n For Love - By: Eddie Mills
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"
Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble
Posted: 07/17/09 01:31
http://www.jamroom.net/phpBB2/viewtopic.php?p=174508#174508
From your comment in this thread perhaps you have a network problem (contact your service provider), or a server that won't cope with serving html, let alone audio files (contact your hosts).
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"
rite still can get it to play songs, now another problem IE is showing this error
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.