The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Minimum Length for Custom Profile Fields
I'd like to require a minimum length (say 2 or 3 chars) for some custom user profile fields. Can anyone point me to a good place to start?
|
#2
|
|||
|
|||
I think the code for that is in profile.php, and it looks like there's a "profile_start" hook that you could use for a plugin to check the values. Of course you'd have to figure out what variables to check to determine if a specific field is being updated, and figure out what to do if the value is below minimum length. One thing that confused me when I first looked at that code is remembering that $_REQUEST['do'] and $_POST['do'] are two different variables.
Hope this helps. Maybe someone will know more about this and will post a reply. |
#3
|
|||
|
|||
I appreciate the response. I'll start looking there
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|