The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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). |
#3
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|