• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Hide Online users to Guests.

MichaelDance

Well-known member
#1
MichaelDance submitted a new resource:

Hide Online users to Guests. (version 1.0) - Members only can see online users.

I'm not sure if there's a post about this I do however know Brogan made a Hide Members Lists to guests but mine is for the users online.

If you're like me and want to stop guests seeing who is viewing what on your forum you can use this simple code.

Go to templates:
Appearance > Styles > Default > StyleTemplates > online_list

Replace all the code in template with:
Code:
<xen:if is="{$visitor.user_id}">
<xen:title>{xen:phrase current_visitors}</xen:title>
<xen:description>{xen:phrase...
Read more about this resource...
 

Rudy

Well-known member
#2
Well this certainly works peachy! :D I did it as a template modification vs. doing it straight into the template. Works fine with XF 1.2.

Question though--I'd rather disable the entire Members tab (which includes all the top posters, staff, etc). I could disable the tab as it appears but that would not disable the URLs directly to the lists, which would still work in that case. I'm not sure what would work, short of applying the same code to multiple templates to disable them.