Description
This shortcode filters the mycred_history shortcode to show all the times a user has won playing scratch cards.
Shortcode Attributes
Attribute | Type | Required | Default | Description |
---|---|---|---|---|
user_id |
int | No | current | Option to show the winning history of a particular user. Use current to show the current users (the user viewing the shortcode) history. |
number |
int | No | 10 | The number of entries to show per page. |
type |
string | No | - | The point type to show log entries for. Should only be used when scratch cards are set to payout a custom point type. |
show_nav |
int | No | 0 | Option to show navigation for the log table (1) or not (0). |
inlinenav |
int | No | 0 | Insert custom CSS to style navigation to be inline. Should only be used when the navigation is rendered vertically (0) instead of horizontal (1). Requires myCRED 1.7.5 or higher. |
login |
string | No | - | Optional message to show when a visitor views the log. Leave empty if you want to show the log for visitors as well. |
CSS Styling
This shortcode does not return any stylable elements.
Example
Example 1: Show the current users winning history with max 10 log entries per page.
[mycred_scratch_history number=10 show_nav=1]
Example
Example 1: Show the last 5 wins the current user for a custom point type.
[mycred_scratch_history number=5 type="mycustomtype"]