XF 1.5 Deactivate Sidebar Elements for not logged in Users


Active member

I like to post some advertisment banners on the sidebar for not logged in users (guests). Is it possible to deactivate sidebar elements for certain usergroups? For example the display of recent posts etc? It would leave more free space for banners.

Any idea? Thank you in advance!

Kind regards,
You can use conditional statements in the template - https://xenforo.com/community/resources/conditional-statements.1604/

2. How can I show content just to guests and hide it from logged in members?
<xen:if is="!{$visitor.user_id}">
This content will show to guests


Or you can use the BD Widget Framework add-on, create the widget to place your ad and use the expression code from the description below the expression field from the widget you're creating to have it do it for you (it's basically the easiest way to display content to guests alone in the sidebar without messing with templates).
Top Bottom