Thread: vBRadio v1.0
View Single Post
  #287  
Old 03-06-2005, 05:42 AM
Joe Pimms Joe Pimms is offline
 
Join Date: Jan 2005
Location: Canada
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey i was messing around with this hack and i was thinking of maybe why not put this hack on the forumhome template so i did that :

PHP Code:
in FORUMHOME look for:

<if 
condition="$show['birthdays']">
<!-- 
today's birthdays -->

put under:

<!-- Begin vbRadio -->
<script language="JavaScript">
<!--

function changeMute(){
Player.settings.mute = '
true';
mute.innerHTML='
<a href="#" onClick="changeMute2();">Mute*</a>';
}

function changeMute2(){
Player.settings.mute = '
false';
mute.innerHTML='
<a href="#" onClick="changeMute();">Mute</a>';
}

function initiateStation(){
toPlay = document.getElementById('
thisStation')
toPlay = toPlay.options[toPlay.options.selectedIndex].value

    newRadio = "";
    newRadio += "<OBJECT ID='
Player' height='250' width='300' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>"
    newRadio += "<PARAM name='
URL' value='" + toPlay + "' id='insert_1'>"
    newRadio += "<PARAM name='
uiMode' value='none'>"
    newRadio += "<PARAM name='
mute' value='false'>"
    newRadio += "<PARAM name='
ShowControls' value='0'>"
    newRadio += "<PARAM name='
ShowStatusBar' value='0'>"
    newRadio += "<PARAM name='
ShowDisplay' value='0'>"
    newRadio += "<EMBED type='
application/x-mplayer2' "
    newRadio += "pluginspage = '
http://www.microsoft.com/Windows/MediaPlayer/' "
    
newRadio += "SRC='" toPlay "' "
    
newRadio += "name='Player' "
    
newRadio += "width='300' "
    
newRadio += "height='250' "
    
newRadio += "AutoStart='true' "
    
newRadio += "showcontrols='0' "
    
newRadio += "showstatusbar='0' "
    
newRadio += "showdisplay='0' "
    
newRadio += "id='insert_2'>"
    
newRadio += "</EMBED>"
    
newRadio += "</OBJECT>"

    
document.getElementById('radio').innerHTML newRadio

}

-->
</
script>


<
tbody>
<
table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
thead>
    <
tr>
        <
td class="tcat" colspan="2">
            <
a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_radio')"><img id="collapseimg_forumhome_radio" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
            <
div align='center'>vBRadio</div></td>
    </
tr>

<
tbody id="collapseobj_forumhome_radio" style="{$vbcollapse['collapseobj_forumhome_radio']}">
    <
tr>
        <
td class="thead" width="50%" align="center">Stations/Control</td>
            </
tr>

<
tr>
<
td class='alt2' valign='top'>

    <
fieldset class="fieldset">
    <
legend>Available Stations</legend>
    <
center>
    {
$Station_Select}<br /><br />
    <
input type='button' value='Play This Station' class='button' onclick='initiateStation()' />
    </
center>
    </
fieldset>

    <
br/>

    <
fieldset class="fieldset">
    <
legend>Player Controls</legend>
    <
center>
    [<
font id='mute'><a href='#' onClick='changeMute();'>Mute</a></font>]
    [<
a href='#' onClick='javascript:Player.controls.play();'>Play</a>]
    [<
a href='#' onClick='javascript:Player.controls.stop();'>Stop</a>]
    [
Controls: <a href='#' onClick='javascript:Player.uiMode = "mini";'>On</a> |
           <
a href='#' onClick='javascript:Player.uiMode = "none";'>Off</a>]
    <
br />
    [
Volume:
    <
a href='#' onClick='javascript:Player.settings.volume= 0;'>0</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 10;'>1</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 20;'>2</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 30;'>3</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 40;'>4</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 50;'>5</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 60;'>6</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 70;'>7</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 80;'>8</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 90;'>9</a>
    <
a href='#' onClick='javascript:Player.settings.volume= 100;'>10</a>]
    </
center>
    </
fieldset>

</
td>

<</
td>

</
tr>
</
tbody>

<!-- /
End vbRadio --> 
ok so heres the problem it will not work im i missing some thing on this ?

oh yes as you can see i removed the object as well...

im i to put some thing in the phpinclude_start template ?

please help
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01343 seconds
  • Memory Usage 1,861KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete