Scripting Shortcodes
Shortcodes for variables, sessions, cookies, logic, and loops.
i4w_cookie_name – This shortcode will capture an existing COOKIE variable with the given name and display if available.
This shortcode will capture an existing COOKIE variable with the given name and display if available.
This shortcode does NOT supports conditional branching with [ELSE_cookie_Name].
Shortcode nesting is NOT supported.
View Documentation →i4w_cookie_set – This shortcode is used to set a client-side cookie variable with a given value.
This shortcode is used to set a client-side cookie variable with a given value. This cookie will then be “remembered” during the subscriber’s session on your membership site for the next 3600 seconds (1 hour).
This shortcode does NOT supports conditional branching with [ELSE_cookie_set].
Shortcode nesting is NOT supported.
View Documentation →i4w_disp_cookie – Deprecated.
Deprecated. Please use [i4w_cookie_CookieName] instead.
This shortcode will capture an existing COOKIE variable and display if available.
This shortcode does NOT supports conditional branching with [ELSE_disp_cookie].
Shortcode nesting is NOT supported.
View Documentation →i4w_disp_get – Deprecated.
Deprecated. Please use [i4w_get_GetName] instead.
This shortcode will capture an existing GET variable and display if available.
This shortcode does NOT supports conditional branching with [ELSE_disp_get].
Shortcode nesting is NOT supported.
View Documentation →i4w_disp_post – Deprecated.
Deprecated. Please use [i4w_post_PostName] instead.
This shortcode will capture an existing POST variable and display if available.
This shortcode does NOT supports conditional branching with [ELSE_disp_post].
Shortcode nesting is NOT supported.
View Documentation →i4w_disp_request – Deprecated.
Deprecated. Please use [i4w_request_RequestName] instead.
This shortcode will capture an existing REQUEST variable and display if available.
This shortcode does NOT supports conditional branching with [ELSE_disp_request].
Shortcode nesting is NOT supported.
View Documentation →i4w_exec – This shortcode allows the injection of PHP code into a post, page, excerpt or widget.
This shortcode allows the injection of PHP code into a post, page, excerpt or widget.
CAUTION :This shortcode uses the PHP eval() language construct / function. The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand.
This shortcode does NOT supports conditional branching with [ELSE_exec].
Shortcode nesting is NOT supported.
View Documentation →i4w_foreach – This shortcode is used to perform a set of repetitive actions a fixed number of times, based on values...
This shortcode is used to perform a set of repetitive actions a fixed number of times, based on values passed to it, similar to a programming FOREACH loop.
This shortcode does NOT supports conditional branching with [ELSE_foreach].
Shortcode nesting is NOT supported.
View Documentation →i4w_forloop – This shortcode is used to perform a set of repetitive actions a fixed number of times, similar to a...
This shortcode is used to perform a set of repetitive actions a fixed number of times, similar to a programming FOR…TO…NEXt loop.
This shortcode does NOT supports conditional branching with [ELSE_forloop].
Shortcode nesting is NOT supported.
View Documentation →i4w_get_name – This shortcode will capture an existing GET variable with the given name and display if available.
This shortcode will capture an existing GET variable with the given name and display if available.
This shortcode does NOT supports conditional branching with [ELSE_get_Name].
Shortcode nesting is NOT supported.
View Documentation →i4w_getcookie – This shortcode is used to retrieve the value held in a client-side cookie.
This shortcode is used to retrieve the value held in a client-side cookie. The cookie will have to have been previously set either programmatically through your own script or through the [i4w_cookie_set] shortcode.
This shortcode does NOT supports conditional branching with [ELSE_getcookie].
Shortcode nesting is NOT supported.
View Documentation →i4w_getsession – This shortcode is used to retrieve the value held in a server-side session variable.
This shortcode is used to retrieve the value held in a server-side session variable. The session variable will have to have been previously set either programmatically through your own script or through the [i4w_session_set] shortcode.
This shortcode does NOT supports conditional branching with [ELSE_getsession].
Shortcode nesting is NOT supported.
View Documentation →i4w_ifcookie – This shortcode is designed to check for the existence of a cookie and, given a value to check, for a...
This shortcode is designed to check for the existence of a cookie and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.
[ELSE_ifcookie] conditional branching is supported.
Shortcode nesting is supported:[i4w_ifcookie1] thru [i4w_ifcookie19]
[ELSE_ifcookie1] thru [ELSE_ifcookie19]
View Documentation →i4w_ifcookiex – This shortcode is used to retrieve the value held in a client-side cookie and compare it with a...
This shortcode is used to retrieve the value held in a client-side cookie and compare it with a given value. The cookie will have to have been previously set either programmatically through your own script or through the [i4w_cookie_set] shortcode.
[ELSE_ifcookiex] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifcookiex1] thru [i4w_ifcookiex19]
[ELSE_ifcookiex1] thru [ELSE_ifcookiex19]
View Documentation →i4w_ifget – This shortcode is designed to check for the existence of a $_GET variable and, given a value to check...
This shortcode is designed to check for the existence of a $_GET variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.
[ELSE_ifget] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifget1] thru [i4w_ifget19]
[ELSE_ifget1] thru [ELSE_ifget19]
View Documentation →i4w_ifpost – This shortcode is designed to check for the existence of a $_POST variable and, given a value to check...
This shortcode is designed to check for the existence of a $_POST variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.
[ELSE_ifpost] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifpost1] thru [i4w_ifpost19]
[ELSE_ifpost1] thru [ELSE_ifpost19]
View Documentation →i4w_ifrequest – This shortcode is designed to check for the existence of a $_REQUEST variable and, given a value to...
This shortcode is designed to check for the existence of a $_REQUEST variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.
[ELSE_ifrequest] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifrequest1] thru [i4w_ifrequest19]
[ELSE_ifrequest1] thru [ELSE_ifrequest19]
View Documentation →i4w_ifsession – This shortcode is used to retrieve the value held in a server-side session variable and compare it...
This shortcode is used to retrieve the value held in a server-side session variable and compare it with a given value. The session variable will have to have been previously set either programmatically through your own script or through the [i4w_session_set] shortcode.
[ELSE_ifsession] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifsession1] thru [i4w_ifsession19]
[ELSE_ifsession1] thru [ELSE_ifsession19]
View Documentation →i4w_include – This shortcode provides the same functionality as the regular PHP include functionality but as a...
This shortcode provides the same functionality as the regular PHP include functionality but as a shortcode within a page or post.
The file system path can be specified as either (a) the full from the system root or (b) the relative path from the web document root.
Shortcode nesting is NOT supported.
View Documentation →i4w_include_once – This shortcode is identical to [i4w_include], except that it will only include the target file...
This shortcode is identical to [i4w_include], except that it will only include the target file once during the page visit.
This shortcode does NOT supports conditional branching with [ELSE_include_once].Shortcode nesting is NOT supported.
View Documentation →i4w_is_apache – If the server software matches the queried type, the shortcode will return the embedded content, up...
If the server software matches the queried type, the shortcode will return the embedded content, up to the optional ELSE clause. If the server software doesn’t match, the content after the ELSE clause will be returned.
[ELSE_is_apache] conditional branching is supported.
Shortcode nesting is NOT supported.
View Documentation →i4w_is_conditional – This shortcode determines the content to be included based upon the evaluation of a conditional.
This shortcode determines the content to be included based upon the evaluation of a conditional.
The purpose, definition, and use of conditionals is explained in detail here:
Conditionals
i4w_isset – This shortcode provides a means to determine if a parameter was passed to a custom shortcode and execute...
This shortcode provides a means to determine if a parameter was passed to a custom shortcode and execute the appropriate conditional branch.
[ELSE_isset] conditional branching is supported.
Shortcode nesting is NOT supported.
View Documentation →i4w_post_name – This shortcode will capture an existing POST variable with the given name and display if available.
This shortcode will capture an existing POST variable with the given name and display if available.
This shortcode does NOT supports conditional branching with [ELSE_post_Name].
Shortcode nesting is NOT supported.
View Documentation →i4w_randint – This shortcode returns a random integer.
This shortcode returns a random integer.
This shortcode does NOT support conditional branching with [ELSE_randint].
Shortcode nesting is NOT supported.
View Documentation →i4w_redirect – This shortcode enables you to redirect a visitor to another page on your site or off your site.
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.
View Documentation →i4w_request_name – This shortcode will capture an existing REQUEST variable with the given name and display if...
This shortcode will capture an existing REQUEST variable with the given name and display if available.
This shortcode does NOT supports conditional branching with [ELSE_request_Name].
Shortcode nesting is NOT supported.
View Documentation →i4w_select – This shortcode returns a value from a list, based on a switch variable, similar to a “switch…case…”...
This shortcode returns a value from a list, based on a switch variable, similar to a “switch…case…” programming construct.
This shortcode does NOT supports conditional branching with [ELSE_select].
Shortcode nesting is NOT supported.
View Documentation →i4w_session_name – This shortcode is used to retrieve the value held in a server-side session variable.
This shortcode is used to retrieve the value held in a server-side session variable. The session variable will have to have been previously set either programmatically through your own script or through the [i4w_session_set] shortcode.
This shortcode does NOT supports conditional branching with [ELSE_session_Name].
Shortcode nesting is NOT supported.
View Documentation →i4w_session_set – This shortcode is used to set a server-side session variable with a given value.
This shortcode is used to set a server-side session variable with a given value. This session variable will then be “remembered” during the subscriber’s session on your membership site.
This shortcode does NOT supports conditional branching with [ELSE_session_set].
Shortcode nesting is NOT supported.
View Documentation →i4w_set – This shortcode is used to set variable with a given value.
This shortcode is used to set variable with a given value. This variable will then be “remembered” while shortcodes are processed for a given post, page or widget.
This shortcode does NOT supports conditional branching with [ELSE_set].
Shortcode nesting is NOT supported.
View Documentation →