Back to vBulletin 3.0 Add-Ons

V3Arcade Category search fix
Mod Version: 1.00, by frankenberrie

This modification is in the archives.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 10
Released: 27 Oct 2004 Last Update: Never Downloads: 0
Not Supported  

This is a fix for those with V3Arcade & the Category mod installed

Files in modify: Arcade.php - Should take no longer than 30 seconds

Description:
If your members do a game search and leave the search field blank, most likely they will see this:

mysql_result(): Unable to jump to row 0 on MySQL result index 29 in /arcade.php on line 341

To repair this do the following - OPEN ARCADE.PHP

FIND:
PHP Code:
// ######################### CATEGORY MOD BEGIN ###########################    
    
if (empty($_REQUEST['search']))
    {
        
// Checks to see if GET variables are valid
        
globalize($_GET, array('categoryid'=>INT'do'=>STR_NOHTML));
        
$categoryid $_GET['categoryid']; 
Directly Under Add:
PHP Code:
if ($categoryid==0) {
        
$categoryid "1";
    } 
Change the 1 in $categoryid = "1"; to the default category you want to open when the seach field is left blank.

Thats it! Hope this helped.

Download

No files for download.

Similar Mods

Add-On Releases v3arcade Add Game Category when you Mass Game Import vBulletin 3.6 Add-ons
Mini Mods v3arcade: Set Start Category ID vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024