Last Game Section version: 1.2



Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
High Scores won't save
18-05-2008, 08:11
Post: #1
High Scores won't save
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?
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
18-05-2008, 17:24
Post: #2
RE: High Scores won't save
You don't get an error?

Online - Urbanus
Visit this user's website Find all posts by this user
Quote this message in a reply Firefox Linux
18-05-2008, 20:20
Post: #3
RE: High Scores won't save
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.
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
19-05-2008, 21:13
Post: #4
RE: High Scores won't save
Which MyBB version are you using?

Online - Urbanus
Visit this user's website Find all posts by this user
Quote this message in a reply Firefox Linux
19-05-2008, 23:06
Post: #5
RE: High Scores won't save
MyBB version: 1.2.12

I tried re-installing but it still won't work.
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
20-05-2008, 16:55
Post: #6
RE: High Scores won't save
Strange, normally that ran with a plugin. Are you using many large plugins?

Online - Urbanus
Visit this user's website Find all posts by this user
Quote this message in a reply Firefox Windows XP/2003
20-05-2008, 23:35
Post: #7
RE: High Scores won't save
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.
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
23-05-2008, 01:27 (This post was last modified: 23-05-2008 01:28 by Deviation.)
Post: #8
RE: High Scores won't save
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.
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
24-05-2008, 20:21
Post: #9
RE: High Scores won't save
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;


Online - Urbanus
Visit this user's website Find all posts by this user
Quote this message in a reply Firefox Linux
28-05-2008, 00:20
Post: #10
RE: High Scores won't save
Sorry that it took me so long to respond.

I did what you said and it works now. Thanks so much Smile
Find all posts by this user
Quote this message in a reply Internet Explorer 7 Winows Vista
Post Reply 


Forum Jump: