Motor Racing League
[resolved] Custom Ranking & Shortcodes (4 posts)

  1. heenoki
    Posted 3 years ago #


    I'm trying to adapt it for a cycling prediction blog.

    I have two questions :

    1.For me each Tour or one day race is a Championship but i would like to have a overall/custom ranking, example : an overall ranking for selected competition (Championship). Is there a way to do that ?

    2. A shortcode to display a specific race.

    I know Php, i can dig in the code if needed :)


  2. ianhaycox
    Plugin Author

    Posted 3 years ago #

    The only way to have a overall ranking for a championship is to create multiple races within one championship.

    So for example, create a championship 'Le Tour 2013' and then add each stage as a race. Users then get points for each stage and the ranking covers all stages.

    Users can then predict stages in advance based on the prediction deadline.

    To display one race use,

    [motorracingleague race=x limit=n full=m]

    where x is the race ID.

    Feel free to dig around the code - but be aware it's a bit of a mess and really needs refactoring and tidying up.


  3. heenoki
    Posted 3 years ago #

    Thanks Ian for your answers.

    By specific race i mean predict a specific race, is it possible ?

    Have a nice day !

  4. ianhaycox
    Plugin Author

    Posted 3 years ago #

    Predicting a specific race is not really possible.

    Races are presented to the user in date order, as defined in the admin screens.

    If you only define one race at a time then users can only predict that race. However if you define multiple races, then the user is presented with a selection box to choose a specific race.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Motor Racing League
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.