Arrow

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

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Add point to WINNING team with 'forfeit' field?
December 14, 2009
3:36 am
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

December 28, 2009
3:11 pm
Peter
Admin
Forum Posts: 841
Offline

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.

December 30, 2009
6:24 pm
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?

January 2, 2010
2:20 am
Peter
Admin
Forum Posts: 841
Offline

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