HQ NETWORK:   XBOX ONE |  XBOX 360 |  AIDELUXE HQ Network: 3,910 | Guests: 398 | Members: 2 


   Current Location: Forums New Game - Fursan al-Aqsa - Knights of al-Aqsa Mosque   |   XBOX Softmodding FAQ   |   8BitDo wired controllers   |   Foxlink Model FTPS-0002 REV F power supply needed asap   |   My mission to open xbox-hq on Xbox classic. (Need help)   |   Xbox 720p Patches display in a tiny window   |   HDD Lock HELP!   |   Collection on steam   |   Kung Fu Chaos Sequel   |   I'm looking for a emulator and game roms.   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials

Xbox Forums

Discuss all aspects of the original Xbox Console in our Interactive Xbox Forums..

Get Xbox Game Pass Ultimate
Xbox-Hq.Com :: View topic - PHPNUKE 7.7-7.9: FIX "No High Scores Recorded"
Xbox-Hq.Com Forum Index -> pnFlashGames Project
Post new topic Reply to topic  Goto page 1, 2  Next  
 PHPNUKE 7.7-7.9: FIX "No High Scores Recorded" View previous topic :: View next topic  
 
 
 
 
khoaitaychienvn
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Oct 20, 2005
Posts: 3

Post Posted: Thu Oct 20, 2005 2:04 pm   
Post subject: PHPNUKE 7.7-7.9: FIX "No High Scores Recorded"
Reply with quote
 
I'm using phpNUKE 7.7. And here is the link of flash games

http://www.maxpp.net/portal/modules.php?name=Flash_Games&func=view&cid=2

You can try and you will see that no high scores recorded! I tried to read many topics about this but can't find any solutions, please help! Sad


View user's profile Send private message
 
 
 
 
khoaitaychienvn
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Oct 20, 2005
Posts: 3

Post Posted: Thu Oct 20, 2005 2:44 pm   
Post subject:
Reply with quote
 
As I read in another topic about the code in mainfile.php. I try to replace this

Code:

if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  } else {
    die($posttags);
  }
}


with this

Code:

/*
if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  } else {
    die($posttags);
  }
}
*/


And it worked! Well, also in the mainfile.php, it shows that that code is used for against posting from other sites!

Any ideas? Is it risky?


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Sun Oct 30, 2005 7:19 pm   
Post subject:
Reply with quote
 
what version of phpnuke are your running??
I bet you are running pHPNUKE 7.8 or 7.9..
I have been receiving error reports that it hasnt been saving scores.

That is probably why hehehh elol
Can you reply and let me know your setup and phpnuke version please.

btw.. since you have turned off that feature that means that anyone can post data to your website from anywhere.. Not a suggestion to turn it off but you may have to before the scores will save.


FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Velas
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Oct 29, 2005
Posts: 5
Location: Spain

Post Posted: Tue Nov 08, 2005 5:08 pm   
Post subject:
Reply with quote
 
khoaitaychienvn wrote:
As I read in another topic about the code in mainfile.php. I try to replace this

Code:

if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  } else {
    die($posttags);
  }
}


with this

Code:

/*
if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  } else {
    die($posttags);
  }
}
*/


And it worked! Well, also in the mainfile.php, it shows that that code is used for against posting from other sites!

Any ideas? Is it risky?



hello, im from spain and i have the same problem.. any solution??


View user's profile Send private message Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Wed Nov 09, 2005 1:20 am   
Post subject:
Reply with quote
 
i will be testing the pnFlashGames module on all version of phpnuke from phpnuke 7.7 to phpnuke 7.9 over the next couple of weeks.. hang in there guys.. Im sure its something simple.

It works on all other phpnuke installs including platinum etc etc.
It may just be your server config maybe or like i said early something has changes in the main backened of phpnuke to stop scores being save.

a tip:
try to play ms.pacman and or frogger as they use old component to save scores.. Smile If you play some of the newer games they may not work.. Atleast we will see what is going on.

l8r

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
Velas
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Oct 29, 2005
Posts: 5
Location: Spain

Post Posted: Tue Nov 22, 2005 4:50 pm   
Post subject:
Reply with quote
 
The problem was the old component!! now I fixed it! thanks forahobby!


