Version: , by RCWF-AoD
Developer Last Online: Jul 2009
Version: Unknown
Rating:
Released: 04-29-2008
Last Update: Never
Installs: 0
No support by the author.
Alright, my problem isn't really all that complicated, but causing me some misery.
We have the forums installed in the root directory. We also have an arcade installed, and just recently we've added a VBAdvanced portal.
Here's the problem. Every time a user attempts to save their score on the arcade, it redirects them to the portal.
Here's what I believe you'd need to know.
1: Forum index is now named forumindex.php
2: VBAdvanced index is named index.php
3: Forum is installed in the root folder
4: Set the forum to see forumindex.php as the forum index.
Now, it redirects the user to the portal page and it is obviously requesting something from the index. Now, when the forum index is renamed to index.php, it works just fine.
The arcade is : ibProArcade v2.6.5+
VBulletin : 3.6.8 Level 2 patch (I don't want to proceed to 3.6.10 or 3.7 until this is fixed)
Now, the arcade shows this in it's info statement in the admincp.
"Your forum's mainpage is not index.php - please make sure to adapt your /forumindex.php otherwise scores won't be recorded!You will find detailed instructions in the ibProArcade-archive: INFO - vbadvanced or other Portal.txt or in this popup-window"
I've followed the directions in that pop-up, and I then get errors with the index.
case "saveGame":
$_GET[do] = "pnFSaveGame";
break;
case "loadGame":
$_GET[do] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc("p", "gid", TYPE_NOHTML);
$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;
}
}
$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}
// end of ibProArcade
The error I receive after adding this code is "Expected "do" statement line 18"
I'm a bit rusty on my php skills, but I just don't see the problem.
Thanks ahead of time,
RCWF-AoD
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.