PHPFootball Forum Forum Index Log in to check your private messages Register Log in FAQ Search Memberlist Usergroups
updated summaryweek

 
Post new topic   Reply to topic    PHPFootball Forum Forum Index -> Version 2.0 Hacks and Modifications
View previous topic :: View next topic  
Author Message
caykroyd



Joined: 11 Jul 2007
Posts: 99

PostPosted: Sat Aug 18, 2007 11:00 pm    Post subject: updated summaryweek Reply with quote

Use this update to show all ranks even if a user's score is 0
Add this below the first $users[] declaration.
Code:
$sql="select user from ".$football->prefix."users where user != '".$football->admin_username."' and user NOT IN (select u.user
      from ".$football->prefix."users as u, ".$football->prefix."picks as p, ".$football->prefix."schedule as s
      where s.week = ".$week."
      and p.gameid = s.gameid
      and u.user = p.user
      and p.pick = s.result
      and p.pick != \"\")";
$rs=$football->dbQuery($sql);
while($row=mysql_fetch_object($rs)) {
   $users[] = $football->userSummary($row->user);
}
Back to top
View user's profile Send private message
ghgarcia
Site Admin


Joined: 27 Jul 2005
Posts: 695

PostPosted: Sun Aug 19, 2007 7:28 am    Post subject: Reply with quote

Hi,

Can you supply more detals as to exactly where in summary.php and what to replace or add.

Thanks,
G
Back to top
View user's profile Send private message Send e-mail
caykroyd



Joined: 11 Jul 2007
Posts: 99

PostPosted: Sun Aug 19, 2007 4:50 pm    Post subject: Reply with quote

I've changed some things so I don't know the exact line number. Somewhere around line 40-50. Add the previous supplied code below
Code:
while($row=mysql_fetch_object($rs)) {
   $users[] = $football->userSummary($row->user);
}
Back to top
View user's profile Send private message
gangeli



Joined: 07 Aug 2005
Posts: 71

PostPosted: Sun Aug 19, 2007 9:52 pm    Post subject: Reply with quote

i put the code in, and went and looked at the 1st week, since there was only one game. everyone shows they have 1 win, even though i know only one person picked the game correctly.

not saying its not me though, that certainly could be the case Smile
Back to top
View user's profile Send private message
caykroyd



Joined: 11 Jul 2007
Posts: 99

PostPosted: Mon Aug 20, 2007 12:02 am    Post subject: Reply with quote

oops. Forgot to tell you to clear a couple variables.

around line 132 you should find
Code:
$grandtotal = 0;


Below that add two lines:
Code:
$scoreweek = 0;
$score = 0;


This should fix you problem. Again sorry for not posting the new files, but mine are hacked up to be unworkable with the original files.

Also check the autoscores forum, as I have a new perl cronjob since myFFL is not working right now.
Back to top
View user's profile Send private message
gangeli



Joined: 07 Aug 2005
Posts: 71

PostPosted: Mon Aug 20, 2007 10:07 am    Post subject: Reply with quote

thank you, that appears to do the trick Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHPFootball Forum Forum Index -> Version 2.0 Hacks and Modifications All times are GMT - 5 Hours
Page 1 of 1

 
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 cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2002 phpBB Grou p

design by boo ©eZ-Life.net  A designer community