View Full Version : Custom profilefield if:condition possible?
dszuecs
06-05-2013, 01:35 PM
Hi there
I'd like to do a <vb:if condition> with a custom profilefield.
Here's an example:
- I have a custom profile field [field10]
- The value is either 'boy' or 'girl'
Is it possible to perform an <vb:if condition> for all users that have 'boy' in [field10]?
Thanks & cheers
Dennis
Which template do you want to put that in? If you want to use it in a postbit template to check the post author, you should be able to use condition="$post[field10] == 'boy'" or something like that. You can use $bbuserinfo['field10'] in other templates, but that will check the "current" user (i.e. whoever you're logged in as).
dszuecs
06-06-2013, 07:32 AM
Which template do you want to put that in? If you want to use it in a postbit template to check the post author, you should be able to use condition="$post[field10] == 'boy'" or something like that. You can use $bbuserinfo['field10'] in other templates, but that will check the "current" user (i.e. whoever you're logged in as).
Works like a charm, thank you very much!!
I use it in Postbit, and this would be the if condition:
<vb:if condition="$post[field10] == 'boy'">
Btw, is there a list available for all available vbulletin 4 conditions?
Thanks again!
Dennis
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.