The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile Field Text Verification
I've searched/found/read quite a few threads on how to add custom profile fields but I can't find anywhere that explains how to "screen" what is entered.
For example, I added a profile field "Zip Code". How would I force a numeric entry of 5 digits? I get people entering a couple letters to get past the requirement instead of updating it properly. Thanks! --Phillip |
#2
|
|||
|
|||
You can add a REGEX to verify the contents.
|
#3
|
|||
|
|||
Regex?
|
#4
|
|||
|
|||
See 'Regular Expression' when editing the User Profile Field. See the help and the link to PCRE.
|
#5
|
|||
|
|||
Ahhh, Yes, I saw that field/option when updating the profile fields, but the PCRE link made NO sense.
The field for RegEx is only 1 line, and fairly short in length. The PCRE help link only shows email validation examples, and they take several lines of code to make work. --------------- Added [DATE]1193844115[/DATE] at [TIME]1193844115[/TIME] --------------- Upon further reading, can I just enter this into the field? /^[0-9][0-9][0-9][0-9][0-9]$/ --------------- Added [DATE]1193844115[/DATE] at [TIME]1193844115[/TIME] --------------- Ok, that didn't work, so I just used: [0-9][0-9][0-9][0-9][0-9] And it worked. Thanks! Now how would I allow unlimited chars A-z, but exclude 0-9 and all special chars? LOL, My head hurts. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|