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)

Dream 08-14-2007 01:11 PM

Updated to version 1.1, fixed all problems people were having

- changed order on setting usergroup permissions, requirements are now checked in this order: Half User > Full User > Admin > Banned User, checks for primary and secondary usergroups and userids for banned users
- fixed style issue with the station pages
- fixed duplicate station not being reported ("reporttype" gpc var wasn't being cleaned)
- fixed member number not showing on "reported by" url (was using $user[userid] instead $report[userid])
- fixed station not being editable/deletable by user who added it ($vbulletin var wasn't on global in function rs_construct_station_options() and rs_check_ownership() )


Upgrade is easy just follow the instructions in upgrade.txt. You won't need to revert any template.

The only template changed is RADIOSTATIONS_STATIONS_NAVBAR, if you like the old one with table border replace it with this:

HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="alt1" align="center">
        <div class="fieldset" style="margin:0px">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <form action="javascript:listCategory()" name="listCategoryForm">
                <td class="smallfont" align="left">
                    $html_category_list
                    <input type="Submit" class="button" value="$vbphrase[rs_update]" name="send" />
                </td>
                </form>
                <td align="center">
                    <strong>$html_random_station</strong>
                </td>
                <form action="javascript:searchStation()" name="searchForm">
                <td class="smallfont" align="right">
                    <input type="Text" name="searchfor" class="smallfont" size="20" />
                    <input type="Submit" class="button" value="$vbphrase[rs_search]" name="send" />
                </td>
                </form>
            </tr>
            </table>
        </div>
    </td>
</tr>
</table>
<br />


edit: RADIOSTATIONS_PAGES was also changed, but I doubt anyone customized that.

bazzup 08-14-2007 02:26 PM

cheers for the update

wickland 08-14-2007 04:57 PM

updated

thanks

Aren 08-14-2007 06:15 PM

Hi there, Dream.

I just found a bug that I don't know if has already been reported (I'm using 1.1 actually).

I had a single category and just one station and, after doing some tests, just decided to remove the station. When I clicked on the "Remove" link all I got was a horrible javascript alert window with HTML content in it (I could read the tags). After checking it, I found that it was the vB database error page.

Checked my email and found there the complete information of what had happend:

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE radiostation SET played = played + 1
                                                WHERE stationid =;

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        : Tuesday, August 14th 2007 @ 07:01:01 PM
Script      : http://forum/radiostations.php
Referrer    : http://forum/radiostations.php
IP Address  : **********
Username    : *****
Classname    : vB_Database

Hope this helps you improve an already excellent mod.

Keep up the good work, mate!

Cheers!

iogames 08-14-2007 09:04 PM

Ok divide it on standard & advanced and I will do a large donation ;)

Dream 08-14-2007 09:14 PM

Quote:

Originally Posted by Aren (Post 1317519)
Hi there, Dream.

I just found a bug that I don't know if has already been reported (I'm using 1.1 actually).

...


Well this mod wasn't really designed to have 0 stations so I'm not sure that's a bug. It will go away as soon as you add one station, I'm not sure it's worth adding more code to check for that.

Quote:

Originally Posted by iogames (Post 1317631)
Ok divide it on standard & advanced and I will do a large donation ;)


What do you expect of an advanced version?

iogames 08-14-2007 09:28 PM

Standard = Simple Player with the Stats on the left as you have it...
Advanced= The rest of the Features, is not adding more, just dividing for aesthetic purposes ;)

MiahBeSmokin420 08-15-2007 12:19 AM

getting this databade error

vb version 3.6.7

Code:

Database error in vBulletin 3.6.7:

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        : Tuesday, August 14th 2007 @ 08:19:06 PM
Script      : http://stillfallinentertainment.com/vB-Forums/radiostations.php
Referrer    :
IP Address  : EDITED OUT
Username    : EDITED OUT
Classname    : vb_database


Dream 08-15-2007 12:22 AM

What were you doing when you got that?

bostton1 08-15-2007 07:11 AM

I was wondering if there is any way for the media player to restart automatically(like when you first launch the player) after you click on one of the catergories. its gets kind of annoying browsing then having to scroll to the top and hit the play button twice all the time.


All times are GMT. The time now is 09:32 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.01558 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)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