我想在Joomla 1.6注册页面中插入额外字段,如电话号码,当前教育年份(“FE”,“SE”,“TE”,“BE”)等。 我不想使用社区插件,我想破解Joomla中的核心文件,并将所需信息添加到jos_user表。
我已经看到1.5的教程,但是没有1.6的教程。
答案 0 :(得分:7)
不要破解核心。使用其他名称(studentprofile等等)克隆plugins/user/profile/
插件。除profiles
文件夹外,无论您在何处看到,都可以将名称从profile
更改为新名称。假设studentprofile
为名称,在安装克隆后,编辑文件plugins/user/studentprofile/profiles/profile.xml
。您可以在此处添加自定义字段。启用该字段后,修改plugins/user/studentprofile/studentprofile.xml
和studentprofile.php
以匹配新字段。然后启用插件。