Skip to main content

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

ParametersDescription
tagsOne 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.
roundThe decimal rounding to apply to the result.
Default: 0
Required: no.
callbacksA comma separated list of callback functions to be called to further process the return value of the shortcode.
Default: none.
Required: no.
styleThe CSS style to apply to the HTML <progress> tag.
Default: none.
Required: no.
classThe CSS class to apply to the HTML <progress> tag.
Default: none.
Required: no.
idThe 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

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']

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.