XF 2.1 Display condition in Widget?

vFranky

Active member
Hello,

what is the correct code in the "display condition" of a widget to show it only to guests?
I tried {$xf.visitor.user_id"} but it doesn't work.

Kind regards,
Frank
 
I used this conditional code in the widget forum_overview_new_posts and the widget disappears for registered users and guest. As an admin I can see the list of the ne posts in the sidebar.
 
Back
Top Bottom