The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Do I Validate Input Data, In Custome Fields
Hi there,
I'm trying to add some custom fields the profile fields & I want to validate it's inputs, so for instance, let's say I want to add a mobile phone number field, & I want to ensure that the one who submit the mobile number can't insert any data type except numbers any idea?? |
#2
|
||||
|
||||
You can use regex to validate the input.
|
#3
|
|||
|
|||
This is exactly what I'm looking for, I don't know how to use the regular expression function within an integrated script,
where to use it?? where should I write my validation code?? in template?? or I should in vbulletin files?? or in some hooks places vbulletin provided them??? |
#4
|
||||
|
||||
There is a place to add it in the profile field setup.
|
#5
|
|||
|
|||
Are you serious, I can put any validation pattern in the custom field setup??? How?
|
#6
|
||||
|
||||
Regular Expression (under Show on Member's List).
--------------- Added [DATE]1281918683[/DATE] at [TIME]1281918683[/TIME] --------------- Try this for the regex: Quote:
It will have to look like this to pass: Quote:
|
#7
|
|||
|
|||
I thought you're fooling around with me, because I was writing to you via my mobile phone, but when I get home back I checked my admincp & I found the pattern input field
Thanks a lot |
#8
|
||||
|
||||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|