Dynamic playlists are one of my favorite things about jamroom. You can put any playlist that jamroom can generate into the flash player, including dynamic newchart, ranking, and newsearch playlists, which means your options are unlimited.
Here's how:
First, create "playall" header tpl files for each of three scripts and put those files in their respective directories. The header tpl files consist of one line of code.
For ranking:
Code
{$PLAYPAGE_HIFI_MP3_URL}
For newchart:
Code
{$PLAYALL_HIFI_MP3_URL}
For newsearch:
Code
{$PLAYPAGE_HIFI_MP3}
You might name each of them xspf_header.tpl.
Here is the flash player object code. It's slightly different than the object code floating around here. I've created it so playlists can easily be made by changing one bit of code:
(I have also created blank tpl files for ranking and newsearch for the row and footer template values. These files contain no code and I'm not sure if they're actually required.)
Not working for me. It's almost like the XSPF playlist is not getting generated as it just continues to say "Loading Playlist". I am currently on 2.66 do I need to be on a higher version for this to work?
Not working for me. It's almost like the XSPF playlist is not getting generated as it just continues to say "Loading Playlist". I am currently on 2.66 do I need to be on a higher version for this to work?
It looks like there may be a return after "...flash/xspf_player.swf?" in both places. Viewing the source, it appears the playlist is being generated.
I'm not sure if the play.php code for xspf playlists has been updated since vers2.66. Or if the playall variables were added since then. This one seems to be working for you though.
Not working for me. It's almost like the XSPF playlist is not getting generated as it just continues to say "Loading Playlist". I am currently on 2.66 do I need to be on a higher version for this to work?
It looks like there may be a return after "...flash/xspf_player.swf?" in both places. Viewing the source, it appears the playlist is being generated.
I'm not sure if the play.php code for xspf playlists has been updated since vers2.66. Or if the playall variables were added since then. This one seems to be working for you though.
Well not necessarily true. FRom what I can see it is creating the list of songs but I am wondering if the XSPF portion is actually getting created or not. I have looked at my coding and everything seems alright.
Not working for me. It's almost like the XSPF playlist is not getting generated as it just continues to say "Loading Playlist". I am currently on 2.66 do I need to be on a higher version for this to work?
It looks like there may be a return after "...flash/xspf_player.swf?" in both places. Viewing the source, it appears the playlist is being generated.
I'm not sure if the play.php code for xspf playlists has been updated since vers2.66. Or if the playall variables were added since then. This one seems to be working for you though.
Well not necessarily true. FRom what I can see it is creating the list of songs but I am wondering if the XSPF portion is actually getting created or not. I have looked at my coding and everything seems alright.
Can't figure it out! Aaaaarrrrggh!
Viewing your source against mine, they look exactly the same; so it appears the playlist is fine. I wonder if you could try downloading 2.69 and just replace the play.php script? (Make a copy of your 2.66 play.php first). Then try it. Could be stream.php was altered as well. I'd try that 'cos I think everything else is working fine.
The Only difference I can see between mine and your is at the end of the playlist of songs mine adds a + before &autolaod= etc. On yours it doesn't. I bet this is whats causing it but how do I change it?
The code you're using to embed your player. Maybe if I looked at the code I might see something. I can stick any ranking, chart, or newsearch playall call in mine and it works. But it did take me a weekend of tweaking the embed code to get it work for me. At this point, I'm pretty familiar with that, I'm afraid.
Any further advances on this, I have the same problem as cmaguire except without the additional + .. I looked at your code blindmime and it's identical to mine. Only difference is I'm not using PHP files, just feeding straight into an embeded player in a popup.
If you go to http://www.homemademusic.com and select "Artist Picks" under the PLAYLISTS menu, this page is created with a ranking call using tpl files. I think that's similar to what you're doing, perhaps.
Anyway, I've got this working for all possible jamroom playlist calls; also in smarty pages. The radio and smarty types took some tweaking and trial and error sometimes. So I've been through this stuff fairly thoroughly and might be able to help if I saw some code and the page it's on. The type of page would help as well.