Joomla 3.x. How to edit registration page

Source: Internet
Author: User
Tags cpanel hosting web hosting server hosting virtual private server virtual private server hosting

Adding Registration Form Fields

In order to add new fields to the registration form,Database and filesUpdate is required. The followingdatabase changes is required:

  1. Access theDatabase assigned to your site usingPhpMyAdmin tool on yourHostingCpanel.

  2. Browse xxx_users table. XXX is your Thedatabase table prefix:

  3. Click on the Structure button.

  4. Choose elements between which you would as to paste a new field.

  5. Specify columns number under ADD section. ADD chose database ID after which new item would be shown.

  6. Click on Go button:

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

  8. Save changes:

In order to make a new field appear on your site, 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 would 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"/>

    ADD code for your field just under the code below:

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

    Replace Field_lable_here with your new field label. Change Your description text to Your description.

  3. 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"/>

Upload the modified files on your server. Refresh your site to see the change.

Joomla 3.x. How to edit registration page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.