The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
memberinfo_block_friends conditional
Conditionals are my weakness. I tried this in the memberinfo_block_friends template, but it will not display the content even though in my profile I have Yes selected. Suggestions?
<if condition="$prepared['field80'] === 'Yes'"> |
#2
|
||||
|
||||
User $userinfo, not $prepared.
|
#3
|
|||
|
|||
Tried that before I tried prepared. I also tried bbuserinfo.
<if condition="$userinfo['field80'] === 'Yes'"> |
#4
|
||||
|
||||
Try printing it out without a conditional first just to see if you can get it to print.
What do you have Display Page set for it (in the edit profile field manager)? |
#5
|
|||
|
|||
Quote:
And yea it prints fine without the conditional. I'm just having it so members can disable a few things that they can't disable with the way VBulletin is currently set up. |
#6
|
||||
|
||||
Well, is Yes something they actually have to manually set or is it what you think the default is? And are you sure it is Yes and not yes?
|
#7
|
|||
|
|||
I used a drop down box for the selection and in the dropdown list I selected Yes. In the profile field I also have it set up as Yes.
|
#8
|
||||
|
||||
Look in the database and see exactly what is in that field for that particular user you are using the condition on.
Also, try doing the condition the opposite way and see if it works - ie. if NOT equal to Yes. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|