Weblogin

This is a user-contributed Extra. If you find issues or would like more info or help, please contact the author.

Weblogin uses a combination of three elements:

WebLogin

Allows webusers to login to protected pages in the website, supporting multiple user groups

Parameters

Parameter Description
&loginhomeid

redirects the user to first authorized page in the list (Optional)

If no id was specified then the login home page id or the current document id will be used.

&logouthomeid

document id to load when user logs out (Optional)

&pwdreqid

document id to load after the user has submited a request for a new password (Optional)

&pwdactid

document id to load when the after the user has activated their new password (Optional)

&logintext

Text to be displayed inside login button (for built-in form) (Optional)

&logouttext

Text to be displayed inside logout link (for built-in form) (Optional)

&tpl

Chunk name or document id to as a template (Optional)

&focusInput

Focus input-field on page load, use 0 or 1 (Optional)

Note: Templates design:

  • section 1: login template
  • section 2: logout template
  • section 3: password reminder template

See weblogin.tpl for more information

Examples

[[WebLogin? &loginhomeid=`8` &logouthomeid=`1`]]
[[WebLogin? &loginhomeid=`8,18,7,5` &tpl=`Login`]]

WebChangePwd

Allows Web User to change their password from the front-end of the website

Parameters

Parameter Description
&tpl

Chunk name or document id to use as a template (Optional)

Note: Templates design:

  • section 1: change pwd template
  • section 2: notification template

Examples

[[WebChangePwd? &tpl=`ChangePwd`]]

WebSignup

Allows a web user to signup for a new web account from the website. This snippet provides a basic set of form fields for the signup form. You can customize this snippet to create your own signup form

Parameters

Parameter Description
&tpl

Chunk name or document id to use as a template (Optional)

If custom template AND captcha on AND using WebSignup and WebLogin on the same page make sure you have a field named cmdwebsignup. In the default template it is the submit button. One can use a hidden field.

&groups

Web users groups to be assigned to users

&useCaptcha

Determine to use (1) or not to use (0) captcha on signup form (Optional).

If not defined, will default to system setting. GD is required for this feature. If GD is not available, useCaptcha will automatically be set to false;

Note: Templates design:

  • section 1: signup template
  • section 2: notification template

Examples

[[WebSignup? &tpl=`SignupForm` &groups=`NewsReaders,WebUsers`]]

Suggest an edit to this page.