XF 2.2 Widget conditional for user custom field

Sperber

Well-known member
@Brogan , for 1.5. you had introduced in an article how to utilize user custom fields, so users have a bit more control regarding the layout - so I guess this one´s for you again. Using the XFMG widget on the forums index page, we´ld like to give users the choice to hide that block. Going by your guide I´d created the CUF "mediablock" and set the widget conditional
Code:
!$xf.visitor.profile.custom_fields.mediablock
Unfortunaly, this doesn´t seem to work and regardless of the setting of that CUF the widget is still being displayed. Can you tell me, what I am doing wrong here?
 
Solution
The var is wrong - it should be: !$xf.visitor.Profile.custom_fields.mediablock -- capital P.

The var is wrong - it should be: !$xf.visitor.Profile.custom_fields.mediablock -- capital P.

 
Solution
Top Bottom