Thread: Add-On Releases - Radio and TV Add-on
View Single Post
  #1140  
Old 05-30-2008, 07:21 AM
TRa5H's Avatar
TRa5H TRa5H is offline
 
Join Date: Apr 2008
Location: Middletown, PA
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok found it.. yeah i was just being a blonde.. lol

anyways I also edited a mod i found here: https://vborg.vbsupport.ru/showthrea...ight=shoutcast

With this i edited to work for your RadioandTv mod.. below is the coding i used to add a link button to the navbar which works as another option for alternate Templates.. below is the exact code I am currently using..

After Placing the following code the as you would when installing the RadioandTv mod at the very top of the navbar template:
Code:
<script type="text/javascript">
<!--
function openRadioAndTV(){
radioAndTVWindow = window.open('radioandtv.php', 'radioandtv', 'directories=no,height=500,width=700,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no');
}
//-->
</script>

You then would need to find the following code in the navbar Template:
Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
		</if>
	</td>

Underneath add:
Code:
<!-- / START RADIOandTV button-->

<td>
<a href="javascript:openRadioAndTV()"><img src="http://img.photobucket.com/albums/v715/azurekidx/radio_button.jpg" border="0" alt="Tune into R?? Radio"></a>
</td>

<!-- / END RADIOandTV button-->

thats it.. i just thought since i put you through so much trouble teaching a noob how to set permissions since its not like i have done it over and over and still forget to set them lol.. that you all could use this.. ..

well thanks again.. you can see how its working at my site as the Demo :up:

Below is the Image i used for the Navbar button just change colors for your site in photoshop or use your own:




I posted this in a mod forum at https://vborg.vbsupport.ru/showthread.php?t=180988 so it can be used.. thanks again later
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01111 seconds
  • Memory Usage 1,769KB
  • 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
  • (3)bbcode_code
  • (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