WordPress.org

Forums

SportsPress - Manage Leagues & Sports Clubs
[resolved] Netball (4 posts)

  1. ld90
    Member
    Posted 10 months ago #

    I'm trying to implement a Netball league table.

    Unfortunately this has a funky points system that I'm struggling to get working with SportPress.

    The scoring is as follows:

    4 Points for a win
    2 Points for a draw
    1 Point for each Quarter won
    1/2 Point for each Quarter drawn
    1 Point to the losing team if their score is over 50% of the winning team's score.

    On the team results page I have the following:

    http://i.imgur.com/lQfL9Im.png

    So in the example above the points should be given as follows:

    TEAM A - 4 pt for winning Overall
    TEAM B - 1 pt for winning QTR 3
    TEAM B - 1 pt for having scored over 50% of Team A
    TEAM B - 0.5 pt for drawing QTR 4.

    I want SportPress to be able to work out and allocate the points accordingly, but I don't think I can do it unless there are '>' or '<' operators added or maybe 'If True' or 'If False'.

    Any advice please?! This is a fantastic plugin and I would like to use it to it's full potential! :)

    https://wordpress.org/plugins/sportspress/

  2. ThemeBoy
    Member
    Plugin Author

    Posted 10 months ago #

    Hi there,

    Thanks for your question.

    This is a complex scoring system, but I think we can make it work!

    Since the equations are only calculated based on the sum of values from events, we'll need to create separate Team Results for each type of scoring.

    Let's create these Team Results:
    1. Quarters won
    2. Quarters drawn
    3. Over 50%

    Then, we can use the following equation for the points:
    Points = "Win" × 4 + "Draw" × 2 + "Quarters won" + "Quarters drawn" ÷ 2 + "Over 50%"

    This means of course that the Quarters won, Quarters drawn, and Over 50% columns will be displayed in event pages, but we'll be adding an option to hide certain results columns in the next update :)

    Hope this helps!

  3. ld90
    Member
    Posted 10 months ago #

    That works! Thank you!

  4. ThemeBoy
    Member
    Plugin Author

    Posted 10 months ago #

    Awesome! You're welcome :)

Reply

You must log in to post.

About this Plugin

About this Topic