mbr_progress_bar
Usage
This shortcode returns a HTML5 <progress>
tag based upon a percentage calculated from the number of tags assigned to the contact linked to the logged in user compared to a specified list of available tags.
Parameters
Parameters | Description |
---|---|
tags | One or more ActiveCampaign tag ID's, separated using commas, to be the basis for the comparison against the logged in users assigned tags. The available tags can be found in ActiveMember360, Utilities, Tags. Default: none. Required: yes. |
round | The decimal rounding to apply to the result. Default: 0 Required: no. |
callbacks | A comma separated list of callback functions to be called to further process the return value of the shortcode. Default: none. Required: no. |
style | The CSS style to apply to the HTML <progress> tag.Default: none. Required: no. |
class | The CSS class to apply to the HTML <progress> tag.Default: none. Required: no. |
id | The HTML id attribute to apply to the HTML <progress> tag.Default: none. Required: no. |
Validity
This shortcode is only evaluated for logged in users who also exist as contacts within ActiveCampaign.
In all other cases, including WordPress users with the Administrator role a HTML <progess>
tag with a value of zero will be returned.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_progress_bar].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Generates a HTML <progress>
tag based upon a percentage determined by the number of tags the ActiveCampaign contact linked to the logged in user from the list of tag IDs 123, 456, 789 rounded to zero decimal places. For example if the user has one of those tags the HTML <progress>
tag would have a value of 33%.
[mbr_progress_bar tags='123,456,789']
Generates a HTML <progress>
tag based upon a percentage determined by the number of tags the ActiveCampaign contact linked to the logged in user from the list of tag IDs 123, 456, 789 rounded to two decimal places. For example if the user has one of those tags the HTML <progress>
tag would have a value of 33.33%.
[mbr_progress_bar tags='123,456,789' round='2']
API
There is currently no ActiveMember360 API function equivalent for this shortcode.