The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional to check for http:// in custom profile fields.
I've set up a series of user profile fields where the members can enter a URL in each one.
The problem is, if they don't include http://, then the link obviously will be broken, it would end up rendering to www.myforum.com/www.google.com or www.myforum.com/google.com etc, you know what I mean. So I need a way to check each user profile field for if it contains http:// or not, and add it if it doesn't. Can't find a vb:if CONTAINS conditional anywhere or any similar information. Something along the lines of, Code:
<vb:if condition="$bbuserinfo['field12'] CONTAINS http:// OR https://;"> <a href="{vb:raw bbuserinfo.field12}">{vb:raw bbuserinfo.field15}</a> <vb:else /> <a href="http://{vb:raw bbuserinfo.field12}">{vb:raw bbuserinfo.field15}</a> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|