Joined: 30 Mar 2005
Posts: 4086
Location: Southern California
Posted: 08/30/07 15:57
These Instructions are setup for the Jamroom Sage and or Cobalt3 Skins.
They might need to be modified to work in other skins.....
What This Does............
This will put a popup radio player link under your site radio player in the side panel on your front page. The popup will play only the admin station that is shown on your site front page. If you have no admin station, no popup link will be displayed.
1. Create a template called "radio_player.tpl"
Insert the code below and then upload it to your Sage and or Coalt3 skins directory (jamroom_url/skins/Sage/)or (jamroom_url/skins/Cobalt3/)
Change the link to the style sheet as needed (<link href="{$JAMROOM_URL}/themes/Sage/Sage.css" rel="stylesheet" type="text/css" media="screen">)
{* system radio station *}
{if $smarty.config.block_system_radio == 1 && is_file("`$JAMROOM_DIR`/include/flash/xspf_player.swf")}
{* see if we have a system radio station *}
{jr_ranking mode="radio" order="5" band_id="0" row_template="jr_index_side_radio.tpl" show="1" assign="radio_id" cache_time=$smarty.config.radio_id_cache_time}
{* $radio_id will be set to a number greater then 0 if we have an admin station *}
{if is_numeric($radio_id)}
<div class="head_2">{jr_lang id="10" default="radio"}</div>
<div align="center" class="body_2">
{jr_lang id="35" default="now playing" assign="playlist_title"}
{jr_flash_player player_type="`$JAMROOM_URL`/include/flash/xspf_player.swf" radio_id=$radio_id width="180" height="150" player_playlist_title=$playlist_title}
</div>
{/if}
{/if}
A. Change it to this...........
Code
{* system radio station *}
{if $smarty.config.block_system_radio == 1 && is_file("`$JAMROOM_DIR`/include/flash/xspf_player.swf")}
{* see if we have a system radio station *}
{jr_ranking mode="radio" order="5" band_id="0" row_template="jr_index_side_radio.tpl" show="1" assign="radio_id" cache_time=$smarty.config.radio_id_cache_time}
{* $radio_id will be set to a number greater then 0 if we have an admin station *}
{if is_numeric($radio_id)}
<div class="head_2">{jr_lang id="10" default="radio"}</div>
<div align="center" class="body_2">
{jr_lang id="35" default="now playing" assign="playlist_title"}
{jr_flash_player player_type="`$JAMROOM_URL`/include/flash/xspf_player.swf" radio_id=$radio_id width="180" height="150" player_playlist_title=$playlist_title}
</div>
<div class="head_2">Popup Radio
<a href="index.php?t=radio_player" onclick="popwin(this.href,'player','180','165','yes');return false">» Launch</a>
</div>
{/if}
{/if}