Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
DS Flash Players:
Popup Radio Player On Front Page (Jamroom 3.1)
daddysylem
DS Flash Players


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">)

Code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="{jr_lang id="direction" default="ltr"}">
<head>
<title>{$system_name}: Radio</title>
<meta http-equiv="Content-Type" content="text/html; charset={jr_lang id="charset" default="utf-8"}">
<meta http-equiv="Content-Language" content="{jr_lang id="name" default="en-US"}">
<meta name="description" content="{$system_name}: {$BAND_NAME}">
<meta name="keywords" content="{$BAND_NAME}">
<meta name="designer" content="Talldude Networks, LLC. - original design by Oinkba.com">
<meta name="generator" content="Jamroom {$version}">
<link href="{$JAMROOM_URL}/themes/Sage/Sage.css" rel="stylesheet" type="text/css" media="screen">

</head>

<body class="title"><center>
<div class="title" style="margin:0px auto">

{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}
{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>
</center>
</body>
</html>


2. Edit the "skins/Sage/jr_overall_footer.tpl"

A. Find this code...........

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>
  {/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
  &nbsp;&nbsp;<a href="index.php?t=radio_player" onclick="popwin(this.href,'player','180','165','yes');return false">&raquo; Launch</a>
  </div>
  {/if}
{/if}


Should be it.........
Daddysylem
daddysylem@dsplayerskins.com


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com

Last edited by daddysylem on 02/09/08 00:18; edited 2 times in total
Back to top
boplive



Joined: 03 May 2006
Posts: 817

Posted: 09/10/07 10:09 
whats up DS....
is this still good for 3.3 and so on... Wink

thanx

Back to top
daddysylem
DS Flash Players


Joined: 30 Mar 2005
Posts: 4086
Location: Southern California

Posted: 09/10/07 12:21 

boplive:
whats up DS....
is this still good for 3.3 and so on... Wink

thanx


Yes this should still be good


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
DS Flash Players

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.