i4w_leaderboard
Usage
This shortcode displays the specified affiliate leaderboard.
The purpose, definition, and use of affiliate leaderboards is explained in detail here: Affiliate Leaderboards
[ELSE_leaderboard] conditional branching is supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| id | The id of the affiliate leaderboard to be displayed. | none | Yes |
Example
[i4w_leaderboard id=9291]
With ELSE clause:
[i4w_leaderboard id=9291]
Leaderboard content here
[ELSE_leaderboard]
Leaderboard not available
[/i4w_leaderboard]
Formatting
The leaderboard can be styled using CSS with the following classes:
mbr-leaderboard- Main containermbr-leaderboard-row- Each rowmbr-leaderboard-head- Header rowmbr-leaderboard-pos- Position columnmbr-leaderboard-name- Name columnmbr-leaderboard-val- Value column
Notes
To ensure compatibility with the various page builders we recommend that no quote delimiters are used to specify the id parameter.
If the affiliate leaderboard specified by the id is not active or empty, this shortcode will not be evaluated and will not display any content.
If the affiliate leaderboard is not available from the cache nothing will be shown. In this case you should force a recalculation of the affiliate leaderboards.