mbr_is_not_in_list
Usage
This shortcode determines the content to be included based upon the ActiveCampaign list status of the current logged in user.
Parameters
Parameters | Description |
---|---|
list_id | The ActiveCampaign list ID whose status should be evaluated for the current logged in user. The list_id can be determined in ActiveMember360, Utilities, Lists. Default: none. Required: yes. |
status | The list status which is to be evaluated. >Permitted Values: any, active, unconfirmed, unsubscribed, bounced. Default: active. Required: no. |
Validity
This shortcode is only evaluated for logged in users who also exist as contacts within ActiveCampaign.
Conditional Branching
[ELSE_is_not_in_list] conditional branching is supported.
Nesting
Shortcode nesting within is NOT supported.
Examples
- Example 1
- Example 2
Will display "You are currently not subscribed to our Advanced list." if the current logged in users status for the ActiveCampaign list with ID 23 is not active(subscribed). Otherwise "You are in our Advanced list with an status that is not active(subscribed)." will be displayed:
[mbr_is_not_in_list list_id='23']
You are currently not subscribed to our Advanced list.
[ELSE_is_not_in_list]
You are in our Advanced list with an status that is not active(subscribed).
[/mbr_is_not_in_list]
Will display a HTML link labelled "Click here to subscribe to the XYZ newsletter" if the current logged in user's status for the ActiveCampaign list with ID 17 is not active(subscribed). When clicked the user will be subscribed to the list. Otherwise a HTML link labelled "Click here to unsubscribe from the XYZ newsletter" will be displayed. When clicked the user will be unsubscribed from the list:
[mbr_is_not_in_list list_id='17']
[mbr_list subscribe='17' link_text='Click here to subscribe to the XYZ newsletter']
[ELSE_is_not_in_list]
[mbr_list unsubscribe='17' link_text='Click here to unsubscribe from the XYZ newsletter']
[/mbr_is_not_in_list]
API
There is currently no ActiveMember360 API function equivalent for this shortcode.