Skip to main content

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

ParameterDescriptionDefaultRequired
idThe id of the affiliate leaderboard to be displayed.noneYes

Example

Shortcode
[i4w_leaderboard id=9291]

With ELSE clause:

Shortcode
[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 container
  • mbr-leaderboard-row - Each row
  • mbr-leaderboard-head - Header row
  • mbr-leaderboard-pos - Position column
  • mbr-leaderboard-name - Name column
  • mbr-leaderboard-val - Value column

Notes

warning

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.