Posted: Thu Jun 30, 2005 6:25 pm Post subject: High scores not recording
Not sure if this is posted anywhere or not. But on my site the high scores are not getting entered to the Database and shown on the site...
also why there is an index in the root that i did not upload, the code looks like it calls to a file that stores the scores is that true or am i miss reading the code?
forahobby Administrator
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Fri Jul 01, 2005 7:40 am Post subject:
Hi Jibaba,
The index which is supplied in the !ROOT! is there to show you the code you need to add to your own phpnuke index.php root file..
There a two lines of code you need to insert for all highscores to record into the database.. the two lines are:
Code:
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");
Open your index.php root phpnuke file in a editor and look for this line:
Code:
require_once("mainfile.php");
Straight after the line shown above add the SAVE SCORE code.
This is what it shold look like when finished:
Code:
require_once("mainfile.php");
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");
thats all you have missed... Hope that helps.
Please reply and let me know how you go.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum