Remove current visitors

XF2 Addons Remove current visitors 1.1
Removes Current visitors link from members page.

Compatible versions
2.0, 2.1, 2.2, 2.3
Description:
Removes Current visitors link from members page.

(Example of Current visitors link)
pic001.jpg


(Example of Public navigation switch)
pic002.webp


(Example of User group permissions)
pic003.webp


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.
  • Like
Reactions: akox
shanruto
Author shanruto
Level
10
5,175 pts
1.1 Version
0 Downloads
593 Views
Published
Updated
0.00 star(s) 0 ratings Average Rating (0)
No Tags

More files from shanruto

Top Bottom