Version: , by Amiga Harrison
Developer Last Online: Aug 2014
Version: Unknown
Rating:
Released: 06-16-2010
Last Update: Never
Installs: 0
No support by the author.
I'm running vB4 suite and have it configured so that the index.php file is moved to the root of the website. So the CMS is reached using forum.domain.com and the forums are reached using forum.domain.com/forum/
And I have the default script set in the index.php file to content.php
Where do I need to add the code to make saving high scores work? In index.php, content.php or forum.php?
I've tried adding it to each of these files in turn, but nothing works. In all cased when I test it I get the mesages "..could not save your high score".
I've noticed many other people asking exactly the same question and no one really giving a direct answer; instead saying the answers are in this forum, which they are obviously not clearly. I never had issues when running vBA and vB3.x and including the code in that CMS's index.php file, but it just won't work in vB4 with vBCMS.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I am seeing exactly the same thing and have been ever since trying to get the arcade going with vb4.
I've tried all three file edits, but I have just the index.php edited at the moment.
The exact message is"This score was not submitted from the game. Your score will not be saved."
I get the same from every game that I've been able to test. I even installed two new games just so I'd have games with no scores - to be sure my score would be my personal best as well as high score.
I've tried installing the plugin again as well. No change.
This is my index.php file:
Code:
<?php
// 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
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.0.4 - Licence Number
I am seeing exactly the same thing and have been ever since trying to get the arcade going with vb4.
I've tried all three file edits, but I have just the index.php edited at the moment.
The exact message is"This score was not submitted from the game. Your score will not be saved."
I get the same from every game that I've been able to test. I even installed two new games just so I'd have games with no scores - to be sure my score would be my personal best as well as high score.
I've tried installing the plugin again as well. No change.
This is my index.php file:
Code:
<?php
// 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
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.0.4 - Licence Number
Any help at all will be greatly appreciated.
I'm not quite sure what the default index.php looks like for vB4, but I was pretty sure it included more information that that. Are you sure this is the index file for your website?
I'm not quite sure what the default index.php looks like for vB4, but I was pretty sure it included more information that that. Are you sure this is the index file for your website?
I didn't include the entire file. I just wanted to show that I had the code shown in the INFO files right after the opening <?php
I'm not quite sure what the default index.php looks like for vB4, but I was pretty sure it included more information that that. Are you sure this is the index file for your website?
thats just the script upgrade for the arcade that has to be put into the index..it looks right..at a glance
I have the same problem and cant save high scores....and the zip folder doesnt show an info file.
--------------- Added [DATE]1277641745[/DATE] at [TIME]1277641745[/TIME] ---------------
well I went back through everything and redid all the script addons and it works now.
well I went back through everything and redid all the script addons and it works now.
What did you do exactly?
Re-install?
Did you un-install first or just install over the existing installation?
If you did an uninstall, did you have to setup all of your games again as well or were they still there?