![]() |
Setting custom userfields
I am in the process of creating an additional registration step to my forum.
I want to set custom userfields in the register_start hook. Here is what I have: PHP Code:
My problem is that vb checks for required fields. I've tried using the set_userfields method with 'admin', 'normal' or 'register', but the result is the same. So how do I set custom fields with regex verification (for security) but without checking if fields are required? |
So I'm assuming that the problem is that you only want the regex errors in the error array? Maybe something like:
PHP Code:
(BTW I haven't tried this at all, even to check for typos). |
I did not know about the possibility of a callback.
Just a minute ago, I found the solution to my problem and came here to report back. I found it in profile.php. PHP Code:
That way, I do not run into missing username etc. errors. |
All times are GMT. The time now is 09:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|