SEO Webstore

Search Engine Optomized Webstore

Products by Type

Shop by Brand

Language

Currency

Please Sign In
At least we'll be away from all this openness. No, this is too strange for us. We are creatures of outer space. Soon, we will be safe in the comforting closeness of walls.
- Rojan the Kelvan, "By Any Other Name," stardate 4657.5.

Login Box

Sites may choose to include a persistent login box in their design. Adding a login box is great for sites that have frequent return visitors. The login box is completely optional however. Stores and sites will work just fine without it.

CODE

Minimal (these parameters and their values do not change):

<cfmodule template="#site#"
    fuseaction="users.loginbox"
    user_id="#attributes.user_id#"

With all optional parameters shown:

<cfmodule template="#site#"
    fuseaction="users.loginbox"
    user_id="#attributes.user_id#"
    format="_form"
    xfa_login_successful=""
    xfa_cookie_login=""
    xfa_logout_successful=""
    showRegister="1|0"
    showRememberme="1|0"
    >

Optional Parameters:

  • format =_form. This parameter allows you to set which form layout to display. The default is '_form', but a designer could easily create a different layout to select.
  • xfa_login_successful = querystring. Defaults to the query string (everything following the '?' in the url) of the current page. This setting allows you to set a different page to forward the user to upon login. A membership site, for instance, may want to forward users to the Members Only area when the log in.
  • xfa_cookie_login = querystring. Defaults to the value of xfa_login_successful. Users who have clicked the 'remember me' checkbox will be automatically logged in using information stored in a cookie. You can have these returning visitors automatically forwarded to the page of your choice... perhaps a "Welcome Back" page!
  • xfa_logout_successful = querystring. Defaults to "" which returns user to the home page. However you can keep users on the same page or forward to any other page upon logout using this parameter.
  • showRegister = 1 (yes) or 0 (no). Defaults to 1. You can turn off the "Register Now" button on the login form by setting this parameter to 0. This feature is also controlled by the "Registration Form" option in the User Settings. However, setting the Registration Form to 'None' will turn off this feature on all login pages. This setting can be used to turn off the feature on a single form.
  • showRememberme = 1 (yes) or 0 (no). Defaults to 1. You can turn off the "Remember Me" option on the login form by setting this parameter to 0. This feature is also controlled by the the "Show Remember Me" option in the User Settings. However, that setting will turn off all this feature on all login forms. This setting can be used to turn off the feature on a single form.

CSS

/* --- Login Box --- */
#loginForm
#loginForm fieldset
#loginForm legend
#loginForm label
#loginForm .formField
#loginForm .formFieldCheckbox
#loginForm .formButton
.help

HTML

<form action="#" id="loginForm" >
 <input name="submit_login" value="login" type="hidden" />
 <input name="Server_Port" value="80" type="hidden" />

 <fieldset>
  <legend>Please Sign In</legend>
  
  <label for="username">Username:</label>
   <input type="text" name="username" id="username" class="formField" />
  <label for="password">Password:</label>
   <input type="password" name="password" id="password" class="formField" />

  <input type="checkbox" name="rememberme" id="remembersession" value="1" class="formFieldCheckbox" />
   <label for="rememberme">Remember me</label>

  <div class="submit">
  <input type="submit" name="name" value="sign in" class="FormButton"  />
  <input type="button" name="name" value="register" class="FormButton" onclick="#" />
  </div>

  <div class="help"><a href="#">Forgot Your Passoword?</a></div>

 </fieldset>
</form>

Your Opinion

Be the first to add your comment.


by AttentionPlease.com

Complete Site Directory