PDA

View Full Version : V3Arcade Category search fix


frankenberrie
10-26-2004, 10:00 PM
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:

// ######################### 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:

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.

Lionel
10-27-2004, 04:45 PM
Thank you... that was annoying that mysql error.

mrcancel
10-27-2004, 05:59 PM
thanks you ... i fixed !!!

Polo
10-28-2004, 06:48 PM
thanks frankenberrie :)