Log in

View Full Version : Making email address optional on registration? vB 3.8.7


Max Taxable
12-19-2013, 04:31 PM
I have spent most of the morning searching to see if this has ever been done and come up Butkus.

I don't bother with email verification at all, (useless to stop spam and only annoys legitimate would-be members) and I want to also make the email address on registration a option rather than a requirement. So that, if someone chooses to leave the fields blank the registration still goes thru without a hitch.

Anyone have any ideas on this?

ozzy47
12-19-2013, 09:19 PM
In your register.php file find and remove:
line 292 OR empty($vbulletin->GPC['email'])

That just might do it. If not we will go further.

Zachery
12-19-2013, 09:24 PM
I don't think I'd go down that path, personally.

ozzy47
12-19-2013, 09:27 PM
Why is that?

Max Taxable
12-19-2013, 09:45 PM
I can see issues with it - what if a person forgets his password? I had planned to strongly word the option to let them know a valid email address is vital for password changes and remainders, and we don't spam you. Or some such.

Lots of my users get their alerts via email, for their subscribed threads. They would need to record a valid email address still, for this to work.

But really, there's no reason anymore to require email on registration. They can fill it out and validate it later, when they feel like it.

In your register.php file find and remove:
line 292 OR empty($vbulletin->GPC['email'])

That just might do it. If not we will go further.Would need "OR confirm" commented out as well, right? Line 293?

ozzy47
12-19-2013, 09:49 PM
Yes. :)

ForceHSS
12-19-2013, 10:34 PM
Not a good idea to remove this option

Max Taxable
12-19-2013, 11:44 PM
Not a good idea to remove this optionPlease elucidate.

ForceHSS
12-20-2013, 01:14 AM
Please elucidate.

Really you need to ask why think about it

Max Taxable
12-20-2013, 01:19 AM
Really you need to ask why think about itI need to ask YOUR opinion of why it's a bad idea. Since I haven't perfected mind reading as yet.

ForceHSS
12-20-2013, 01:34 AM
If you let members register without a email you will need to change more that one system so emails will no longer be sent out as vb uses the email system for many things not just sending out that first email when u register also any plugins that use the email system will also need to be coded am sure others can give u a full list

Max Taxable
12-20-2013, 01:40 AM
If you let members register without a email you will need to change more that one system so emails will no longer be sent out as vb uses the email system for many things not just sending out that first email when u register also any plugins that use the email system will also need to be coded am sure others can give u a full listNow I am glad I asked, see? Because I hadn't considered this aspect.