PDA

View Full Version : problem with userfield


squishi
04-22-2009, 12:36 PM
I have added a new userfield.
It has two options, "option-1" and "option-2".
Option-1 is the default.

I have added this code to several places of my forum:
<if condition="$userinfo['field64']=='option-2'">
...
</if>

I thought it worked great, until I tried to switch the userfield in the UserCP to option-1 again.
The parts of the forum are not showing, which means, userfield 64 is always "option-2".

I don't understand what's going on. Is this a problem with the template cache?

--------------- Added 1240426589 at 1240426589 ---------------

I tried it with bbuserinfo, but could not get it to work, either.

--------------- Added 1240427457 at 1240427457 ---------------

I try to use this in several templates, for example: header, navbar, forumhome.

Dismounted
04-23-2009, 05:31 AM
Place this somewhere (it will display the output of the variable):
$bbuserinfo[field64]

squishi
04-23-2009, 07:47 AM
Yes, I did that. And I am stupid, too, as I should have used != instead of ==.
It's working now as intended.