XF 2.1 How to see what threads Guests are viewing

slothly

Member
On the current visitors page on my forum, I can only see
Guest • Viewing thread • 1 minute ago

But on here, you can see what thread or exact activity they're doing:

I know it's a setting / permission somewhere in the Admin CP but I can't find it. Would anyone be kind enough to help me?
 
I don't know where it's set in AdminCP but I have a custom HTML widget that will do this and restrict it only to admins.

Code:
Widget key: visitors_online
Title: Currently Online (Admin Only)
Display in positions: Forum list: Below nodes (10)
Template:
<xf:if is="$xf.visitor.is_admin">
<b><a href="{your forum URL}/online/">Online Details</a></b>
</xf:if>
 
Actually, looking at that again, I realized the widget will show to everyone even though the link won't work except for admins.

That's undesirable for several reasons so use this instead:

Code:
Widget key: visitors_online
Title: Currently Online (Admin Only)
Display in positions: Forum list: Below nodes (10)
Display condition: $xf.visitor.is_admin
Template:
<xf:if is="$xf.visitor.is_admin">
<b><a href="{your forum URL}/online/">Online Details</a></b>
</xf:if>

Now the conditional in the Template is probably redundant so you could even use:

Code:
Widget key: visitors_online
Title: Currently Online (Admin Only)
Display in positions: Forum list: Below nodes (10)
Display condition: $xf.visitor.is_admin
Template:
<b><a href="{your forum URL}/online/">Online Details</a></b>
 
Back
Top Bottom