Theme editor

Welcome to XFMISFITS.COM

Join our community to access exclusive content, participate in discussions, and connect with like-minded individuals. We offer resources, products, and dedicated support to help you succeed.

Our recent members

XF 2.3 [AndyB] Remove current visitors 1.1

Twisted

Administrator
Staff member
Joined
May 9, 2025
Messages
109
Reaction score
0
Points
16
Thread owner
Description:

Removes Current visitors link from members page.

(Example of Current visitors link)

pic001.jpg




(Example of Current visitors in the Public navigation page)

pic002.jpg




(Example of User group permissions)

pic003.jpg




Setup:

Navigate to the following:

Admin control panel -> Setup -> Public navigation -> Current visitors

Add the following to the Display conditions field:

$xf.visitor.hasPermission('removeCurrentVisitors', 'bypass')

User group permissions:

If you would like to allow the Administrative user group to still be able to view the Current visitors page, then set the "Bypass" permission to Yes on the User group permissions for the Administrative user group.

Questions and answers:

Q: Will this add-on prevent direct URL access to the Current visitors page?
A: Yes.
 

Attachments

Back
Top