miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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.

thanks

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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