The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
This is not about a user hiding info on their own profile. It's about a user going to someone else's profile and choosing to not see certain information.
|
#12
|
|||
|
|||
Boy did I miss read that one! I need a nap!
|
#13
|
|||
|
|||
Ok this is what I put
<if condition="$bbuserinfo[field18] === 'Yes'"><div>Gender Status Icon</div></if> should I put a comma between Gender and status Icon? or did I do that bit wrong? |
#14
|
||||
|
||||
Where did you put that code? And, you need to put the actual *code* from the templates between the conditon.
|
#15
|
|||
|
|||
I put it in my postbit...
So you mean like the field number? |
#16
|
||||
|
||||
Here is an example from my site. I have field 6 which asks users whether they wish to see post count or not:
HTML Code:
<if condition="$bbuserinfo[field6] === 'Yes'"><div>$vbphrase[posts]: $post[posts]</div></if> |
#17
|
|||
|
|||
hmm it is still not working for me..
Field18 asks if members want to show postbit icons like "Gender, and status" <if condition="$bbuserinfo[field18] === 'no'"><div>$vbphrase[gender]: $gender[gender]</div></if> I only have it for gender right now, but I set mine to no, and I still see them. |
#18
|
||||
|
||||
Well, your logic says "if it's set to no, show it" which is the opposite of what you want. You want, "if it's set to yes, then show it".
|
#19
|
|||
|
|||
Ok so I changed it to
<if condition="$bbuserinfo[field18] === 'yes'"><div>$vbphrase[gender]: $gender[gender]</div></if> but its still not working on my end, and I did switch my answer to yes on my end. |
#20
|
||||
|
||||
Well, if you switched your answer to yes, then it is going to show according to that condition.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|