GenieGate, Version 1.1.0 (PHP 5) manual

User Sign Up

This section has to do with allowing new members to sign themselves up automatically. The process involves filling out a form, checking their email and returning with a confirmation code. If you are interested in an alternate method, where a user is required to pay for membership see Chapter 5, PayPal support

The file web/users/signup.php contains the URL for this function, (however it does not actually produce the HTML, it is equivalent to /path/index.php?DO_SHOW_SIGNUP_FORM=1 )

This form must be POST (GET won't work for security reasons)

The form requires a name, userID, password, email address and confirm address. The form variables are:

[Important] Important

Although creating your own login forms are supported in both the free and paid versions, the free version must contain the advertising links. Please see the license for details. These must appear on each page containing a login or sign-up form.

Table 6.1. Form variables for sign up

Form Variable Label What it does
DO_PROCESS_SIGNUP Tells the application to process a sign up. (Hidden form variable)
USERID Users ID to use The persons user ID.
NAME Name Supplies the persons name.
EMAIL Email Supplies the persons email address.
PASSWORD Password Supplies the users password.
PASSWORDC Password Confirm Supplies a password for confirmation (must match PASSWORD)
LOCATION

Optional, if provided, must be an absolute url to display after submit.

After submitting this form, the user is asked to check his or her email for further instructions. An email is sent to the users email address, with a temporary confirmation code and url used to validate the email address. This is used to confirm the email address as valid.

When the user checks their email, they should get a message with a url that looks something like this: http://www.example.com/path/to/web/users/confirm.php?C=163&U=userid

[Tip] Tip

The text of this email is configurable by creating your own mail-confirm.php or by editing the ~/geniegate/conf/users.xml file, specifying an alternate filename to be used for the email contents.

Clicking the generated link will activate the account and they will be given the opportunity to login.

The Login page should be specified in your ~/geniegate/conf/geniegate.ini In the [Url] section under StartPage

[Tip] Tip

The default expiration date for new accounts is 30 days, you may specify this in your ~/geniegate/conf/geniegate.ini by adjusting the EXPIRE_TIME variable to a number of days.