The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get a custom profile field to show up in postbit
I have a custom profile field that is a yes/no option. What conditional would I use in the postbit/postbitlegacy so that if the option is yes the profile field shows up and if no it doesn't?
Thanks, Parker |
#2
|
|||
|
|||
Code:
<if condition="$post[fieldX]=='Yes'">Stuff you want to show</if> Code:
<if condition="$post[fieldX]=='Yes'">Stuff for yes<else />stuff for no</if> |
#3
|
|||
|
|||
Thanks.
I should have been more clear sorry. What I am wanting to do is if a member doesn't want to see any other member's extra profile field in the post bit how would I go about doing that? Let's say you have a field where a member can put in their zip code in custom profile field. Several members don't want to see that displayed in their posts how do you allow them to turn this off? |
#4
|
|||
|
|||
ok so you need two profile fields.
Lets imagine that they are set like this field5 = Zip Code field6 = show zip code (Yes No options) what you would need to use is this. Code:
<if condition="$post[field6]=='Yes'"><div class="smallfont">Zip Code: $post[field5]</div></if> look for something like Code:
<div> $vbphrase[posts]: $post[posts] </div> Also, this is assuming that the option to show/hide is radio buttons and the text are Yes and No. |
#5
|
|||
|
|||
Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|