How to edit registration page

Joomla offer possibility to add/edit user registration form on you website. In this article we will discuss how we can change, remove or even create additional fields in registration form.

Changing registration form fields titles

  1. Log into your Joomla admin panel.
  2. Select User Menu in Menues.
  3. Select User Registration.

Change menu item title. Save the change and check your site:

To change registration form fields, please modify en-GB.com_users.ini file located in language/en-GB folder on your server. Use CTRL+F how keys to search for the text you would like to change. You can change titles listed below in en-GB.com_users.ini file:

  • Required field
  • Name
  • Username
  • Password
  • Confirm Password
  • Email Address
  • Confirm email Address
  • optional

Edit en-GB.plg_user_profile.ini file, located in administrator/language/en-GB folder on your server to change the titles listed below:

  • 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

In order to change Registration and Cancel buttons titles, please edit en-GB.ini file from language/en-GB folder on your server.

Removing registration form fields

  1. Login into your Joomla admin panel.
  2. Navigate to Extensions > Plugins
  3. EnterĀ  User ProfileĀ  search textbox and click on search icon.

 

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 case to add new fields to the registration form access to Joomla database is required:

  1. Login to phpMyAdmin
  2. Select Joomla database (example is 002102)
  3. Browse abc_users table, where abc is your the database prefix ( example j2olh_users)
  4. Click on Structure button

 

Specify columns number under Add section. Select field after which new item will be shown and click Go.

Specify Name, Type and Length settings on the next screen.and save changes.

 

In case to make a new field appear on your site, you have to modify the following files:

  1. 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.

2. 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:

<field name="name" type="text"
        description="COM_USERS_USER_FIELD_NAME_DESC"
        label="COM_USERS_USER_FIELD_NAME_LABEL"
        required="true"
        size="30"
/>

Add code for your field just under the code below:

<field name="field_lable_here" type="text"
        description="Your description"
        label="field_lable_here"
        required="true"
        size="30"
/>

3. Edit registration.xml file from the components/com_users/models/forms folder on your server.

<field name="field_lable_here" type="text"
        description="Your description"
        label="field_lable_here"
        required="true"
        size="30"
/>

Leave a Reply

Your email address will not be published.

*