Usage:
This shortcode compares a user’s tags to a given set of tags and computes a “progress” factor as a percent of total, a fraction of total, a rounded division result, or a simple counter.
This shortcode does NOT support conditional branching with [ELSE_contact].
Shortcode nesting is NOT supported.
Parameters:
tags | A comma separated list of tag ID’s used as the basis for comparison against a user’s assigned tags. Default: none. Required: yes. |
format | Specify the desired format for results value: Allowed format identifiers are: – “p” for percentage (i.e. 0.83), – “f” for a fraction (i.e. “5/7”), – “n” for rounded numeric (i.e. 4.2), – “c” for simple counter (i.e. 5) Default: ‘p’. Required: no. |
round | Specify the desired decimal rounding factor. Default: 2. 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. |
Examples:
[mbr_progress_tags tags='123,234,345,456']
Assuming a user had tags 123 and 345, the result would be 50 (50%).
[mbr_progress_tags tags='123,234,345,456' format='n']
Assuming a user had tags 123 and 345, the result would be 0.5.
[mbr_progress_tags tags='123,234,345,456' format='c']
Assuming a user had tags 123 and 345, the result would be 2.
[mbr_progress_tags tags='123,234,345,456' format='f']
Assuming a user had tags 123 and 345, the result would be 2/4.
<progress max='100' value=[mbr_progress_tags tags='123,234,345,456']
Used with HTML5’s <progress> tag and a user with tags 123 and 345, the result would be:
API:
There is currently no ActiveMember360 API function equivalent for this shortcode.