WxP Member May 17, 2021 #1 How to block usergroup from latest Activity https://xenforo.com/community/whats-new/latest-activity
P Paul B XenForo moderator Staff member May 17, 2021 #2 Block them from viewing it, or block their content from appearing in it? Upvote 0 Downvote
P Paul B XenForo moderator Staff member May 17, 2021 #4 Edit the latest_activity template and wrap the content in a conditional statement: HTML: <xf:if is="!$xf.visitor.isMemberOf(x)"> Content </xf:if> Replace x with the user group ID. Upvote 1 Downvote
Edit the latest_activity template and wrap the content in a conditional statement: HTML: <xf:if is="!$xf.visitor.isMemberOf(x)"> Content </xf:if> Replace x with the user group ID.
WxP Member May 17, 2021 #5 This is for guest ! I have another usergroup and i don`t want to see that ! Upvote 0 Downvote
P Paul B XenForo moderator Staff member May 17, 2021 #6 You should clarify exactly what you mean when making requests of this nature. Use this to prevent guests seeing content: <xf:if is="!$xf.visitor.user_id"> Upvote 0 Downvote
You should clarify exactly what you mean when making requests of this nature. Use this to prevent guests seeing content: <xf:if is="!$xf.visitor.user_id">
WxP Member May 17, 2021 #7 Sorry, i have created an user group permission (part of guest) and this user group need to be limited on latest activity, exactly not allowed to view latest_activity But i just see reply x Thank you Upvote 0 Downvote
Sorry, i have created an user group permission (part of guest) and this user group need to be limited on latest activity, exactly not allowed to view latest_activity But i just see reply x Thank you
WxP Member May 17, 2021 #8 Brogan said: Edit the latest_activity template and wrap the content in a conditional statement: HTML: <xf:if is="!$xf.visitor.isMemberOf(x)"> Content </xf:if> Replace x with the user group ID. Click to expand... i try this but it don`t have effect can you please give me exactly where do i put i have trying tthis: <xf:title>{{ phrase('latest_activity') }}</xf:title> <xf:wrap template="whats_new_wrapper"> <xf:set var="$pageSelected" value="latest_activity" /> </xf:wrap> <div class="block"> <div class="block-container"> <xf:if is="$xf.visitor.canViewProfilePosts()"> <ul class="block-body js-newsFeedTarget"> <xf:foreach loop="$newsFeedItems" value="$item"> <xf:macro template="news_feed_macros" name="feed_row" arg-item="{$item}" /> </xf:foreach> </ul> <div class="block-footer js-newsFeedLoadMore"> <span class="block-footer-controls"><xf:button href="{{ link('whats-new/latest-activity', null, {'before_id': $oldestItemId}) }}" rel="nofollow" data-xf-click="inserter" data-append=".js-newsFeedTarget" data-replace=".js-newsFeedLoadMore"> {{ phrase('show_older_items') }} </xf:button></span> </div> <xf:if is="!$xf.visitor.isMemberOf(14)"> Content </xf:if> <xf:elseif is="$beforeId" /> <div class="block-body js-newsFeedTarget"> <div class="block-row block-row--separated">{{ phrase('there_no_more_items_to_show') }}</div> </div> <xf:else /> <div class="block-body js-newsFeedTarget"> <div class="block-row">{{ phrase('news_feed_is_currently_empty') }}</div> </div> </xf:if> </div> </div> Upvote 0 Downvote
Brogan said: Edit the latest_activity template and wrap the content in a conditional statement: HTML: <xf:if is="!$xf.visitor.isMemberOf(x)"> Content </xf:if> Replace x with the user group ID. Click to expand... i try this but it don`t have effect can you please give me exactly where do i put i have trying tthis: <xf:title>{{ phrase('latest_activity') }}</xf:title> <xf:wrap template="whats_new_wrapper"> <xf:set var="$pageSelected" value="latest_activity" /> </xf:wrap> <div class="block"> <div class="block-container"> <xf:if is="$xf.visitor.canViewProfilePosts()"> <ul class="block-body js-newsFeedTarget"> <xf:foreach loop="$newsFeedItems" value="$item"> <xf:macro template="news_feed_macros" name="feed_row" arg-item="{$item}" /> </xf:foreach> </ul> <div class="block-footer js-newsFeedLoadMore"> <span class="block-footer-controls"><xf:button href="{{ link('whats-new/latest-activity', null, {'before_id': $oldestItemId}) }}" rel="nofollow" data-xf-click="inserter" data-append=".js-newsFeedTarget" data-replace=".js-newsFeedLoadMore"> {{ phrase('show_older_items') }} </xf:button></span> </div> <xf:if is="!$xf.visitor.isMemberOf(14)"> Content </xf:if> <xf:elseif is="$beforeId" /> <div class="block-body js-newsFeedTarget"> <div class="block-row block-row--separated">{{ phrase('there_no_more_items_to_show') }}</div> </div> <xf:else /> <div class="block-body js-newsFeedTarget"> <div class="block-row">{{ phrase('news_feed_is_currently_empty') }}</div> </div> </xf:if> </div> </div>
P Paul B XenForo moderator Staff member May 18, 2021 #9 It's really not clear what you are trying to do. Are you trying to a prevent a specific user group from viewing latest activity, or guests? The two are mutually exclusive. Upvote 0 Downvote
It's really not clear what you are trying to do. Are you trying to a prevent a specific user group from viewing latest activity, or guests? The two are mutually exclusive.
P Paul B XenForo moderator Staff member May 18, 2021 #11 XF 2.2 - Block usergroup from latest activity How to block usergroup from latest Activity https://xenforo.com/community/whats-new/latest-activity xenforo.com Upvote 0 Downvote
XF 2.2 - Block usergroup from latest activity How to block usergroup from latest Activity https://xenforo.com/community/whats-new/latest-activity xenforo.com