View Full Version : vQregister
torgeir
11-19-2004, 10:10 AM
Hi
I want to let users create their own e-mail adresses. But only 2 extra.
I was wondering if anyone know of a way to get vQregister to check for this?
Or perhaps there's another util that will do this for me?
Thanks in advance
v3kt0r
02-10-2005, 02:33 PM
Right now I've done a quick and dirty php/mysql database check. I've only allowed vqregister functions for people who have registered for my website, that way I can control who has email account and who doesnt.
So some basic php/myql psuedo code for you to give you an idea
login user
login successfull
yes-->allow all functions and go to step 3 else go to step 2
2 --> no login was successfull show an error message and prompt again
step 3
show email login / register page
if user is trying to register do a check against the database to see if we have a flag set for email already set to true. If the users flag is already set to true show a message information the message that they already have an email account and can't register for another one.
if not registered already allow the user to register. Upon successful registration modify the user database to set the registered flag to true and show the success message to the user.
exit.
Also this is pretty useful for allowing or controlling additional functions like multiple email addresses for some users and not others (if you run a pay service or something). It takes a little big of work when you are modifying all of the vqRegister files to not work unless the user is logged in in php. But with a little knowledge of sessions and headers you can get this all done in about 2 hours max.
V3ktor
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.