Arrow

Add point to WINNING team with 'forfeit' field? | Peter's Sports League Standings | Forum

Back to the sports standings script page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Add point to WINNING team with 'forfeit' field?

Reply to Post Add a New Topic
UserPost

3:36 am
December 14, 2009


Ryan

Guest

Successfully installed the standings script. I'm running a fantasy wrestling game. What I want to add in is a field that gives an extra bonus point. If certain conditions are met a player would get 2 points for the win plus 1 extra point.

I found this post, and am looking around the listed files. Not sure where to start though. http://tinyurl.com/yegwuot

The 'overtime loss' thread showed me how to make the 'forfeit' field ADD a point instead of subtract. Is there a way to make the 'forfeit' field add that point to the -winning- team instead of the losing team? Of course if I say A beats B by forfeit, do the 2 points for win show up in the forfeit column and not the regular column?

Thanks again

3:11 pm
December 28, 2009


Peter

Admin

posts 732

Points are calculated on the fly in standings.php based on the wins, losses, ties, forfeits etc.

This makes it quite difficult to do different point calculations based on the elements of the individual games. You'd have to add new stats columns, attributed to the team, from which points can be derived. As an example, if you want to add points to the forfeit winner, they're normally calculated under the "wins" column. If you need to distinguish a forfeit win from a normal win, you'd have to add a new column to the sportsdb_teams table, and modify all of the add and edit score admin screens. Depending on the sophistication of your rules, this would be quite a bit of work and might necessitate some more heavy-duty re-engineering of the points calculation logic.

6:24 pm
December 30, 2009


Ryan

Guest

What if you wanted to add in a single bonus point as the only new condition to the existing code? A “win +1? option?

2:20 am
January 2, 2010


Peter

Admin

posts 732

You would have to add a new field such as normal wins and losses since the points are derived from such fields.

Reply to Post

Reply to Topic:
Add point to WINNING team with 'forfeit' field?

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 12