mbr_redirect
Usage
This shortcode redirects a visitor to another page/page within the site or to an external URL.
Parameters
Parameters | Description |
---|---|
url | The URL to redirect the visitor to. Default: none. Required: yes. |
autorun | If set to yes the shortcode will execute without waiting for user input. Otherwise it will generate a form and a submit button and wait for user input. If set to yes the following parameters will be ignored; button_text , button_image , button_style , new_window .Permitted Values: 1, yes, true Defaults: none. Required: no. |
button_text | The text to display on the button. Default: Go there now... Required: no. |
button_image | The URL of the image to use for the button. Default: none. Required: no. |
button_style | The CSS style to apply for the button. Default: none. Required: no. |
new_window | Specifies whether the user will be redirected to a new window after clicking the button. Permitted Values: 1, yes, true Default: none. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_redirect].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
- Example 3
- Example 4
- Example 5
- Example 6
Displays a button labelled "Go there now..." that when clicked will redirect the visitor in the current browser window to the page with the slug info.
[mbr_redirect url='/info']
Redirects the visitor automatically to the page with the slug info.
[mbr_redirect url='/info' autorun='1']
Displays a button labelled "Go there now..." that when clicked will redirect the visitor to new browser window showing the page with the URL "https://google.com".
[mbr_redirect url='https://google.com' new_window='1']
Displays a button labelled "Click here" that when clicked will redirect the visitor in the current browser window to the page with the URL "https://yoursite.com/welcome".
[mbr_redirect url='https://yoursite.com/welcome' button_text='Click here']
Displays a button labelled "Go there now..." in bold with a font size of 2.0em that when clicked will redirect the visitor in the current browser window to the page with the URL "https://google.com".
[mbr_redirect url='https://google.com' button_style='font-size:2.0em;font-weight:bold;']
Displays a button using the image at URL "https://example.com/image.png" that when clicked will redirect the visitor in the current browser window to the page with the URL "https://google.com".
[mbr_redirect url='https://google.com' button_image='https://example.com/image.png']
API
There is currently no ActiveMember360 API function equivalent for this shortcode.