It was all working good on beta 4 and after I upgrade to beta 5, the score does not save anymore.
Clicking on send score brings me to the forum index page. Anyone got the same problem?
Hi All,
It was all working good on beta 4 and after I upgrade to beta 5, the score does not save anymore.
Clicking on send score brings me to the forum index page. Anyone got the same problem?
If you are using vbAdvanced Portal and your /index.php is not the original one from vBulletin,
you have to edit your alternate index.php:
open index.php
At the very beginning of the File, right after:
----------------------------------------------------------
<?php
----------------------------------------------------------
you have to insert:
----------------------------------------------------------
// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
require_once('./global.php');
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;
}
}