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)

Naldo41 12-14-2007 11:48 PM

The product installs to my vportal user panel.

And as such the user permissions does not inject correctly.

I have it all installed just need to add the permissions somehow?

Thanks.

Dream 12-15-2007 12:28 AM

Sorry I don't use vportal, so I can't help you.

Saviour 12-16-2007 04:16 AM

I'm absolutely loving this mod...as I am most of your submissions...including your Dream Stats.

Anyway...I didn't feel like going through 60+ pages to find an answer to the problem I was facing...

I followed the directions to the tee and when I went to click the link on the navbar for the Radio and TV link...it resulted in an error on the page.

Apparently the link opens a javascript popup, but it wasn't working...it always came back with an "error on page" message.

To fix the issue...I had to edit the navbar link to point to the radioandtv.php file...opening it in a separate window. This was the only way I could fix it...

Like I said...I followed the directions to the tee...using the 1.7 version...uploaded files...installed product...added stations...set User Group permissions...edited options. I even re-installed allowing overwrite...but it just wouldn't work with the javascript popup.

I have it working...but was there something I missed?

Thanks, in advance, Dream...I appreciate it...

Chester87 12-16-2007 06:36 PM

Is there an possibility that instead of opening in a new window. It will be inside the forum itself. So you keep the same design, etc, etc. And only the banner and the navbar will stay above it?

Saviour 12-16-2007 08:17 PM

Quote:

Originally Posted by Dream (Post 1369205)
I put a link for it in the third post of this thread, so you don't need to look for it all the time.

The link in the third post regarding adding header and footer does not work properly.

If you have links in your navbar with drop down links like "Search" and "Quick Links"...these drop-down features don't work. Also...some of the links in the navbar, if clicked on, do not work.

You may want to have someone look into that. I only tried using the information you provided in another skin I'm using. Although the header and footer appeared...the drop down links don't work.

It may function properly in the default forum...didn't try it...since it didn't work for the additional skin. So if it doesn't work there...I can almost guarantee it won't work for the default skin.

The provided code may conflict with other mods I have installed...I don't know...

Just thought I'd give you a heads up.

You may want to try incorporating this mod into a user's existing forum...instead of having it open in another window. You already have the option to open the player in another window...making it larger, right? If you close the parent window of the Radio, the larger player is already connected to the media and playing. There it will remain until the user closes it.

Getting the header and footer incorporated into this mod without having to do any additional edits would be a good plus for this mod.

Just something to think about...

Dream 12-17-2007 11:06 PM

Quote:

Originally Posted by Saviour (Post 1401935)
I'm absolutely loving this mod...as I am most of your submissions...including your Dream Stats.

Anyway...I didn't feel like going through 60+ pages to find an answer to the problem I was facing...

I followed the directions to the tee and when I went to click the link on the navbar for the Radio and TV link...it resulted in an error on the page.

Apparently the link opens a javascript popup, but it wasn't working...it always came back with an "error on page" message.

To fix the issue...I had to edit the navbar link to point to the radioandtv.php file...opening it in a separate window. This was the only way I could fix it...

Like I said...I followed the directions to the tee...using the 1.7 version...uploaded files...installed product...added stations...set User Group permissions...edited options. I even re-installed allowing overwrite...but it just wouldn't work with the javascript popup.

I have it working...but was there something I missed?

Thanks, in advance, Dream...I appreciate it...

Do you use vbAdvanced or other portal software? If so, you would need to change the link to radioandtv.php to an absolute link.

Actually, this is true to the other guy that was having porblems with vBPortal too, sorry I missed that.

Dream 12-17-2007 11:06 PM

Quote:

Originally Posted by Chester87 (Post 1402298)
Is there an possibility that instead of opening in a new window. It will be inside the forum itself. So you keep the same design, etc, etc. And only the banner and the navbar will stay above it?

In the third post of this thread there's a link to instructions on how to add your navbar/footer/etc to the add-on page.

Dream 12-17-2007 11:07 PM

Quote:

Originally Posted by Saviour (Post 1402355)
The link in the third post regarding adding header and footer does not work properly.

If you have links in your navbar with drop down links like "Search" and "Quick Links"...these drop-down features don't work. Also...some of the links in the navbar, if clicked on, do not work.

You may want to have someone look into that. I only tried using the information you provided in another skin I'm using. Although the header and footer appeared...the drop down links don't work.

It may function properly in the default forum...didn't try it...since it didn't work for the additional skin. So if it doesn't work there...I can almost guarantee it won't work for the default skin.

The provided code may conflict with other mods I have installed...I don't know...

Just thought I'd give you a heads up.

You may want to try incorporating this mod into a user's existing forum...instead of having it open in another window. You already have the option to open the player in another window...making it larger, right? If you close the parent window of the Radio, the larger player is already connected to the media and playing. There it will remain until the user closes it.

Getting the header and footer incorporated into this mod without having to do any additional edits would be a good plus for this mod.

Just something to think about...

Sorry I wasn't the one that made those instructions. This mod was made from ground up to open in a separate window, and it works just fine that way, I cannot support modifications to the mod, sorry.

Saviour 12-17-2007 11:25 PM

Quote:

Originally Posted by Dream (Post 1403146)
Do you use vbAdvanced or other portal software? If so, you would need to change the link to radioandtv.php to an absolute link.

Actually, this is true to the other guy that was having porblems with vBPortal too, sorry I missed that.


Nope...no CMS installed.

Actually, using the info you provide for creating a link on the navbar, crates a javascript pop-up link. So I just went in and changed that vbmenu_control to point to the radioandtv.php file and had it open in a separate window. Works fine, now.

Saviour 12-17-2007 11:32 PM

Quote:

Originally Posted by Tulsa (Post 1292103)
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

Tulsa...

I'm running 3.6.8 PL2. Here's the problem...

I used the above to create header and footer for the Radio and TV mod. The code you provided works, but with a glitch.

If you have a navbar with drop-down menus...like Search and Quick Links...these drop-down menus will not function with the code you provided. Have you tested this with the latest stable version of vbulletin?

Would like to get this to work properly so I could incorporate it into the radioandtv.php file. By the way, I'm using the latest version (1.7) of this mod.

Hope to hear back from you soon...


All times are GMT. The time now is 03:55 PM.

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.01785 seconds
  • Memory Usage 1,771KB
  • 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
  • (6)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