Support » Plugin: SportsPress - Sports Club & League Manager » Player list minimum

• Hi!

I’ve created a page with all statistics from the competition my site is about. But as you can see, in the second table for example, players who took only 1 shot in (for example) 5 games, are in the top of the table.

Is there a function to filter those players out automatically?
I don’t want to set the player list to manual, because every week I will add the statistics of 10 played games, so to keep track of what players must be included is very time consuming. So if possible, the list has to be updates automatically.

Thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
• Plugin Contributor Roch

(@rochesterj)

Hi!

Thanks for reaching out!

The first step in your case is to define what is your ordering formula.

If it’s just the accuracy percentage (I’m assuming, as I’m not familiar with your stats), then these players should indeed be first.

If you have a minimum threshold we can incorporate it into your formula.

Please let us know your desired ordering so we can translate it into a formula/ordering stat.

Thanks!

(@jurryt)

Hi!

Thanks for helping me out!

The formula is indeed an accuracy percentage. For example: Field Goal % = (Field Goals Made / Field Goals Attempted) * 100

I also did this for:
2 Point %
3 Point %
Free Throw %

So the idea is:
– I made a few playerlist (one for every statistics category) with all the players of one competition
– This player list is sorted by the Field Goal %
– On the page attached all the playerlists show the top 10 of every category to show the top players of one competition.

For the other stat categories (Blocks per game, points per game, rebounds per game, steals per game, assists per game, and turnovers per game. These are calculated with the following formula: Rebounds per game = Total rebounds / games played) I want to have a minimum treshold of games played (for example, a minimum of 50% of the total games their team played. (or just a given amount of games I can edit myself every now and then)

Is it possible for me to change the minimum treshold every now and then?
Or just tell me in what file and what row I can find the minimum treshold I can edit it myself maybe.

Thanks!

Plugin Contributor Roch

(@rochesterj)

Hi!

Let’s make it simpler and take a look at one issue at a time, otherwise it gets too confusing.

Field Goal % = (Field Goals Made / Field Goals Attempted) * 100

Even players with one goal made should be on top. What I was thinking about the threshold was to create another stat (that is hidden) just for ordering. It could be something like:
Ordering Field Goals = ( ( Field goals made – 3 ) / Field Goals attempted ) * 100

In this way, players with 3/3 get a zero percentage, as do players with a 3 / 6, players with less than 3 would be negative so they won’t even show up in the charts (even if they have high accuracy)

Players with 4 / 4 get 1/4 (25%), while players with 4 / 6 get 1/6 (16.6) therefore the ordering from 4+ goals should be right.

Thanks!

(@jurryt)

Hi!

Once again, thanks for helping me.

Unfortunately this isn’t an option, because the actual percentage is the most important part of the list.

Do you have another idea?

Thanks!

(@jurryt)

Hi!

I have two more questions.

1. Right now, when you add a event_list to a page, it starts with the first date. But is it possible to let it start on the current date, for example on page 2 of this table:

2. In the boxscores (statistics of every game) I have a column for minutes played in the game. But its showing hh:mm, but I want to change that to mm:ss

Thanks for helping me out!

Plugin Contributor Savvas

(@savvasha)

Hi @jurryt,

Please open a new topic for each issue. It will be easier to get help from others, but also it will be easier for other users with similar issues to find possible solutions.

Thanks,
Savvas

(@jurryt)

@savvas

I will change it. Thank you.

Plugin Contributor Roch

(@rochesterj)

Hi!

Thanks for your reply but I’m not sure if I get what you mean.

Please keep in mind that this is just regarding the new stat for ordering. You’ll still keep your current stats as they are.

“Unfortunately this isn’t an option, because the actual percentage is the most important part of the list.”
The percentage is the main ordering criteria? Then why do you need the 3 (or other) number cap? If you are just talking about displaying the percentage, sure it will be in its original form, not in the “ordering” form.

Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
• The topic ‘Player list minimum’ is closed to new replies.