Email Validator v1
=================

Author	: Ritey
Date	: December 2006
WWW	: http://gocoding.com
Seditio	: v110



Description
-----------
This plugin has two features:-

Email Confirmation On Signup:
Places an extra text box in the signup page for the user to confirm their email address.


Users ability to change email address with validation:
This plugin will enable users to update their email addresses. This is done safely because it marks their accout as inactive and sends them an activation link.

Very similar to the registration process, with the difference being that the maingrp in their profile, is saved and restored on successfully validation.

This is similar to wot phpBB does when users change thier email address.



Installation:
-------------
Extract the folder emailvalidate to the plugins folder.

Put the {USER_REGISTER_EMAIL2} tag in the users.register.tpl file.
(This gives the extra text box for the user to enter their email address into)


Put the {PLUGIN_EMAILCHANGE} tag in the users.profile.tpl file. This should be placed next to {USERS_PROFILE_EMAIL} tag.
It will give an URL output of:-  <a href=plug.php?e=emailchange>[Change My Email Address]</a>

Install The plugin as per normal plugins.

Goto the plugin configuration (admin.php?m=config&n=edit&o=plug&p=emailvalidate) and enable both features. You don't have to enable both, you can use either, both or neither!
But by default neither are enabled.

IMPORTANT NOTES:
IF YOU ARE USING THE EMAIL CHANGER FEATURE, THEN YOU MAY WANT TO DISABLE 'Cleaner Plugin' AS THIS WILL DELETE ACCOUNTS MARKED AS INACTIVE AFTER TWO DAYS.

IF YOU HAVE THE 'EMAILCHANGER' PLUGIN THEN YOU NEED TO UNINSTALL THIS AS EMAILVALIDATE (THIS PLUGIN) INCLUDES THIS FEATURE


Usage:
------
USER SIGNUP:
users will be presented with two email boxes to fill. If the text inside the boxes don't match they will receive an error message.

USER EMAIL CHANGING:
When a user wishes to change their email address they can goto their profile and click the link next to their registered email address.

This will direct them to a page which asks them for their new email address (and confirmation).
It will also ask them for their current password. This is just an aditional security measure.

It won	 let them change it, if the email is the same as any currently in the database (whether its theirs or not).

After this there account will be marked as inactive, their maingrp id saved, an email is then sent to the new address giving a link to reactive their account.

Once the email link has been followed, their account is removed from the inactive group and their main group restored.
