Posted: Thu Feb 09, 2006 12:07 am Post subject: i really have a problem that i can't solve
i have downloaded pnflashgames 0.6 and installed on my phpnuke7.0 ...
all works just fine! but i have some problems with my HighScores.
This is where it get bad:) I have 3 games (frogger, mrspacman and) that the highscore works, but the other ones just don't work. I saw that frogger, mrspacman and pingutrow Post The Scores auto, you don't have to press any buttons like " Submit Your Score ", but the others DOES ... and i push the button and nothing happens! what to do, pls help me!
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Thu Feb 09, 2006 1:39 am Post subject:
phpnuke 7.0??? Thats very old mate.. Why dont you upgrade to something atleast a bit newer?? This topic may help but not sure:
Posted: Thu Feb 09, 2006 2:02 am Post subject: ello again
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?
*******************************
this is what that dude sayd! but i can't find that code anywhere!! where the hell is it? pls tell me
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Thu Feb 09, 2006 2:24 am Post subject:
yes and no..
It depends whether your HOST has safe mode enabled i believe.
With safe mod enable i doubt there will be a prob.
Its just most hosts dont use safemod i believe.
But hey im no server guru.. Im a programmer.. lol
Glad you got it running.. In the newer versions i will sort out all this stuff.
Posted: Thu Feb 09, 2006 11:51 am Post subject: hey
i've showed you what was in that post you gave me 2 read! i didn't write that! i wrote after the asterix ***** ... please read again pls!!!!!
and i have also installed a phpnuke v7.8 and update it to 7.9 ... and still doesn't work
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Fri Feb 10, 2006 1:22 am Post subject: Re: ello again
bush3k 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?
*******************************
this is what that dude sayd! but i can't find that code anywhere!! where the hell is it? pls tell me
The code is in the mainfile.php of your PHPNUKE INSTALLATION.
Sorry.. I thought you wrote that you did it.. ehhehhe
Posted: Fri Feb 10, 2006 2:02 pm Post subject: ello
i gave you that info in my first subject!
pingu trhrow, ms pacman, 501 darts, frogger, bloody pingu works just fine cuz they all have auto score! but with the others i have problems, on witch u have to click the Submit Score button.
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Sat Feb 11, 2006 2:45 am Post subject:
hi bush3k,
I have read there is a fix for your problem in our forums??
Have you browsed through all our topics here?? All errors are fixed most of the time and the answers are already there..
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')");
Try that.. Heres the original topic.
I would suggest you work your way through out topics..
i usualy do that before i wrote anything, cuz is much easy, then to write a topic and then w8 for a reply! i already try that oldcomponent cut and paste ... and nothing. something else
bush3k Xbox-HQ User
Joined: Feb 08, 2006 Posts: 10
Posted: Mon Feb 13, 2006 8:33 pm Post subject: ello
c'mon dude... can u answer me? u said it was easy 2 solve my prob?... plssss
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Tue Feb 14, 2006 3:31 am Post subject:
Hi bush3k,
Unless you havent noticed i run many websites and provide instant support to my VIP members.. I can help you but i have many other users in front of you .
If you can send me a full .zip file of phpnuke 7.0 with a .sql file i will check into it for you. Why are you running phpnuke 7.0?? Are you a coder? I would upgrade personally but thats up to you.
shoot me a pm and then i will give you my email address to send the .zip file to .. I will test when i get more time.
hang in there. I wrote this entire thing by myself with no help. And i asked.. lol Plenty of times.
hey... i'm sorry 4 that... i didn't mean that, i just saw u answered me very fast at the begining... and now nothing, that's it! i've upgrade my php to 7-9... and still nothing!
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Wed Feb 15, 2006 11:30 pm Post subject:
If you are running PHPNUKE 7.9 it should be working for you fine.
You only need to read the PHPNUKE 7.9 forums topic.
Apart from that you will need to give me full access to your webserver so i can fix for you.. I cant think of any otherway.
btw.. the module works fine.. Did you read the full install instructions on the readme.nfo (readme.txt) file which comes with it??
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