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. zookeeper[3] zookeeper API开发注意事项总结

    如下是根据官方接口文档(http://zookeeper.apache.org/doc/r3.4.1/api/org/apache/zookeeper/ZooKeeper.html#register( ...

  2. JavaScript 原型与原型链

    __proto__ 用来获取和设置对象原型,但它是非标准的.__proto__前后的双下划线,说明它本质上是一个内部属性,而不是一个正式的对外的API,只是由于浏览器广泛支持,才被加入了ES6.标准明 ...

  3. php form表单post提交获取不到数据,而使用get提交能获取到数据 的解决办法

    开发环境:xampp,mac,phpstorm 其实出现这个问题的原因就是在于phpstorm,它默认使用的是自带的内部服务器,这个服务器使用63342端口,而且服务器内部有问题,导致POST方法异常 ...

  4. Showing 2 changed files with 3 additions and 3 deletions.

    4  lib/matplotlib/__init__.py View   @@ -126,9 +126,9 @@ def compare_versions(a, b):     else: ...

  5. [Android开发常见问题-14] Unexpected namespace prefix "abc" found for tag SomeThing

    很多开发者朋友可能会自己定义一些控件,以此来扩展现有控件的功能,在扩展空间的时候通常会自己定义一些属性,例如: [html]  view plain copy   <android.alex.v ...

  6. oracle tkprof 工具详解

    oracle  tkprof 工具详解 今天是2013-09-26,进行tkprof工具使用学习,在此记录一下笔记: 一)查看需要跟踪会话信息: select s.sid,s.serial#,s.us ...

  7. Oracle11g新特性之动态变量窥视

    1. 11g之前的绑定变量窥视     我们都知道,为了可以让SQL语句共享运行计划,oracle始终都是强调在进行应用系统的设计时,必须使用绑定变量,也就是用一个变量来取代原来出如今SQL语句里的字 ...

  8. Oracle之事务

    一,oracle的事务: 是指对数据操作的一系列动作的统称.即:事务的任务便是使数据库从一种状态变换成为另一种状态,这不同于文件系统,它是数据库所特用的. 事务有四大特性(ACID): 1,原子性(a ...

  9. JavaScript中函数参数的按值传递与按引用传递(即按地址传递)

    首先声明一句:JavaScript中所有函数的参数都是按值传递的!不存在按引用传递! 在讲传递参数之前我们先来讲一下指针. 学过C指针的应该都知道,指针变量中保存的是一个地址,程序可以根据所保存的地址 ...

  10. div与span

    div与span的区别: div标签属于块级元素,span标签属于行内元素,使用对比效果如下: <!DOCTYPE html> <html> <head lang=&qu ...