Skip to main content

i4w_minilogin

Usage

This shortcode returns a miniature HTML form through which a visitor can log in. As the name implies, it's designed to have a small footprint.

[ELSE_minilogin] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
userThe label for the user login field.UserNo
passThe label for the user password field.PasswordNo
buttonThe label for the login push button.LoginNo
buttonimageThe URL path to the image of your choice. If present, will override the 'button' parameter.NoneNo
buttoncenterWill cause the HTML submit button to be centered.NoneNo
buttonstyleAny inline style you want to apply to the button image or HTML button.NoneNo
layoutThe default layout is horizontal. Optionally, you may set it to vertical ('v'), in which case the login form will be displayed within a 3 row table.hNo
widthThe width of input fields in pixels.60No
heightA height for the input fields may be set.NoneNo
redirUpon login through the mini-login shortcode, the user will be returned to the same page. By entering an alternative URL, one can override the default. To revert to the membership level's "redirect on login", use redir='#use_level_redir#'.NoneNo
displayDefine whether or not the login form should be displayed when the user is already logged in. Use 'display='always' to force a display.NoneNo
default_passwordAllows the visitor to log in by using ONLY an email. This is ideal for free sites where access to the content is purposely setup to be as uncomplicated as possible.0No

Example

Shortcode
[i4w_minilogin]
Shortcode
[i4w_minilogin redir='#use_level_redir#']
Shortcode
[i4w_minilogin redir='#use_last_page#']

Notes

info

In order to override the default "stay on same page" behavior and revert to the membership level's "redirect on login", enter redir='#use_level_redir#'.