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)

yoyoyoyo 09-17-2007 12:53 PM

Quote:

Originally Posted by EvilAkuma (Post 1340817)
Dream,

Fixs your upgrade. You forgot to mention to edit the radiostations.php to radioandtv.php ;)

If you were using just the radio and decided to use now Radio and Tv Station.

Change the radiostations.php to radioandtv.php in your navbar so you won't get invalid page.

The radiostations.php and radioandtv.php are not the same file - the radioandtv.php has many new/changed lines of code - do a comparison - to simply change the name of the old radiostations.php to radioandtv.php sort of defeats the purpose of the upgrade.

soulface 09-17-2007 03:49 PM

...after updating from old to this new version. its just broke... adding/deleting categories wont working..

Im getting this db error..

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT cat_name FROM radiostation_category
WHERE categoryid =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
Error Number : 1064
Date : Monday, September 17th 2007 @ 06:46:25 PM
Script : http://www.xxxxxxxx.net/radioandtv.php
Referrer : http://www.xxxxxxxx.net/forumdisplay.php?f=141
IP Address : xxx.xxx.xxx.xxx
Username : Eros
Classname : vb_database

bob12 09-17-2007 03:56 PM

Where do i go to add this line <script type="text/javascript">
<!--
function openRadioAndTV(){
radioAndTVWindow = window.open('radioandtv.php', 'radioandtv', 'directories=no,height=500,width=700,location=no,m enubar=no,resizable=yes,status=no,scrollbars=yes,t oolbar=no');
}
//-->
</script>

Now for the Radio and TV link, you can find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

And after that, add

<td class="vbmenu_control"><a href="javascript:openRadioAndTV()">$vbphrase[rs_radiostations]</a></td>

Save your navbar template.

G0F0RBR0KE 09-17-2007 07:09 PM

Quote:

Originally Posted by yoyoyoyo (Post 1340821)
The radiostations.php and radioandtv.php are not the same file - the radioandtv.php has many new/changed lines of code - do a comparison - to simply change the name of the old radiostations.php to radioandtv.php sort of defeats the purpose of the upgrade.

I already know that they're not the same.

However, since some user(s) were using the radiostations.php before radioandtv.php. There codes will be like this.

Code:

<script type="text/javascript">
<!--
function openRadioAndTV(){
radioAndTVWindow = window.open('radiostations.php', 'radiostations', 'directories=no,height=500,width=700,location=no,menubar=no,resizable=yes,status =no,scrollbars=yes,toolbar=no');
}
//-->
</script>

Now for the Radio and TV link, you can find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

And after that, add

<td class="vbmenu_control"><a href="javascript: OpenRadioAndTV()">$vbphrase[rs_radiostations]</a></td>


attilio 09-17-2007 08:02 PM

Quote:

Originally Posted by Dream (Post 1340332)
Update your radioandtv_admin.php, I updated the zip file, let me know if it works

Yep, works. Thanks!

Has anyone got a list of TV channels to import?

Dream 09-17-2007 08:27 PM

Quote:

Originally Posted by Doctor Death (Post 1340734)
I upgraded to 1.3 and all works fine except importing new radio stations... Here is error I get from a custom HTML error screen... (Notice that the link to admin CP is not the updated one but rather the old one.)



Did I make a mistake in upgrade or was this overlooked in upgrade?

Update your radioandtv_admin.php, it had a problem and I updated the zip file, I said as much a couple of posts back
Quote:

Originally Posted by EvilAkuma (Post 1340817)
Dream,

Fixs your upgrade. You forgot to mention to edit the radiostations.php to radioandtv.php ;)

If you were using just the radio and decided to use now Radio and Tv Station.

Change the radiostations.php to radioandtv.php in your navbar so you won't get invalid page.

the upgrade instructions are in upgrade.txt, you don't edit the radiostations.php file, you just delete it, as it says in the upgrade.txt file
Quote:

Originally Posted by soulface (Post 1340923)
...after updating from old to this new version. its just broke... adding/deleting categories wont working..

Im getting this db error..

adding and deleting categories works fine for me, do you have any other info about this? did you remove anything directly from the database?
Quote:

Originally Posted by bob12 (Post 1340926)
Where do i go to add this line <script type="text/javascript">
<!--
function openRadioAndTV(){
radioAndTVWindow = window.open('radioandtv.php', 'radioandtv', 'directories=no,height=500,width=700,location=no,m enubar=no,resizable=yes,status=no,scrollbars=yes,t oolbar=no');
}
//-->
</script>

Now for the Radio and TV link, you can find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

And after that, add

<td class="vbmenu_control"><a href="javascript:openRadioAndTV()">$vbphrase[rs_radiostations]</a></td>

Save your navbar template.

you add that javascript code at the top of the navbar template, as it says in the install.txt file (but don't forget to remove the old one)

Dream 09-17-2007 08:29 PM

Quote:

Originally Posted by attilio (Post 1341157)
Yep, works. Thanks!

Has anyone got a list of TV channels to import?

glad it worked for you :)

skavenger shared some TV stations a couple of posts back

https://vborg.vbsupport.ru/showpost....&postcount=513

they seem to be spanish and portuguese stations

bob12 09-17-2007 08:38 PM

Hey dream can you help me with hack please

Dream 09-17-2007 08:40 PM

help with what?

I replied your message above

bob12 09-17-2007 08:43 PM

Where do i find the navbar template, is it in my ftp account


All times are GMT. The time now is 07:04 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.02010 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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