开发者

Add custom field in Joomla 1.6 Registration

开发者 https://www.devze.com 2023-03-22 09:41 出处:网络
I want to insert extra fields in Joomla 1.6 registration page like phone no, current year of education (\"FE\", \"SE\", \"TE\", \"BE\") etc.

I want to insert extra fields in Joomla 1.6 registration page like phone no, current year of education ("FE", "SE", "TE", "BE") etc. I don't want to use Community plugin, I want to hack the core files in Joomla to do this and add t开发者_如何转开发he required information to jos_user table.

I've see tutorials for this for 1.5 but no such tutorial for 1.6.


Don't hack core. Clone the plugins/user/profile/ plugin with a different name (studentprofile, etc...). Except for the profiles folder, change the names from profile to the new one wherever you see it. Assuming studentprofile as the name, after you've installed the clone, edit the file plugins/user/studentprofile/profiles/profile.xml. This is where you can add your custom fields. After the field is enabled, edit the plugins/user/studentprofile/studentprofile.xml and studentprofile.php to match the new fields. Then enable the plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消