For the site I need to extend the standard User Registration.
Details of how to do this can be found here (steps 1 & 2), here (video) and here.
Simply, do the following:
1. Add new fields to the JOS_USERS table. The new fields are added like this:
alter table jos_users add (firstname varchar(100))
alter table jos_users add (middlenames varchar(100))
alter table jos_users add (surname varchar(100))
alter table jos_users add (title varchar(20))
alter table jos_users add (biography text)
alter table jos_users add (contactnumber varchar(50))
alter table jos_users add (mobilenumber varchar(50))
alter table jos_users add (camerainfo varchar(100))
alter table jos_users add (termsandconditions tinyint(4) NOT NULL default '0')
2. Edit libraries/joomla/database/table/user.php (around line 118):
var $firstname = null;
var $middlenames = null;
var $surname = null;
var $title = null;
var $biography = null;
var $contactnumber = null;
var $mobilenumber = null;
var $camerainfo = null;
var $termsandconditions = null;
3. Edit libraries/joomla/user/user.php (around line 138):
var $firstname = null;
var $middlenames = null;
var $surname = null;
var $title = null;
var $biography = null;
var $contactnumber = null;
var $mobilenumber = null;
var $camerainfo = null;
var $termsandconditions = null;
4. Edit com_user/views/user/tmpl/form.php (around line 29).
Add the new fields (and in this case i commented out the 'name' field).
5. Edit com_user/views/register/tmpl/default.php (around line 24).
Login Module
To use this, we need to add a login module. So, in admin, go to Module Manager and add a Login module.
No comments:
Post a Comment