Changing registration form fields titles
In order to change Registration page title, follow the steps below:-
Log into your Joomla admin panel.
-
Open User Registration menu item under Menus > System Menu tab:
-
Change menu item title. Save the change and check your site:
-
Required field
-
Name
-
Username
-
Password
-
Confirm Password
-
Email Address
-
Confirm email Address
-
optional
-
Address 1
-
Address 2
-
City
-
Region
-
Country
-
Postal / ZIP Code
-
Phone
-
Web site:
-
Favourite Book
-
About Me
-
The date of birth entered should use the format Year-Month-Day, i.e. 0000-00-00
-
Date of Birth
Removing registration form fields
In order to disable some fields in your registration form, make the following changes:-
Log into your Joomla backend.
-
Navigate to Extensions > Plugins Manager.
-
Edit User – Profile plugin:
-
Select Disabled option from the drop down menu next to the field title. You can chose Optional or Required item in case you would like the form field be required or optional when submitting the form:
Adding registration form fields
In order to add new fields to the registration form, database and files update is required. The following database changes are required:-
Access the database assigned to your site using PhpMyAdmin tool on your hosting Cpanel.
-
Browse XXX_users table. XXX is your the database table prefix:
-
Click on the Structure button.
-
Choose elements between which you would like to paste a new field.
-
Specify columns number under Add section. Add chose database ID after which new item will be shown.
-
Click on Go button:
-
Specify Name, Type and Length settings on the next screen.
-
Save changes:
-
Edit user.php file from the libraries/joomla/user folder. Find code for the field after which your new section should come:
public $name = null;
Add code for your new field just under the code above:
public $field_lable_here= null;
Where field_lable_here is your new field title.
-
Modify users.xml file from administrator/components/com_users/models/forms directory.
Find code for the field after which your new field will be shown:
123456<
field
name
=
"name"
type
=
"text"
description
=
"COM_USERS_USER_FIELD_NAME_DESC"
label
=
"COM_USERS_USER_FIELD_NAME_LABEL"
required
=
"true"
size
=
"30"
/>
123456<
field
name
=
"field_lable_here"
type
=
"text"
description
=
"Your description"
label
=
"field_lable_here"
required
=
"true"
size
=
"30"
/>
-
Edit registration.xml file from the components/com_users/models/forms
folder on your server. Add code for your field under the code used for
the field after which you would like to show your new field:
123456<
field
name
=
"field_lable_here"
type
=
"text"
description
=
"Your description"
label
=
"field_lable_here"
required
=
"true"
size
=
"30"
/>
Feel free to check the detailed video tutorial below:
0 comments:
Post a Comment