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 ...
随机推荐
- 介绍一款超实用的演讲必备工具 ZoomIt
最近在整理以前的文件时,发现躺在某个角落的一个超好的实用的小工具——ZoomIt.此工具是 SysinternalsSuite(已被MS收购)众多实用工具的一个. 相信大家在演讲时,经常需要调整屏幕文 ...
- 并发队列之:BlockingQueue和ConcurrentLinkedQueue
一.并行和并发区别: 并行:是指两者同时执行一件事.比如赛跑,两个人都在不停的往前跑: 并发:是指资源有限的情况下,两者交替轮流使用资源.比如一段路(单核CPU资源)同时只能过一个人,A走一段后,让给 ...
- CSS常用操作-对齐
index.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> &l ...
- c++11 : static_assert和 type traits
static_assert提供一个编译时的断言检查.如果断言为真,什么也不会发生.如果断言为假,编译器会打印一个特殊的错误信息. 1 2 3 4 5 6 7 8 9 10 11 12 13 templ ...
- 使用AudioTrack播放PCM音频数据(android)
众所周知,Android的MediaPlayer包含了Audio和video的播放功能,在Android的界面上,Music和Video两个应用程序都是调用MediaPlayer实现的.MediaPl ...
- Java基础知识强化47:StringBuffer类之StringBuffer的三个面试题
1. 面试题:String,StringBuffer,StringBuilder的区别 ? 答:String是字符串内容不可变的,而StringBuffer和StringBuilder是字符串内容长度 ...
- servlet的含义和作用
servle(Server Applet):全称Java Servlet,未有中文译文.是用Java编写的服务器端程序.其主要功能在于交互式地浏览和修改数据,生成动态Web内容.狭义的Servlet是 ...
- FileStream操作文件读写
FileStream fsRead = new FileStream(@"C:\Users\Administrator\Desktop\u.html",FileMode.OpenO ...
- 1 Linux平台下快速搭建FTP服务器 win7下如何建立ftp服务器
百度经验连接(亲测可用) http://jingyan.baidu.com/article/380abd0a77ae041d90192cf4.html win7下如何建立ftp服务器 http://j ...
- Codeforces Round #276 (Div. 1)
a. 给俩数, 求他俩之间二进制数中1最多的,有多个输出最小的: 贪心,从小到大加能加就加,最后可能碰到一个不能加了但是当前数比l小,那么就加上这个数,然后从大到小,能减就减,见到符合条件 #incl ...