i4w_redirect

Usage:

This shortcode enables you to redirect a visitor to another page on your site or off your site.

The shortcode may be run in “autorun” mode, in which case the visitor is automatically redirect or it may be used as a link.

This shortcode does NOT supports conditional branching with [ELSE_redirect].

Shortcode nesting is NOT supported.

Parameters:

redirThe URL to which a visitour should be sent to.
Required: Yes.
Default: none.
autorunDefines whether a visitor will be automatically send to the specified URL or whether a click is required.
Required: No.
Default: 0 (no)
newwindowDefines whether a visitor will be sent to the specified URL in a new browser window or not.
Required: No.
Default: 0 (no)
buttontextDefines the text to be displayed on a submit button.
Required: No.
Default: “Submit”.
buttonimageDefines whether an image is displayed in lieu of an HTML submit button.
Required: No.
Default: None.
buttonstyleProvides additional CSS instructions to be applied to an HTML submit button.
Required: No.
Default: None.

Example:

[i4w_redirect redir='/info']
The visitor will be sent to the /info page when s/he clicks on the submit button.

[i4w_redirect redir='/info' autorun='1']
The visitor will automatically be sent to the /info page.

[i4w_redirect redir='/info' autorun='1' newwindow='1']
The visitor will automatically be sent to the /info page in a new browser window. Please note that this functionality is dependent upon browser settings allowing popup windows.

[i4w_redirect redir='http://disney.com/info' autorun='1']
The visitor will automatically be sent to the /info page at disney.com.

[i4w_redirect buttontext='Click here']
The text to be displayed on the submit button.

[i4w_redirect buttonstyle='font-size:2.0em;font-weight:bold;']
Any CSS style instructions that you want applied to the submit button.

[i4w_redirect buttonimage='http://domain.com/image.png']
The image to be displayed in lieu of an HTML submit button.

API:

There is no API function equivalent for this shortcode.