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)

just77me 06-15-2008 04:28 PM

we got problems when we want to edít or change the stations...

myandy99 06-25-2008 01:59 AM

I am trying to change radioandtv.php by adding a header <?php include("/home/test/public_html/plugins/header.html"); ?> so that the Radio and TV page can run as an independent web page.

It works fine with FireFox browser, but in IE browser I got following error and the page won't load:

Unable to add cookies, header already sent.
File: /home/simfera/public_html/plugins/news/header.html
Line: 9

What is going on?

myandy99 06-25-2008 02:07 AM

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

I did what you said and it works great in FireFox but in IE browser I get following error:

Unable to add cookies, header already sent.
File: /home/simfera/public_html/forums/radioandtv.php
Line: 3

What have I missed?

mycitylive 07-01-2008 10:21 AM

Problems

user, you have no rights to access this page. The reasons could e.g. be responsible for:

You try to raise another user to change or to administrative functions. Please check the forum rules, whether this action.
If you tried to make a contribution to write, it may be that your account has been disabled or enabled.
---
Probleme

user, Sie haben keine Rechte, um auf diese Seite zuzugreifen. Folgende Gründe könnten z.B. dafür verantwortlich sein:

Sie versuchen, den Beitrag eines anderen Benutzers zu ändern oder auf administrative Funktionen zuzugreifen. Überprüfen Sie bitte in den Forenregeln, ob Sie diese Aktion ausführen dürfen.
Wenn Sie versucht haben, einen Beitrag zu schreiben, kann es sein, dass Ihr Benutzerkonto deaktiviert wurde oder noch aktiviert werden muss.

HELP ME PLEASE

Dream 07-02-2008 12:11 AM

set your usergroup permissions

mycitylive 07-02-2008 04:07 AM

Super Thanks

NAZIA 07-05-2008 03:32 AM

Quote:

Originally Posted by Big-K (Post 1380573)
Here's my contribution to this project - 292 UK Radio Stations.

But I need help classifying some of the players correctly - I wish this hack will auto-detect the player

Hmm.. well I have uploaded this attachment but did not find any chanel working,,
Then I have checked the coding.. every url of the radio stream have one space each.

Quote:

<url><![CDATA[
http://wm-tlrc.london.as34763.net/sn
]]></url>
as shown above

and then I have deleted all spaces from the url, so these stations are working perfectly,

Now the above url is
Quote:

<url><![CDATA[ http://wm-tlrc.london.as34763.net/sn]]></url>
What this extra space was doing..
I have checked the url of the radio channels from the online palyer as shown in image below...it is adding the link of the forum url before the streaming url..
see the attachment below..

Now upload this play list.. to play the radio stations.:)

Bobbrown 07-15-2008 01:04 PM

I found that if using @firefox then it would not open some(most) stations but they are fine with @I.E.
Anyone solve the firefox thing for me?

Raptor 07-22-2008 06:45 PM

how to mass delete all stations ?

Konstantinos 07-23-2008 04:25 PM

delete the category where they belong


All times are GMT. The time now is 03:31 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.02266 seconds
  • Memory Usage 1,750KB
  • 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