The Arcive of vBulletin Modifications Site. |
|
Game score not saving after upgrade to beta 5 Details »»
|
|||||||||||||||||||||||||||
|
Game score not saving after upgrade to beta 5
Developer Last Online: Sep 2011
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? Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Quote:
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: ---------------------------------------------------------- Code:
// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
require_once('./global.php');
switch($_POST['func'])
{
case "storeScore":
$_GET['act'] = "Arcade";
$_GET['module'] = "arcade";
$_GET['do'] = "pnFStoreScore";
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;
}
}
$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
Otherwise your scores won't be recorded
|
|
#3
|
||||
|
||||
|
thanks for your input Bart!
I'm using vbulletin publisher out of the box. No vbadvanced portal installed. It was working on beta 4, but I've upgraded it ytd to 5 and now the score won't be recorded. Hmm... am i the only one having this problem? |
|
#4
|
||||
|
||||
|
I am customer of vbulletin-germany and there's still vB4 beta4 actual version, no beta5 ... so I can not verify/test this yet
|
|
#5
|
|||
|
|||
|
I am on beta 5 and it works fine .:up:
|
|
#6
|
||||
|
||||
|
Thanks Bart and MrZeroPage.
I've solve this. The problem is that when I upgrade to beta 5, I did not comment out the CMS PHP Code:
|
![]() |
|
|