vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Radio and TV Add-on (https://vborg.vbsupport.ru/showthread.php?t=152037)

Tulsa 07-15-2007 04:03 AM

Quote:

I don't have a Mac to test this with. That looks like a problem with Safari and Camino though.
Okay I guess, but did you have a thought on how to delete that Los Angeles category? Even though the "delete stations" is checked, a requester box is popping up saying it can't delete it because there's 12 stations in it.

PoetJA-1975 07-15-2007 05:58 AM

Quote:

Originally Posted by Dream (Post 1291556)
Thanks Jacquii :)

Naw - Thank YOU!
This mod is really excellent!
So much so that I even added a graphic at the top of our Radio: http://jpicforum.info/radiostations.php
I've been waiting and hoping someone would do a Radio mod for vB 3.6.x
So this is like a godsend - Really appreciate it!
Just earned a few extra monies for web design - will be sending a small donation soon!
Thanx,

Jacquii.

wengi 07-15-2007 02:40 PM

Very nice hack m8 installed :) just got 1 problem that i would like to solve if possible ... whn a guest is brousing the forum the link is active and he can listen to the stations like a registered user ..... is thre any way to hide the link from unregistered users !!!

Regards
Wengi

craigr313 07-15-2007 03:57 PM

Quote:

Originally Posted by wengi (Post 1291851)
Very nice hack m8 installed :) just got 1 problem that i would like to solve if possible ... whn a guest is brousing the forum the link is active and he can listen to the stations like a registered user ..... is thre any way to hide the link from unregistered users !!!

Regards
Wengi

when you edit the nav bar,... if you add a couple of lines of code before and after you can solve this easily,....

eg... instead of adding.......

<td class="vbmenu_control"><a href="javascript penRadioStations()$session[sessionurl_q]">$vbphrase[rs_radiostations]</a></td>

you should add......

<if condition="$show['member']"><td class="vbmenu_control"><a href="javascript penRadioStations()$session[sessionurl_q]">$vbphrase[rs_radiostations]</a></td></if>

hope this helps you and others out mate! ;)

Invalid ID 07-15-2007 04:00 PM

There's one problem... the link in the Navbar doesn't work at vbadvanced.

wengi 07-15-2007 04:06 PM

Well done Craig as always m8 .... your a star


Quote:

Originally Posted by Invalid ID (Post 1291925)
There's one problem... the link in the Navbar doesn't work at vbadvanced.

It does work for me m8 ,, in portal and in forum

Regards
Wengi

Tulsa 07-15-2007 07:57 PM

Since this is listed as an unsupported mod, I guess it's okay to post this...

Myself and at least one other person would prefer this mod to open a vb page instead of a popup window. Problem was, the navbar wasn't recognized. Here's the fix.

In the radiostations.php file find:
Code:

// ############################ CONFIG VARS ##############################
$admin_groups = rs_do_array($vbulletin->options['radiostations_admins']);
$full_users = rs_do_array($vbulletin->options['radiostations_full_users']);
$banned_users = rs_do_array($vbulletin->options['radiostations_banned_users']);
$half_users = rs_do_array($vbulletin->options['radiostations_half_users']);
$default_station = $vbulletin->options['radiostations_default_station'];

Just below it add:

Code:

$navbits = array();
$navbits[$parent] = 'RADIOSTATIONS';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
$navbar = process_replacement_vars($navbar);
eval('$headinclude = "' . fetch_template('headinclude') . '";');
$headinclude = process_replacement_vars($headinclude);
eval('$footer = "' . fetch_template('footer') . '";');
$footer = process_replacement_vars($footer);

In the RADIOSTATIONS template find:
Code:

<body>
Add below it:
Code:

$header
$navbar

At the bottom of this same template, right above the:
Code:

</body>
add:
Code:

$footer
If you want to use this in a drop down menu from your navbar, add this:

Code:

<if condition="$show['member']"><tr><td class="vbmenu_option"><a href="radiostations.php?$session[sessionurl_q]" target="_blank">$vbphrase[rs_radiostations]</a></td></tr></if>
If you prefer to have it as it's own menu item in your navbar, add this:
Code:

<if condition="$show['member']"><td class="vbmenu_control"><a href="radiostations.php?$session[sessionurl_q]" target="_blank">$vbphrase[rs_radiostations]</a></td></if>
Both will open a new window/tab depending on how the users browser is set.

This works for me, if it doesn't for you, undo it and call me a moron. :D

jaymzz 07-15-2007 08:10 PM

Many thanks! Very nice addition.

Clicked Installed!

Southernphuk 07-15-2007 09:56 PM

Jacquii you could be pissed all you want - wasn't meant as a slap at Dream. I like the mod, said as much, but also thought it needed more, just wasn't working out for me but yes, I could have stated it a bit clearly.

Now, that having been said, Tulsa above just supplied me with the changes that just made this something very useable on my site now as I didn't like the idea of not having the header/footer and frankly, I'm a PHP idiot and only pick up on this stuff slowly.

Thank you Tulsa for the added bits there, came in handy!

Dream, nice job.

Tulsa 07-15-2007 10:36 PM

You're most welcome. I'm glad to hear it worked for someone else. :)


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01687 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete