Arrow

Bonus Points | 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
Bonus Points
September 23, 2008
2:31 pm
nicola
Guest

Hi again,

Is it possible to add bonus points to a result to teams? The reason I ask is that a local 5aside league grants 1 bonus point for every 4 goals scored.

i.e. Team A vs Team B and Team A wins 8 - 6, then...

Team A gets 5 points (3 for the win and 2 bonus points)

Team B gets 1 points (1 bonus point)

Thanks again,

Nic

September 23, 2008
6:41 pm
Peter
Admin
Forum Posts: 841
Offline

This is certainly possible. However, it is quite the involved hack as the script does not currently have a friendly feature to add arbitrary fields.

There are many places that you would need to modify:

- the logic in standings.php that displays the fields
- admin_files/addscore.php for the form to add a new score
- admin_files/addscoreyes.php for processing a new score
- admin_files/editscore.php for editing a score
- the database to add the appropriate column

The details would depend on whether you want an automatic calculation of bonus points. Also, it would depend on whether you want to show an additional field for bonus points of whether you want it invisibly rolled into the total points.

If you're comfortable with PHP and MySQL, it's not particularly difficult. Give it a try, and report back with any specific road blocks that you have. Otherwise, if this is an urgent feature and you don't know where to start, I'd suggest paying someone or finding a knowledgeable friend to do the grunt work.