Hi Andy @theangryduck
I m very sad too that players statistics don’t work.
I think there’s a real bug in Sportspress plugin. Otherwise Sportspress is a great plugin but need to solve this problem.
Regards.
Ludovic
Plugin Author
Brian
(@brianmiyaji)
@theangryduck Thanks for following up. Sorry about the delay in getting back to you. There have been some changes to WP forums so bumping doesn’t bring threads to the top anymore 🙁
Regarding your question, the way SportsPress currently works is that players have 2 different set of values: Performance and Statistics. They come one after another, with the Order setting applying to the other values within the same type only.
I’ve been working on a fix that makes it possible to mix the order of performance and statistic values, so certain statistics can be displayed before others, including performance values. The code change can be found here: https://github.com/ThemeBoy/SportsPress/commit/5c1e454208897450bc624b913f8a91d3063a167a
We’re aiming to release SportsPress 2.2 later this month, which will include this change. If you’d like to try it out right away, you can edit the file in sportspress/includes/class-sp-player.php and add the green lines from the code change into line 571 🙂
Hi Brian
Thanks a lot for your reponse but is this really answer to our problem.
Mine is that statistics calculated for players are wrong specially times played by players.
You could see my problem bellow :
One of my wrong statistics for one player.
Recently for one competition “Coupe de France”, the player (link bellow) was a substitute who entered the match at the 54e minute of the match (full time match 90 minutes).
You could the on his page that a his played time for this match is 90 minutes !
http://www.footbrest.fr/newsb/joueurs/valentin-henry/
Any comment or suggestions?
Thanks a lot.
Ludovic
Brian,
Applied the change and looks very good indeed – thanks.
Ludovic – the issue with the minutes is a different problem on a different thread. This thread is purely around ordering the performance / statistics info.
Thanks,
Andy
Awesome, Andy!
I’m glad it’s fixed.
@lstephan
A new topic si always the way to go 🙂
Kind Regards,
-Roch
Hi Roch,
@rochesterj
Of course i could create a new topic but i ve already done it without any solution 😉
https://wordpress.org/support/topic/wrong-players-statistics-2/
If you could have a look it would be so nice 🙂
Nice day
Ludovic