- XF Compatibility
- 2.3.x
- 2.2.x
- Summary
- This download removes the "Current Visitors" link from the members page, allowing users only those with specific permission settings to view it.
Remove current visitors removes the "Current Visitors" link from the members page, allowing users only those with specific permission settings to view it
(Example of Public navigation switch)
(Example of User group permissions)
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.
(Example of Public navigation switch)
(Example of User group permissions)
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.