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
| Parameter | Description | Default | Required |
|---|---|---|---|
| user | The label for the user login field. | User | No |
| pass | The label for the user password field. | Password | No |
| button | The label for the login push button. | Login | No |
| buttonimage | The URL path to the image of your choice. If present, will override the 'button' parameter. | None | No |
| buttoncenter | Will cause the HTML submit button to be centered. | None | No |
| buttonstyle | Any inline style you want to apply to the button image or HTML button. | None | No |
| layout | The 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. | h | No |
| width | The width of input fields in pixels. | 60 | No |
| height | A height for the input fields may be set. | None | No |
| redir | Upon 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#'. | None | No |
| display | Define whether or not the login form should be displayed when the user is already logged in. Use 'display='always' to force a display. | None | No |
| default_password | Allows 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. | 0 | No |
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#'.