The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
regex advise plz
i am not sure if i use the preg right can someone give me advise i cant use it like that in the profile fields
PHP Code:
thanks |
#2
|
||||
|
||||
You shouldn't use capital PHP code like IF, ELSE, END IF etc
You'd use something like: Code:
if (whatever condition you want here) { result if condition is true } else { result if the condition is not true } |
#3
|
|||
|
|||
Quote:
HTML Code:
if ("^\d{8,10}$", enteredText) { finalURL = "http:/domain.com/" + enteredText + "/" } else { value must be between 8 and 10 digits only } |
#4
|
||||
|
||||
Is your regex correct??
|
#5
|
|||
|
|||
|
#6
|
|||
|
|||
You can use:
PHP Code:
|
#7
|
|||
|
|||
Quote:
but i cant get it working PHP Code:
PHP Code:
|
#8
|
|||
|
|||
And what is not working and where do you place this?
|
#9
|
|||
|
|||
i placed it in a costumer profile field under "Regular Expression"
the regex is working but it dont transforms it in a link also the error message for wrong valve is not working |
#10
|
|||
|
|||
In a custom profile field you can only place an expression that results in true (1) or false (0). You can not perform actions like showing a text.
See the admin help for this field by clicking on the question mark at the right of the field. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|