• hello ??

    I’ve got a question/feature request:

    when users register, they become members of the betting group. maybe they just registered, to be members of the community and not of the football pool. therefore, I’d like to display the names on the ranking just when they have made at least one bet.

    maybe that is possible with a specific php-function? or would it require some custom work? please tell me ?? thank you!

    greetings

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AntoineH

    (@antoineh)

    I found two extensions that I once created. Hope they still work (haven’t tested them for a while).

    1. Hide inactive users from ranking
    2. Hide inactive users from stats pages
    Thread Starter did3y

    (@did3y)

    hey Antoine ??

    the extensions are working great – thanks a lot!

    the only problem is that if a player who made some bets has 0 points, he will be ranked among all the other players who are invisible in the ranking, leading to a wrong ranking position. please see screenshot: https://drive.google.com/file/d/14GtBxRDnn3AdAUPKWUroU-3jGSLD6mnZ/view?usp=sharing

    Florian should rank 37th and not 50th. I think the solution should not hide the players who have not made a bet but completely ignore them when creating the ranking.

    another thing I noticed is that if two or more players have the same points, they don’t have the same position in the ranking. please see screenshot: https://drive.google.com/file/d/1rrxOv_VxM9ZJL135vKNzQnWRIaVYsEIW/view?usp=sharing

    my top 5 players have equal points but Mathias is 1st and Sophie is 5th in the ranking. so it would be nice to have a query if a player has the same points, he also has the same ranking position (so in my case: all my top five players with 21 points have the ranking position “1.”).

    thanks for helping!

    greetings

    Plugin Author AntoineH

    (@antoineh)

    Florian should rank 37th and not 50th. I think the solution should not hide the players who have not made a bet but completely ignore them when creating the ranking.

    Question: did you do a re-calc after activating the extensions? Because if I look at the code, it should filter out the players during the calculation process. But I may be wrong. Didn’t debug the code.

    so it would be nice to have a query if a player has the same points, he also has the same ranking position (so in my case: all my top five players with 21 points have the ranking position “1.”).

    The ranking is calculated and stored in the database for easy access; it’s not calculated real-time when rendering the pages. This ranking value is used in several places in the plugin, e.g. charts, ranking, widgets and several shortcodes. If you only use the ranking page or widget (and not the other features), then it may be possible to overwrite the ‘print ranking’ template and not show the ranking value, but to base it on your own counter (increase the counter when the points scored is different from the previous player). But this will require some PHP knowledge to do.

    Changing the way the plugin stores the ranking in the database doesn’t sound feasible to me. I didn’t look at it closely, but I don’t think it can be done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘only display users in the ranking that made at least one bet’ is closed to new replies.