15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Registration Field Validation inquiry

Author Guest
#1 | Posted: 18 Oct 2009 09:30 
I'm fairly new to minibb would like a bit of help solving this problem.

I have customized the new user registration page so that a user would need to enter a valid reference number ( eg. like a driving license number). I need to validate this number from the database and the idea is that only users with a valid number will be able to register with my site.

Obviously before registering user details I need to do the validation part and wondering where exactly should i include this function?

any help will be greatly appreciated.


Author Paul
Lead Developer
#2 | Posted: 19 Oct 2009 04:42 
It depends on how have you customized the new user registration page.

If you've modified bb_func_regusr.php you are already broke the core file and that means you may break it further. Probably before the condition which says

if ($correct==0) {

you need to put your own piece of code which will perform kind of validation and then set $correct's variable value to any except 0, if validation do not pass. You may put your own warning message under $l_userErrors[XX] of the language pack where XX stays for the error num of $correct.

Also, you may put such validation code as a plugin under bb_plugins_user.php and it could work non-destructive way.

Specific miniBB Support Forums / Specific / Registration Field Validation inquiry Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB