Skip to main content

mbr_progress_meter

Usage

This shortcode returns a HTML5 <meter> tag based upon the number of tags (x) assigned to the contact linked to the logged in user compared to a specified list of available tags (y) i.e. x of y.

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.
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 <meter> tag.
Default: none.
Required: no.
classThe CSS class to apply to the HTML <meter> tag.
Default: none.
Required: no.
idThe HTML id attribute to apply to the HTML <meter> 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 <meter> tag with a value of zero will be returned.

Conditional Branching

This shortcode does NOT support conditional branching with [ELSE_progress_meter].

Nesting

Shortcode nesting is NOT supported.

Examples

Generates a HTML <meter> 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. For example if the user has one of the three tags the HTML <meter> tag would have a value of 1 of 3.

[mbr_progress_meter tags='123,456,789']

API

Note

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