PDA

View Full Version : memberinfo_block_friends conditional


TheInsaneManiac
08-12-2009, 04:20 AM
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'">

Lynne
08-12-2009, 04:32 AM
User $userinfo, not $prepared.

TheInsaneManiac
08-12-2009, 04:44 AM
Tried that before I tried prepared. I also tried bbuserinfo.

<if condition="$userinfo['field80'] === 'Yes'">

Lynne
08-12-2009, 04:54 AM
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)?

TheInsaneManiac
08-12-2009, 06:45 AM
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)?
Other. So it shows up in the options.

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.

Lynne
08-12-2009, 02:23 PM
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?

TheInsaneManiac
08-14-2009, 01:13 AM
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.

Lynne
08-14-2009, 01:36 AM
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.