if I play a song on my site, the flash player opens and plays it - perfect - (other than I'd like it to start playing automatically instead of opening the flash player, waiting, then seeing it says click to play)....but, if I go to my Chart page, it still downloads the m3u file. How can I make the chart page play via the flash pop up too?
Joined: 30 Mar 2005
Posts: 4086
Location: Southern California
Posted: 03/15/07 07:01
lwaa:
if I play a song on my site, the flash player opens and plays it - perfect - (other than I'd like it to start playing automatically instead of opening the flash player, waiting, then seeing it says click to play)....
If your using the HiFi&LoFi button popup artist page add-on I put together.
You'll need to edit the following 2-templates from your "themes/Cobalt/" directory.
1. song_popup_hifi.tpl
2. song_popup_lofi.tpl
Find this in 2-places in both templates........
&autoload=true
And then add this right after it
&autoplay=true
So it will read like this in 2-places in both templates.
&autoload=true&autoplay=true
And if you not using the Add-on I put together, then just find the player code your using in the popup and add "&autoplay=true"
lwaa:
but, if I go to my Chart page, it still downloads the m3u file. How can I make the chart page play via the flash pop up too?
thanks!
I can tell you how to do this but it will modify all the charts on your site to use only the popup player and not just the chart in your artist theme.
I can tell you how to do this but it will modify all the charts on your site to use only the popup player and not just the chart in your artist theme.
so then whenever anyone tries to play a song on the site, it'll play via the flash player, and not download an m3u file? Perfect.....thanks! Please tell.....
Joined: 30 Mar 2005
Posts: 4086
Location: Southern California
Posted: 03/15/07 08:46
lwaa:
so then whenever anyone tries to play a song on the site, it'll play via the flash player, and not download an m3u file? Perfect.....thanks! Please tell.....
2. If you do this you will have to also modify each new theme you install to only use the popup players with the HiFi and LoFi buttons or your overall site charts will display "page not found" when somone clicks on a button to play a song of an artist thats using a theme that hasn't been modified.
Please keep in mind that I have not thoroughly tested this...........
MOD..............
1. Edit the "skins/Cobalt/jr_chart_row.tpl" template
Find this..........
Code
{* check to be sure that HIFI STREAMS are allowed *}
{if $HIFI_ALLOW_STREAM == 'yes' && $SONG_HIFI_SIZE > 0}
<a href="{$SONG_HIFI_PLAY_URL}"><img src="{$SKIN_URL}/images/play_hifi.png" align="middle" style="vertical-align: middle" border="0" alt="Play HIFI" title="Play HIFI"></a>
{/if}
{* check to be sure that LOFI STREAMS are allowed *}
{if $LOFI_ALLOW_STREAM == 'yes' && $SONG_LOFI_SIZE > 0}
<a href="{$SONG_LOFI_PLAY_URL}"><img src="{$SKIN_URL}/images/play_lofi.png" align="middle" style="vertical-align: middle" border="0" alt="Play LOFI" title="Play LOFI"></a>
{/if}
And replace it with this................
Code
{* check to be sure that HIFI STREAMS are allowed *}
{if $HIFI_ALLOW_STREAM == 'yes' && $SONG_HIFI_SIZE > 0}
<a href="{$ARTIST_URL}/{$SONG_ID}hifi.php" title="Play Song Hifi" onclick="popwin(this.href,'name','490','240','no');return false"><img src="{$SKIN_URL}/images/play_hifi.png" align="middle" style="vertical-align: middle" border="0" alt="Play HIFI" title="Play HIFI"></a>
{/if}
{* check to be sure that LOFI STREAMS are allowed *}
{if $LOFI_ALLOW_STREAM == 'yes' && $SONG_LOFI_SIZE > 0}
<a href="{$ARTIST_URL}/{$SONG_ID}lofi.php" title="Play Song Hifi" onclick="popwin(this.href,'name','490','240','no');return false"><img src="{$SKIN_URL}/images/play_lofi.png" align="middle" style="vertical-align: middle" border="0" alt="Play LOFI" title="Play LOFI"></a>
{/if}
help! It was working perfectly, now it doesn't on the index.php page - on the other pages, the flash player comes up perfectly!
I installed the automatic lofi creator and the LAME things for video - I updated everything to the latest version. I just reamended the jr_chart_row.tpl file as per your instructions, and am getting m3u's downloaded instead of the flash player! Argh!!
Joined: 30 Mar 2005
Posts: 4086
Location: Southern California
Posted: 03/15/07 22:41
lwaa:
help! It was working perfectly, now it doesn't on the index.php page - on the other pages, the flash player comes up perfectly!
I installed the automatic lofi creator and the LAME things for video - I updated everything to the latest version. I just reamended the jr_chart_row.tpl file as per your instructions, and am getting m3u's downloaded instead of the flash player! Argh!!
Does it still work in all your main chart pages and artist pages??
The index page uses the spotlight template, I think its "skins/jr_ranking_spotlight.tpl" but I'll have to confirm that later and post the changes needed.
Joined: 30 Mar 2005
Posts: 4086
Location: Southern California
Posted: 03/18/07 20:08
lwaa:
Thanks, but it only works if I'm logged in. Ideally, I'd like the radio on the home page to be playable by non members too, just the radio.
You can set streaming options in the Admin under......
jamroom config - Account Settings - Stream Media Login
You can allow streaming or not allow streaming of all music from your site for visitors without being logged in, but I dont think there is a way to confine it to just radio stations.