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:

  1. Access the database assigned to your site using PhpMyAdmin tool on your hosting Cpanel.

  2. Browse XXX_users table. XXX is your the database table prefix:

  3. Click on the Structure button.

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

  5. Specify columns number under Add section. Add chose database ID after which new item will 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 will be shown:

    1
    2
    3
    4
    5
    6
    <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:

    1
    2
    3
    4
    5
    6
    <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:

    1
    2
    3
    4
    5
    6
    <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的更多相关文章

  1. Page Security

    参见开发文档 Overview This document describes how to build applications that grant selected access to indi ...

  2. Sharepoint学习笔记—习题系列--70-576习题解析 -(Q32-Q35)

    Question 32 You are designing the modification of an existing SharePoint 2010 intranet site for a sc ...

  3. 黄聪:wordpress中remove_action、add_action、 do_action()的hook钩子都有哪些

    原文地址:http://codex.wordpress.org/Plugin_API/Action_Reference muplugins_loaded After must-use plugins ...

  4. How to distribute your own Android library through jCenter and Maven Central from Android Studio

    In Android Studio, if you wish to include any library to your application. You could just simply add ...

  5. gitblit-1.8.0域认证

    gitblit-1.8.0\data\defaults.properties # # DEFAULTS.PROPERTIES # # The default Gitblit settings. # # ...

  6. 32bit 天堂服务端假设教程

    本文作者:smeli(俄罗斯人,于2009年完成该教程) PS:要比国内写的那些教程完整,详细,希望大家喜欢 VS运行库安装………………………………………..2 SQL数据库安装…………………………… ...

  7. CQRS之旅——旅程4(扩展和增强订单和注册限界上下文)

    旅程4:扩展和增强订单和注册限界上下文 进一步探索订单和注册的有界上下文. "我明白,如果一个人想看些新鲜的东西,旅行并不是没有意义的."儒勒·凡尔纳,环游世界80天 对限界上下文 ...

  8. http://www.freeopensourcesoftware.org

    Applications http://www.freeopensourcesoftware.org/index.php?title=Applications   Main Page > Thi ...

  9. vue.js中英文api

    全局配置 Vue.config is an object containing Vue's global configurations. You can modify its properties l ...

随机推荐

  1. linux部署mongodb及基本操作

    原文:http://blog.csdn.net/jinzhencs/article/details/50930877 一.安装部署mongo 1.创建文件夹 /opt/mongodb/single / ...

  2. 计算app内部缓存文件大小

    #pragma mark - 计算单个文件大小 - (long long)fileSizeAtPath:(NSString*)filePath{ NSFileManager* manager = [N ...

  3. 数组字符串与指针字符串的区别 char s[]="***" 和char *s="***"的区别

    char s[] = "wangshihui"; char *s = "wangshihui"; 皆宣告了s字符串,在C-style string的函数皆可使用 ...

  4. android避免decodeResource图片时占用太大的内存

    增加largeHeap="true"属性. android:largeHeap Whether your application's processes should be cre ...

  5. FusionChart实现金字塔分布图

    1.XML提供数据源 Pyramid.xml: <?xml version="1.0" encoding="UTF-8"?> <chart m ...

  6. Entrez检索实例 - NCBI

    题目:已知来豆荚斑驳病毒(bean pod mottle virus,BPMV)的名字,查询BPMV基因组信息.核酸序列信息.蛋白序列信息和结构信息 解答: 1.直接搜索,点genome,即可看到病毒 ...

  7. mybati之#与$的区别

    $是用于sql的拼接: //因为user_name是String类型,所以在sql中加上单引号,需要手动的判断数据类型,value是如果没有指定参数的话,value就是默认参数名称,获取穿的参数就是: ...

  8. Panel( 面板) 组件 上

    一. 加载方式//class 加载方式<div class="easyui-panel" data-options="closable:true"titl ...

  9. (六)《Java编程思想》——初始化及类的加载顺序

    package chapter7; /** * 初始化及类的加载顺序:顺序如下 * 1.基类的static变量 * 2.导出类的static变量 * 3.基类的变量 * 4.基类的构造函数 * 5.导 ...

  10. jquery获取checkbox被选中的值

    只用一个循环,就可以找出被选中的checkbox的值 var s; $("[name = b]:checkbox").each(function () {              ...