case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;
case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];
if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}
case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;
case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];
if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}
Notice: Undefined index: module in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 3
Notice: Use of undefined constant act - assumed 'act' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 42
Notice: Undefined index: act in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 42
Notice: Use of undefined constant autocom - assumed 'autocom' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 43
Notice: Undefined index: autocom in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 43
Notice: Use of undefined constant showuser - assumed 'showuser' in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 44
Notice: Undefined index: showuser in /var/www/vhosts/crosseyedgamer.com/httpdocs/index.php on line 44
I have this exact result myself. Any suggestions on what to do to fix this?
I am not using VBAdvanced or any other front end. The index is the original from the install so I am not understanding why I am getting this error unless it has to just be a version 4.0 issue. Also my site is total fresh install. I have run this arcade on two other forums so I know how it works and have not had a problem in the 3.x versions. Only this in 4.
The errors above appear in the root of the site, and when you finish a game and submit the score. I do get the score recorded as it should, only when this code is added to the index.php file, it just shows this text.
The instructions very clearly say to make the edits to your forum's /index.php.
--------------- Added [DATE]1270141339[/DATE] at [TIME]1270141339[/TIME] ---------------
Quote:
Originally Posted by TriAxis
I have this exact result myself. Any suggestions on what to do to fix this?
I am not using VBAdvanced or any other front end. The index is the original from the install so I am not understanding why I am getting this error unless it has to just be a version 4.0 issue. Also my site is total fresh install. I have run this arcade on two other forums so I know how it works and have not had a problem in the 3.x versions. Only this in 4.
The errors above appear in the root of the site, and when you finish a game and submit the score. I do get the score recorded as it should, only when this code is added to the index.php file, it just shows this text.
Thanks for any suggestions.
Make sure you didn't change, removed or failed to include even a single character in the PHP file.
The instructions very clearly say to make the edits to your forum's /index.php.
--------------- Added [DATE]1270141339[/DATE] at [TIME]1270141339[/TIME] ---------------
Make sure you didn't change, removed or failed to include even a single character in the PHP file.
And not to be argumentative, but I did a copy and paste of the code straight out of the instructions "INFO - vbadvanced or another Portal.txt" file included in the download. It is a very simple thing, just copy and paste it in right below the <?php in the index.php so I am surprised this didn't work first try.
This is a brand new install that is very clean. This hack was the first one I tried to add to my forums since it was one of the favorites on the 3.x sites. I have done nothing else but get vBulletin 4.0 operational, then add ibProArcade. The games run, but as instructed, if you don't add this patch from the portal.txt file the scores will not save. But adding the code puts the nonsense at the top of my index.php landing page.
I don't get the parsing error that c.c. is getting, I am getting the "Undefined index" errors only that CrosseyedGamer is getting.