Show seasonal min/max values instead of totals for certain fields.
-
I currently use SportsPress to manage team and player stats for a local darts league.
During each fixture, 7 players from the home team play 1 on 1 matches against 7 players from the away team. These 7 matches are each best of 5 legs, and any player winning their game 3-0, 3-1, or 3-2 earns a point overall for their team.
In each leg, both players start with 501 points and they take turns throwing three darts, each time reducing their score by the amount they scored. A leg is won when a player reduces their score to zero by hitting a double (the outer ring on a dartboard).
I’ve set up Sportspress to record various player statistics for each match that each player takes part in:
- W – is a value of 1 to represent a player win, or 0 for a loss. This is used to calculate the overall event score for each team..
- LF – Legs for (legs of 501 won by the player)
- LA – Legs Against(legs of 501 lost by the player)
- 100+ total number of scores between 100 and 177 hit by the player in their match
- 180 – total number of 180 scores hit by the player in their match
- LD – Least Darts the Minimum darts used to win a leg during that players match. (variable: pp_leastdarts)
- HF – Highest Finish – the highest score hit to finish a leg during that players match. (variable: pp_highfinish)
The last two stats are where I’m having issues. The issue is, when I make them ‘visible’ it displays an overall total in the player lists. This is fine for the other stats – legs for and against, 100 or 180 scores, however on these, I’d like LD to show that players’ Least Darts across all games, so effectively something like min($pp_leastdarts), likewise for HF – Id want this to be that players highest finish so again, something like max($pp_highfinish). Is this possible? I’m happy to give code amendments a try, if I’m pointed in the right direction but am just hoping I’ve missed something simple!
Also is there an easy way to split/format a team vs team event into 7 individual matches? At present im using player order/number to show who played who, but i cant show a players opponent in historic stats for example – It looks like Id have to do it as another player perf field..
Thanks in advance for any help!
The page I need help with: [log in to see the link]
- The topic ‘Show seasonal min/max values instead of totals for certain fields.’ is closed to new replies.