Adding custom field in default joomla 3.1.1 registration form

前端 未结 3 2107
悲&欢浪女
悲&欢浪女 2021-01-05 01:26

Recently I have stumbled upon a situation in Joomla 3.1.1 where I need to add a custom field attached with default registration form.

I surfed the e

3条回答
  •  长情又很酷
    2021-01-05 02:06

    Eventually it turns out that the problem was a component called K2.I tried this custom registration stuff in joomla 2.5 and then suddenly thought how about disabling K2 System Plugin..It worked.

    Im posting the steps to do so:

    1.Navigate to joomla_root/components/com_users/models/forms/registration.xml and add a field there.

    2.Then open up joomla_root/components/com_users/models/registration.php and then in the function register() change ur custom fields.

    3.Don't forget to add a field in ur database table #_users which you have added in registration.xml

提交回复
热议问题