View user's profile Send private message Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Thu Nov 24, 2005 9:17 am   
Post subject:
Reply with quote
 
sweet. thanks for the feedback dude..
It will help others who are having the same probs.
I know the code works fine.. I wrote it from scratch and tested alot..

bye

FH
http://www.xbox-hq.com
http://www.360-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
wibbers
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jan 15, 2006
Posts: 6

Post Posted: Mon Jan 16, 2006 12:40 am   
Post subject:
Reply with quote
 
im using the latest version of phpnuke and i cant get the scores to save :S

www.headshothooligans.co.uk


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Tue Jan 17, 2006 3:37 am   
Post subject:
Reply with quote
 
hi wibbers,

with the latest version of nuke im sure they must have implemented some new code which stops any informtion being POSTED to the homepage.

I havent had the time just yet but hopefully soon will install the latest phpnuke and fix the bugs for you all. I do know that other have fixed it but im not sure if they have shared how.

My guess is somewhere in the MAINFILE.php file it is stopping POSTS.

Keep searching through the forums.. As soon as i get more time ill test myself.

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Tue Jan 17, 2006 3:38 am   
Post subject:
Reply with quote
 
Just to CHECK!

You have added the include("oldcomponent.php") line of code to your main phpnuke index.php file have you??

Did you read the README.nfo or readme.txt file in NOTEPAD??
It has all the instructions.

go over it and double check.. Im sure you will get it! (well hopefully)

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
dimajak
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jan 31, 2006
Posts: 2

Post Posted: Tue Jan 31, 2006 12:47 pm   
Post subject:
Reply with quote
 
hi !
in pnFlashGames module v0.6b (free version) for PHPNuke
cut in file oldcomponent.php
Code:
sql_query("INSERT INTO $prefix"._flashgames_hiscores." (hid,gid,gamename,playername,playerscore,date) VALUES ('','$game_id','$game_name', '$player_name','$player_score','$date')", $dbi);
and paste:
Code:
$result2 = $db->sql_query("INSERT INTO $prefix"._flashgames_hiscores." (hid,gid,gamename,playername,playerscore,date) VALUES ('','$game_id','$game_name', '$player_name','$player_score','$date')");


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Wed Feb 01, 2006 2:57 am   
Post subject:
Reply with quote
 
or you could have just added:

Code:
global $dbi;


To your main global for old component. Well thats if nothing has changed.
You can access the database either by $DB or $DBI globals..

FH
http://www.xbox-hq.com
http://www.360-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
dimajak
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jan 31, 2006
Posts: 2

Post Posted: Wed Feb 01, 2006 11:09 am   
Post subject:
Reply with quote
 
In a file oldcomponent.php already there is a line
Code:
global $user, $cookie, $prefix, $db, $dbi, $user_prefix, $REQUEST_URI;

but Hi-score were not kept Sad
PHP-Nuke-7.9_3.1_Rus_NY


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23870
Location: NSW, Australia

Post Posted: Wed Feb 01, 2006 11:56 pm   
Post subject:
Reply with quote
 
Quote:
but Hi-score were not kept Sad
PHP-Nuke-7.9_3.1_Rus_NY


Thanks.. I havent tested 7.9 so obviously something has changed..
Cheers for replying and letting the other guys know what the problem was.. Is everything working fine for you now.. Smile

I hope you enjoy all my hard work, sweat and tears.

regards,

FH
http://flashgames.xbox-hq.com
http://www.xbox-hq.com
http://www.360-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
DaPlayerX
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jan 15, 2006
Posts: 1

Post Posted: Thu Feb 09, 2006 6:54 pm   
Post subject:
Reply with quote
 
Is there any update to this post, as I'm becoming really frustrated with this issue.

I'm using version 7.8 patched, I've tried all the above solutions to no avail, the code just doesn't seem to work for me.

I have the 2 additional lines in my index.php for oldcomponent, but I still cannot get my scores to record.

also with the included upload utility, everytime I try to upload anythind, I get:

"._FGADMIN_MODULEERROR."
"._FGADMIN_UPLOADDIRECTORY.
"

Any help would be greatly appreciated.


View user's profile Send private message
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
Goto page 1, 2  Next |
 All times are GMT | Page 1 of 2
Jump to:  
 

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
 


Get Xbox Game Pass Ultimate