Log in

View Full Version : not saving high score


nyqnzguju
07-09-2007, 01:20 AM
i curtly installed a new game and that game wont save any high score people who have it other sites you can save the high score there why not at my site you guys know why

also i got the game by saving the swf to my pc

and 2 pictures thats it

Terrasoft
07-09-2007, 09:39 AM
Do you have a portal installed on your forums?

nyqnzguju
07-09-2007, 03:04 PM
what you mean by portal?

nbaphenom
07-23-2007, 10:52 PM
I do how do i fix this?

Stifmeister2
07-28-2007, 04:51 PM
what you mean by portal?
Vbadvanced, MKportal etc...



@nbaphenom:
Read the installation instructions in the zip file. ;)

Vbadvanced or another Portal
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');

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_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
----------------------------------------------------------


Otherwise your scores won't be recorded :)





MKportal
If you are using MKportal and display the forum within the Portal itself, you should add
the Link to the Arcade like this:

PortalCP -> Navigation Links -> Add new Link
Icon: /atb_urlo.gif
Title: Arcade
URL: http://www.yourdomain.com/pathtoforum/arcade.php
and activate "open in a new window" !