![]() |
How about this...
I have a profile field with a dropdown list where a member chooses the state they live in. I want a conditional that says 'if user selected choice #__ in profile field #__.' Thanks. |
Quote:
Code:
<if condition="$var[fieldX]">do stuff</if> $var would be $post or $bbuserinfo or whatever. |
Quote:
and yes that is the conditional HTML Code:
<if condition="$bbuserinfo[fieldX]">Some code here </if> |
I made it so the users must select a choice upon registration. Lets say they chose '7' and the field's ID is '15'... what would be the code to display something for a user with that selected?
|
Quote:
|
Yep, gotta love the search, GREAT thread!
|
Sorry to bump this but:
I want to show code in a certain thread. So I use the threadID How do I define the conditional for a threadid? |
Quote:
SO if say YOU are looking at my page you can see visually my field 20. So I am asking how to pull up.... say... my userid... not yours... (as in bbuser) and find field 20 |
Might be a little late for a reaction but still; I'm wondering if there's also a $post variable available that contains the name of the usergroup as person is in. In fact it would be similar to the "Group:" you got with IPB, I just don't feel like putting up 10 conditionals for every usergroup I've got...
I want to be able to let people edit their usertitle without having trouble with users acting like they're a staffmember. |
This thread is great. Can somone provide a list for the $post array?
|
All times are GMT. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|