[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: register_user.php

Source Location: /zp-extensions/register_user.php

Page Details

Provides a means where visitors can register and get limited site privileges.

Place a call on printRegistrationForm() where you want the form to appear. Probably the best use is to create a new 'custom page' script just for handling these user registrations. Then put a link to that script on your index page so that people who wish to register will click on the link and be taken to the registration page.

When successfully registered, a new admin user will be created with no logon rights. An e-mail will be sent to the user with a link to activate the user ID. When he clicks on that link he will be taken to the registration page and the verification process will be completed. At this point the user ID rights is set to the value of the plugin default user rights option and an email is sent to the Gallery admin announcing the new registration.

NOTE: If you change the rights on a user pending verification you have verified the user.

Author:  Stephen Billard (sbillard)
Classes
Class Description
register_user_options Plugin option handling class
Includes
require_once (SERVERPATH.'/'.ZENFOLDER.'/'.PLUGIN_FOLDER.'/comment_form.php') [line 32]
[ Top ]


Functions
printRegistrationForm  [line 200]

Parses the verification and registration if they have occurred places the user registration form

Parameters:
string   $thanks:  the message shown on successful registration


void printRegistrationForm( [string $thanks = NULL]  )

[ Top ]
register_user_handleOptionSave  [line 178]
Parameters:
   $notify: 
   $themename: 
   $themealbum: 


void register_user_handleOptionSave( $notify, $themename, $themealbum  )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:08:00 +0100 by phpDocumentor 1.4.3