Game Section Community Forums

Full Version: High Scores won't save
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, I just finished installing the plugin. Everything seems to be working fine but after playing a game, the score doesn't seem to submit. Instead, it just goes back to the index page and the scores don't save. I followed each step of the readme. Any idea how I can fix this?
You don't get an error?
No error message - it just goes to the index page (which is a portal). When you go back to the games section, there are no scores saved.
Which MyBB version are you using?
MyBB version: 1.2.12

I tried re-installing but it still won't work.
Strange, normally that ran with a plugin. Are you using many large plugins?
Ads after first post
Users Viewing This Thread
Custom Pages
Classic Reputation System
Default Profile
Game Section
Goughy AJAX Shoutbox
Guest Access
SkunkMedals System
Modnotice
Quick Theme!
Redirect on register
RSS To Post
Rules Page
Shoutbox
Staff Application
Status in profile
Username Profile
User Guestbooks
Forum Warnings
Welcome Message

Those are the plugins that are currently activated.
I just tried to re-do everything in the readme step by step to make sure that I didn't miss anything. Problem still happening.
I don't see immediately the problem.

Maybe it works now: open index.php and find:
PHP Code:
require_once "./global.php"

After, add:
PHP Code:
switch($mybb->input['act'])
{
    case 
'Arcade':
        switch(
$mybb->input['do'])
        {
            case 
'newscore':
                require_once 
MYBB_ROOT."games/submit.php";
            break;
        }
    break;
}

switch(
$mybb->input['autocom'])

{
    case 
'arcade':
        switch(
$mybb->input['do'])

        {
            case 
'verifyscore':
                 
$randchar1 rand(1200);
                 
$randchar2 rand(1200);
                 
                 echo(
"&randchar=".$randchar1."&randchar2=".$randchar2."&savescore=1&blah=OK");
            break;
            case 
'savescore':
                require_once 
MYBB_ROOT."games/submit.php";
            break;
            case 
'newscore':
                require_once 
MYBB_ROOT."games/submit.php";
            break;
        }
    break;

Sorry that it took me so long to respond.

I did what you said and it works now. Thanks so much Smile
Pages: 1 2