WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. heenoki
    Member
    Posted 1 year ago #

    Hi,

    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 :)

    http://wordpress.org/extend/plugins/motor-racing-league/

  2. ianhaycox
    Member
    Plugin Author

    Posted 1 year 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.

    Ian.

  3. heenoki
    Member
    Posted 1 year ago #

    Thanks Ian for your answers.

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

    Thanks
    Have a nice day !

  4. ianhaycox
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.