• Resolved zacksack

    (@zacksack)


    Good afternoon,

    I am in the process of creating a site to rank youth baseball teams. I will do that by ranking them in order of points.

    Im assuming the equation I need to create would be event results. Ive created a new post called Points, but under equation my only options are performance, operators, and constants. I only see player variables and not win, loss, or tie (Event results)

    What I truly want to be able to do is the following,

    OBJECTIVE 1:
    
    Based on the event entered points will be assigned to the team who is victorious, for example - friendly (Exhibition) = 1 point, Competitive (League game) = 5 points, and Tournament (Tournament game) = 10 points.
    
    Also renaming the 3 different available options as follows - friendly to Exhibition, Competitive to League game, and Tournament to Tournament game.
    
    When working on this objective, test games will need to be entered. Please enter games with 8U AAA Alberta teams, this is necessary when working on objective #2.
    
    OBJECTIVE 2:
    
    In addition to awarding teams points, teams will need to be ranked in order of points awarded.?We have created the required team table, we have created a team table which can be used for testing purposes, 8U AAA Alberta Rankings –?
    
    https://canadianbaseballrankings.com/table/8u-aaa-alberta-rankings/
    
    In the above table it will need to rank teams based on total points earned. To the left of the team there should also be a ranking number, what number are they ranked. In the right columns we will show total points, # of wins, # of losses, Runs for, and Runs against.?
    
    OBJECTIVE 3:
    
    An additional game classification created, in addition to Tournament (Tournament game) – the creation of Tournament Championship is created. Making the total of four options under format when creating a new event (Game). Here is a table showing the points that need to award to the victorious team.?
    
    Points System
    
    Exhibition
    
    League Game
    
    Tournament Game
    
    Championship Game
    
    5
    
    15
    
    25
    
    50

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @zacksack,

    If you want to have different points for the outcomes of Friendly, competitive and tournament events, then you will need to create different outcomes at SportsPress->Configure->Outcomes .

    Next you will create a Table Column at SportsPress->Configure->Table Columns , (i.e. POINTS) and use an equation like POINTS = Friendly_Wins + Competitive_Wins * 5 + Tournament_Wins * 10. You can add also extra outcomes and multipliers for Draw or/and Loss.

    Now, about more details on Tournaments you will need to come in contact with our Premium Support at ThemeBoy Support . Tournaments are a PRO feature, and it is against the WP forum rules to provide support here.

    Thanks,
    Savvas

    Thread Starter zacksack

    (@zacksack)

    Thanks for your reply Savvas! I have tried Premium Support since I did purchase the Pro version, but I havent heard from anyone.

    Plugin Contributor Savvas

    (@savvasha)

    @rochesterj can you give a look on this please?

    Just found it. It was on the presales channel since it was about custom coding.

    I’ll reply to it right now.

    Thanks!

    Thread Starter zacksack

    (@zacksack)

    Thanks again for your reply Savvas – I wondered if the second part of objective #1 above was possible –

    Also renaming the 3 different available options as follows - friendly to Exhibition, Competitive to League game, and Tournament to Tournament game.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @zacksack,

    As you can see at the source code of sportspress/includes/class-sp-formats.php at lines 29-30, both “Friendly” and “Competitive” format is translatable under the “sportspress” domain.

    'league'   => esc_attr__( 'Competitive', 'sportspress' ),
    'friendly' => esc_attr__( 'Friendly', 'sportspress' ),

    Give a look at a previous informative post from @rochesterj below:
    https://www.ads-software.com/support/topic/sportspress-language-packs/#post-16076291

    Thanks,
    Savvas

    Thread Starter zacksack

    (@zacksack)

    Thanks for all your support. One last question, in the above equation – POINTS = Friendly_Wins + Competitive_Wins * 5 + Tournament_Wins * 10

    How do you enter the * – Im not able to do so, that isn’t an available character and I don’t seem to be able to enter that character.

    Plugin Contributor Savvas

    (@savvasha)

    Just use the ‘x’ as multiplication symbol instead of’*’

    Thread Starter zacksack

    (@zacksack)

    Thanks! Making great progress

    https://canadianbaseballrankings.com/16u-hp-ontario-rankings/

    I was able to add the position column (far left) and the table is in order of points (only one team has been awarded points) – is there any way to have a numerical number under the points column to represent what their ranking is? in this case it should read 1

    Also, any way of just showing team logo, and not the team name as well? In the above table one team has a logo but it also has their team name beside it, any way of just showing the logo?

    Last question, in the W (Win) column Cambridge (the team with 10 points) show 0 wins, the team they beat Bradford does show 1 loss. I believe its related to the outcome – I had to manually set the outcome to loss, and Tournament Win (10 points) I tried to apply the outcomes automatically by following this video – https://support.themeboy.com/article/127-how-to-configure-automatic-event-outcomes – in the video that automation is set by most goals, fewest goals, and equal goals. When I try to apply the same logic I have Most primary, least primary, Equal, and default. Ive set the condition for the winning team to Most Primary, and the losing team to least primary.

    Thanks

    Thread Starter zacksack

    (@zacksack)

    in addition to the above it doesn’t seem to be adding runs scored or runs against in the related columns (RS, RA).

    Plugin Contributor Savvas

    (@savvasha)

    I was able to add the position column (far left) and the table is in order of points (only one team has been awarded points) – is there any way to have a numerical number under the points column to represent what their ranking is? in this case it should read 1

    The ranking should be under the “Pos” column. What order criteria you are using at SportsPress->Configure->Table Columns?

    Also, any way of just showing team logo, and not the team name as well? In the above table one team has a logo but it also has their team name beside it, any way of just showing the logo?

    Go to SportsPress->Settings->Teams and:

    Last question, in the W (Win) column Cambridge (the team with 10 points) show 0 wins, the team they beat Bradford does show 1 loss. I believe its related to the outcome

    What equations are you using at the Win/Draw/Loss columns? For example, did you add all the possible Wins (Friendly_Wins+Competitive_Wins+Tournament_Wins)?

    Thanks,
    Savvas

    Thread Starter zacksack

    (@zacksack)

    I figured out the Points ranking, thanks. This is the equation Im using as per suggestion above – It did award the 10 points but didn’t award them the win in the win column

    Friendly win x 2 + Competitive Win x 5 + Tournament Win x 10

    Plugin Contributor Savvas

    (@savvasha)

    So I can assume that you sorted out all your objectives? ??

    Thread Starter zacksack

    (@zacksack)

    No, as per above …. NO wins in the wins column and in addition to the above it doesn’t seem to be adding runs scored or runs against in the related columns (RS, RA).

    Plugin Contributor Savvas

    (@savvasha)

    Some screenshots of your equations will help for further assistant ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Awarded Points’ is closed to new replies.