• lokirj

    (@lokirj)


    Hello
    Where can I find all the shortcodes to create the pages for this version 1.9.9?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • tino_tls

    (@tino_tls)

    From a previous version I have some info available in the old “readme”. Hope this will help you.

    Shortcodes
    Use the following shortcodes to display a prediction form, match results, users’ rankings.

    Prediction Form

    You can display an entry form for predictions and the results of matches and predictions with the following shortcodes in a post or page.

    [world-cup-predictor]
    Display an entry form for all the configured matches where the kickoff time is before the current date and time.
    The form will display a countdown to the next match deadline. Once the match kickoff time has passed the match will
    no longer be displayed and users cannot make predictions.

    You may optionally supply the attribute stage=n where n is the stage id to limit the matches to a particular group.

    To display just the matches in the group stages, not the knockout stages, use the attribute group=true,
    e.g. [world-cup-predictor group=true].

    To display matches sorted by kickoff time, rather than by each stage, use the attribute kickoff=true and optionally a
    limit, e.g. [world-cup-predictor kickoff=true limit=5] to display the next 5 matches.

    To remove the ability to predict penalties during the knockout stages use the attribute predict_penalties=0.

    Group Tables

    [world-cup-predictor tables=1 stage=n show_results=n]
    Display the group tables with the match results once the match has finished and the results have been entered.
    You may optionally supply the attribute stage=n where n is the stage id to limit the matches to a particular group.
    You may optionally supply the attribute show_results=n where n = 0 or 1 to hide or show the match results below the group table.

    Match Results

    [world-cup-predictor results=1 stage=n team=n]
    Display a table of match results. You may optionally supply the attribute stage=n where n is the stage id to limit the matches to a particular group or use attribute team=n where n is the team id to limit the matches to a particular team.

    Users Predictions

    [world-cup-predictor scores=n]
    For each match ID, specified by n, display a table of every users’ predictions and the points awarded. Note – users predictions will not be shown
    if the match kickoff time has not yet passed. This is to prevent users viewing each others predictions before the match has started.

    Use the option [world-cup-predictor scores=-1] to display all predictions for all matches in one table.

    Optionally add the attribute highlight="css-styles" to add a CSS
    style to the table row of the currently logged in user. For example [world-cup-predictor scores=1 highlight="background:red;font-weight:bold"].

    Logged in Users Predictions

    [world-cup-predictor user=1 show_total=n show_results=m]
    For the currently logged in user display the list of predictions for that user. If n is non-zero then show the total points for this user
    at he foot of the table. If m is zero do not show match results against each prediction. Also available via the Widgets.

    You may also display just the users total via [world-cup-predictor show_total=1] without the table.

    Rankings

    [world-cup-predictor ranking=1 limit=999]
    Display a summary of all the users’ points as a ranking table. Optionally add the attribute highlight="css-styles" to add a CSS
    style to the table row of the currently logged in user. For example [world-cup-predictor ranking=1 highlight="background:red;font-weight:bold"].

    Thread Starter lokirj

    (@lokirj)

    Thanks

    Plugin Author landoweb

    (@landoweb)

    Thanks @tino_tls

    In the latest update, I accidentally forgot to include the shortcode documentation on the Help page. My apologies for that.

    I will be adding the complete list of available shortcodes, along with examples, to the Help page in the next update (version 1.9.91), which I plan to release this weekend.

    Thank you for your patience, and please let me know if you need a specific shortcode in the meantime.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.