[Fix For Bugs] In Activity Mod


Subject: [Fix For Bugs] In Activity Mod
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

Code: [Download] [Hide] [Select]
$score_check_1 = number_format($score_check[0]);


It doesn't like the zero? :(

Profile PM  
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?

Profile PM  
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

Code: [Download] [Hide] [Select]
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;
}


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


Code: [Download] [Hide] [Select]
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;
}

Profile PM  
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 ;)

Profile PM  
Subject: Re: [BUG] In Activity Mod
argenta wrote: [View Post]
thanks a lot and have a great day wherever you are ;)


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. ;)

Profile PM  
Subject: Re: [BUG] In Activity Mod
mort wrote: [View Post]
But it would be nicer if MG converted the phpBB3 games arcade because IMHO it has a lot more going for it. ;)
So yep! it would be nice if Icy Phoenix could be made to access all this phpBB3 stuff in the same way. ;)

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!! :)

Profile PM  
Subject: Re: [Fix For Bugs] In Activity Mod
argenta wrote: [View Post]
but for now, lets be happy as things are...... let's not cover him of too much tasks to do!

Thanks for that! :mri:

I really hope to have some extra free time after the new release, so I can play with other stuff.

Subject: Re: [Fix For Bugs] In Activity Mod
Mighty Gorgon wrote: [View Post]
argenta wrote: [View Post]
but for now, lets be happy as things are...... let's not cover him of too much tasks to do!

Thanks for that! :mri:

I really hope to have some extra free time after the new release, so I can play with other stuff.



Hehehe! I agree :P

Profile PM  

Page 1 of 1


  
You cannot post new topics
You 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.542s (PHP: 4% SQL: 96%)
SQL queries: 33 - Debug Off - GZIP Enabled