We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Require email address only if a certain answer is given to a profile question | Forum

Topic location: Forum home » Support » General Questions
Rob
Rob Feb 26 '15
(Apologies if this is the wrong forum, I don't know if it's possible now or if it needs a customisation).

I'd like to offer my users several types of account if they sign up. They choose one from a list with radio buttons.

For one type of account I'd like for them to not need to provide an email address (a limited permissions account). For the other accounts they do need to provide an email address.

Is this possible either in base Oxwall or in any extensions?
Taissa Team
Taissa Mar 2 '15
Rob, if I understand you correctly, in general, you are talking about two changes:

first - you need to display the account types as a list with radio buttons.
second - you want to make Email not required for some Account types.

Both  changes this is the custom code modification.
Concerning to making Email not required you will need to edit /ow_system_plugins/base/controllers/join.php file and remove the coding for email validation.
In addition you will need to edit "ow_base_question" table of your database and set the "Email" row to =0 under "Required" column.

As to the list with radio buttons you need to edit /ow_system_plugins/base/controllers/join.php file and it requires a much more complicated code modification.

If you are not familiar with the plugin development or code modification, it would be better for you to find a developer who can help you. You can do it here: http://www.oxwall.org/market/specialists
Rob
Rob Mar 2 '15
Thanks Taissa. I already use radio buttons as a question to assign account types as roles (they're manually edited, that part isn't automatic). It's just I want one of the options when registering to not require an email address. What you describe is definitely beyond me.
Taissa Team
Taissa Mar 3 '15
Rob, as I said, this is the custom code modification to make Email not required for one of the account types.
You need to edit join.php file and "ow_base_question" table of your database and so on.