Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [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?  
 



 
Edited by mort, Mon 21 Feb, 2011 05:54: Changed the text.
Edited by mort, Mon 20 Jun, 2011 10:19: Fixed
mortSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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?
 



 
argentaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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;
}

 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
argentaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

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.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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....  
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!!
 



 
argentaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

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




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

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



Hehehe! I agree
 



 
mortSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron