The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I make "who is online" not visible to guests

View previous topic View next topic Go down

Solved How can I make "who is online" not visible to guests

Post by vicky on October 11th 2015, 4:51 pm

Good afternoon all
Please can someone tell me if it is possible to hide the "who is online" from guests.
I only want our members, moderators and admins to see who is online information

Many Thanks
Vicky


Last edited by vicky on October 16th 2015, 7:49 pm; edited 1 time in total

vicky
New Member

Female Posts : 6
Reputation : 0
Language : english
Location : Yorkshire

Back to top Go down

Solved Re: How can I make "who is online" not visible to guests

Post by Ange Tuteur on October 12th 2015, 1:55 pm

Hi @vicky,

Yes, it is indeed possible. Smile

Go to your Admin Panel, then Display > Templates > General and open the index_body template. Edit

Find :
Code:
<!-- BEGIN disable_viewonline -->

Replace by :
Code:
<!-- BEGIN disable_viewonline -->
<div id="hideOnline" style="display:none;">

Find :
Code:
<!-- END disable_viewonline -->

Replace by :
Code:
</div>
<script type="text/javascript">
(function() {
  var node = document.getElementById('hideOnline');
  if (node && _userdata.session_logged_in) node.style.display = 'block';
}());
</script>
<!-- END disable_viewonline -->

Save and publish. Add


Note that you'll need to be logged into the foundation account to make these modifications.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I make "who is online" not visible to guests

Post by vicky on October 16th 2015, 7:28 pm

Thank you Ange Tuteur, that worked perfectly Smile

vicky
New Member

Female Posts : 6
Reputation : 0
Language : english
Location : Yorkshire

Back to top Go down

Solved Re: How can I make "who is online" not visible to guests

Post by Ange Tuteur on October 16th 2015, 8:25 pm

You're welcome ^^

Topic archived

Have a good weekend. Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum