ahem!
I just installed the Arcade Mod and found a couple of problems before I could get it to work ok. :(
\ip_root\amod\includes\functions_amod_plus.php (1 hits)
Line 1: <?
\ip_root\amod\includes\rewards_api.php (1 hits)
Line 1: <?
Mmmm! It gets worse?
[Icy Phoenix Debug] PHP Notice: in file /amod/includes/functions_amod_plus.php on line 801: number_format() expects parameter 1 to be double, string given
It doesn't like the zero? :(
[Fix For Bugs] In Activity Mod
Subject: Re: [BUG] In Activity Mod
Hello,
I get the same error at top of the page (many lines of the same error msg):
Warning: number_format() expects parameter 1 to be double, string given in functions_amod_plus.php on line:
$score_check_1 = number_format($score_check[0]);
Does anyone have a solution to this issue? :(
I upgraded to PHP 5.3.5 lately, probably that's the problem?
I get the same error at top of the page (many lines of the same error msg):
Warning: number_format() expects parameter 1 to be double, string given in functions_amod_plus.php on line:
$score_check_1 = number_format($score_check[0]);
Does anyone have a solution to this issue? :(
I upgraded to PHP 5.3.5 lately, probably that's the problem?
Subject: Re: [BUG] In Activity Mod
Assuming that you have fixed the <? errors by adding php after the ? like this <?php
In functions_amod_plus.php find this function
and replace the block with the code below.
I don't know if this is going to fix it because I stole it from here and have no way to check or to test it. ;)
http://www.assembla.com/code/icy_ph...lus.php?rev=257
In functions_amod_plus.php find this function
function FormatScores($score)
{
$score_check = explode(".", $score);
$score_check_1 = number_format($score_check[0]);
$score_check_2 = round($score_check[1], 5);
if ($score_check_2 == '00')
$new_score = $score_check_1;
else
$new_score = $score_check_1 .'.'. $score_check_2;
return $new_score;
}
{
$score_check = explode(".", $score);
$score_check_1 = number_format($score_check[0]);
$score_check_2 = round($score_check[1], 5);
if ($score_check_2 == '00')
$new_score = $score_check_1;
else
$new_score = $score_check_1 .'.'. $score_check_2;
return $new_score;
}
and replace the block with the code below.
I don't know if this is going to fix it because I stole it from here and have no way to check or to test it. ;)
http://www.assembla.com/code/icy_ph...lus.php?rev=257
function FormatScores($score)
{
$score_check = explode('.', $score);
$score_check_1 = number_format((double) $score_check[0]);
$score_check_2 = round($score_check[1], 5);
if ($score_check_2 == '00')
$new_score = $score_check_1;
else
$new_score = $score_check_1 .'.'. $score_check_2;
return $new_score;
}
{
$score_check = explode('.', $score);
$score_check_1 = number_format((double) $score_check[0]);
$score_check_2 = round($score_check[1], 5);
if ($score_check_2 == '00')
$new_score = $score_check_1;
else
$new_score = $score_check_1 .'.'. $score_check_2;
return $new_score;
}
Subject: Re: [BUG] In Activity Mod
Hey mort!!
I just wanna tell you this...
that the fix for activity mod works PERFECTLY!!!
much credit to this fix, thanks a lot and have a great day wherever you are ;)
I just wanna tell you this...
that the fix for activity mod works PERFECTLY!!!
much credit to this fix, thanks a lot and have a great day wherever you are ;)
Subject: Re: [BUG] In Activity Mod
You're welcome. And I'm in the computer room. LOL! :mricy:
But it would be nicer if MG converted the phpBB3 games arcade because IMHO it has a lot more going for it. ;)
And quite possibly (If you are not aware of this site) http://igames.origon.dk/forum/
the games there seamlessly integrate with the download functions of phpBB3 Games Admin panel.
So yep! it would be nice if Icy Phoenix could be made to access all this phpBB3 stuff in the same way. ;)
argenta wrote: [View Post]
You're welcome. And I'm in the computer room. LOL! :mricy:
But it would be nicer if MG converted the phpBB3 games arcade because IMHO it has a lot more going for it. ;)
And quite possibly (If you are not aware of this site) http://igames.origon.dk/forum/
the games there seamlessly integrate with the download functions of phpBB3 Games Admin panel.
So yep! it would be nice if Icy Phoenix could be made to access all this phpBB3 stuff in the same way. ;)
Subject: Re: [BUG] In Activity Mod
Yeah, it would be really nice if someday HE can put his hands over this matter.... :mrgreen:
but for now, lets be happy as things are...... let's not cover him of too much tasks to do!
As for me... its really a relief now without those php error lines!! :)
mort wrote: [View Post]
Yeah, it would be really nice if someday HE can put his hands over this matter.... :mrgreen:
but for now, lets be happy as things are...... let's not cover him of too much tasks to do!
As for me... its really a relief now without those php error lines!! :)
Subject: Re: [Fix For Bugs] In Activity Mod
Thanks for that! :mri:
I really hope to have some extra free time after the new release, so I can play with other stuff.
argenta wrote: [View Post]
Thanks for that! :mri:
I really hope to have some extra free time after the new release, so I can play with other stuff.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.0965s (PHP: 20% SQL: 80%)
SQL queries: 12 - Debug Off - GZIP Enabled