The code below is used to show on various pages.
<!-- IF SCRIPT_NAME eq 'index' or 'viewforum' or 'viewtopic' -->
Is it possible to hide content from various groups with the same logic?
For example from Managers, Moderators or VIP members.
The official Advertisement extension can do this, for example. But I don't know with what codes.
or
But, for example, I want it to be hidden from the VIP group I created.3Di wrote: ↑Sun Apr 18, 2021 2:31 am Example, this should show your stuff only to guests. (Not tested).
Code: Select all
{% if SCRIPT_NAME in ['index', 'viewforum', 'viewtopic'] and not S_USER_LOGGED_IN %} do your stuff here {% endif %}