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. Java框架学习之Hibernate入门

    Hibernate是一个开放源代码的对象关系映射框架,它对JDBC进行了非常轻量级的对象封装,使得Java程序员可以随心所欲的使用对象编程思维来操纵数据库. Hibernate可以应用在任何使用JDB ...

  2. 使用strace查看C语言级别的php源码

    XCACHE XCache 是一个开源的 opcode 缓存器/优化器, 这意味着他能够提高您服务器上的 PHP 性能. 他通过把编译 PHP 后的数据缓冲到共享内存从而避免重复的编译过程, 能够直接 ...

  3. Spring容器的工具类

    代码实现: package com.ht.util; import java.util.Map; import org.springframework.beans.BeansException; im ...

  4. MyBatis的事务处理

    先来假设这样一个问题:如果数据库里面有一个用户表和一个作家表,那么当要添加一条数据到作家表中时,作家表的id必须是用户表中的其中一个id,因为作家一定也要是一个用户.这时就涉及到事务处理. 在上一篇博 ...

  5. 分布式内存对象缓存 memcached

    分布式内存对象缓存 许多Web 应用程序都将数据保存到RDBMS中,应用服务器从中读取数据并在浏览器中显示.但随着数据量的增大,访问的集中,就会出现REBMS的负担加重,数据库响应恶化,网站显示延迟等 ...

  6. iOS语音识别,语音播报,文字变语音播报,语音变文字

    首先使用的是科大讯飞的sdk 1.语音识别部分 AppDelegate.m #import "AppDelegate.h" #import <iflyMSC/iflyMSC. ...

  7. NetAnalyzer笔记 目录

    目录 NetAnalyzer笔记 之 一 开篇语 NetAnalyzer笔记 之 二 简单的协议分析 NetAnalyzer笔记 之 三 用C++做一个抓包程序 NetAnalyzer笔记 之 四 C ...

  8. 【C#基础】实现URL Unicode编码,编码、解码相关整理

    1.Unicode编码 引用系统 System.Web using System.Web; string postdata = "SAMLRequest=" + HttpUtili ...

  9. 使用boost中的线程池

      #include <boost/thread/thread.hpp>#include <boost/bind.hpp>#include <iostream> u ...

  10. Mac下Qt连接MySQL 驱动问题

    Mac OS X下Qt的mySQL driver编译安装 原创文章,采用CC协议发布,转载请注明: 转载自canX.me 本文链接地址: Mac OS X下Qt的mySQL driver编译安装 – ...