The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
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. |
#22
|
||||
|
||||
Quote:
Code:
<if condition="$var[fieldX]">do stuff</if> $var would be $post or $bbuserinfo or whatever. |
#23
|
||||
|
||||
Quote:
and yes that is the conditional HTML Code:
<if condition="$bbuserinfo[fieldX]">Some code here </if> |
#24
|
|||
|
|||
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?
|
#25
|
|||
|
|||
Quote:
|
#26
|
|||
|
|||
Yep, gotta love the search, GREAT thread!
|
#27
|
|||
|
|||
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? |
#28
|
|||
|
|||
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 |
#29
|
|||
|
|||
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. |
#30
|
|||
|
|||
This thread is great. Can somone provide a list for the $post array?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|