Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jun 2013, 14:35
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Question Custom profilefield if:condition possible?

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
Reply With Quote
  #2  
Old 05 Jun 2013, 16:31
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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).
Reply With Quote
  #3  
Old 06 Jun 2013, 08:32
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Originally Posted by kh99 View Post
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
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom profile field as textarea / show single profilefield via button Harvey vBulletin 2.x Full Releases 21 18 Dec 2002 16:17



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:21.

Layout Options | Width: Wide Color: