Joomla 3.x. How to edit registration page
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:
Access the database assigned to your site using PhpMyAdmin tool on your hosting Cpanel.
Browse XXX_users table. XXX is your the database table prefix:
Click on the Structure button.
Choose elements between which you would like to paste a new field.
Specify columns number under Add section. Add chose database ID after which new item will be shown.
Click on Go button:
Specify Name, Type and Length settings on the next screen.
Save changes:
In order to make a new field appear on your site, modify the following files:
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.
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:
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.
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的更多相关文章
- Page Security
参见开发文档 Overview This document describes how to build applications that grant selected access to indi ...
- Sharepoint学习笔记—习题系列--70-576习题解析 -(Q32-Q35)
Question 32 You are designing the modification of an existing SharePoint 2010 intranet site for a sc ...
- 黄聪:wordpress中remove_action、add_action、 do_action()的hook钩子都有哪些
原文地址:http://codex.wordpress.org/Plugin_API/Action_Reference muplugins_loaded After must-use plugins ...
- 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 ...
- gitblit-1.8.0域认证
gitblit-1.8.0\data\defaults.properties # # DEFAULTS.PROPERTIES # # The default Gitblit settings. # # ...
- 32bit 天堂服务端假设教程
本文作者:smeli(俄罗斯人,于2009年完成该教程) PS:要比国内写的那些教程完整,详细,希望大家喜欢 VS运行库安装………………………………………..2 SQL数据库安装…………………………… ...
- CQRS之旅——旅程4(扩展和增强订单和注册限界上下文)
旅程4:扩展和增强订单和注册限界上下文 进一步探索订单和注册的有界上下文. "我明白,如果一个人想看些新鲜的东西,旅行并不是没有意义的."儒勒·凡尔纳,环游世界80天 对限界上下文 ...
- http://www.freeopensourcesoftware.org
Applications http://www.freeopensourcesoftware.org/index.php?title=Applications Main Page > Thi ...
- vue.js中英文api
全局配置 Vue.config is an object containing Vue's global configurations. You can modify its properties l ...
随机推荐
- 关于Spring配置 (Cannot find class [org.apache.commons.dbcp.BasicDataSource] 问题)
myeclipse抛出异常 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find /webapps/t ...
- 【转】MVC5中的区域(Areas)
MVC本身提倡的就是关注点分离.但是当项目本身的业务逻辑足够复杂,如果所有的业务逻辑都写个Controller文件夹下面的时候,你会看到非常庞大的各种命名的Controller,这个时候区域的作用就非 ...
- 【初学者常见问题】一脚踏入protected埋下的陷阱
受保护的(protected)——声明该成员的类的子类可以访问这个类的成员(但有一定的限制),并且,声明该成员的包内部的任何类也可以访问这个成员 protected修饰符参考:http://www.3 ...
- TTTAttributedLabel使用介绍(转)
TTTAttributedLabel 库地址 https://github.com/TTTAttributedLabel/TTTAttributedLabel 可以实现电话 地址 链接自动查找显示 ...
- [转]RecyclerView初探
原文地址:http://www.grokkingandroid.com/first-glance-androids-recyclerview/ RecyclerView是去年谷歌I/O大会上随Andr ...
- Android应用调试经常使用知识
1.Android应用启动过程调试 1).进入设置-->辅助功能-->开发人员选项:假设没有打开开发人员模式.在拨号里面输入*#*#6961#*#*: 2).找到选择调试应用,打开选择你要 ...
- Java和C++的不同
现在一边继续深入C++,一边学习Java,为了学习得更加透彻,不断比较两者之间的不同,以后会慢慢继续增加. 1.在多态的实现上,C++需要利用关键字virtual,而Java不需要,因为在Java中, ...
- Android浏览图片,点击放大至全屏效果
做到照片浏览的功能,对于QQ空间中点击图片放大至全屏,感觉效果很赞,于是也做了个类似的效果.如下. 我不知道QQ那个是怎么做的,我的思路如下: 首先,从图片缩略界面跳转到图片详情页面,应该是从一个Ac ...
- C# 无边框窗体移动代码
C# 无边框窗体移动代码 Point _frmPoint = new Point(); //移动前窗体左上角坐标 Point _mousePoint = new Point(); //按下鼠标时坐标 ...
- FileGeodatabase和PersonalGeodatabase与ArcSDEGeodatabase三种数据库比较.