![]() |
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?
|
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. |
I appreciate the response. I'll start looking there :)
|
All times are GMT. The time now is 01: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:
|