Okay.. how is it possible for me to prevent my registered usergroup members from viewing this page? I don't mind them seeing the who's online list on the index page, but I would like to avoid them from accessing the complete list, as lately, I've been seeing a couple of topics at my forum where people are like : "Why are you viewing X's profile?"
Open online.php
Find
if($mybb->usergroup['canviewonline'] == "no")
Change into
if($mybb->usergroup['canviewonline'] == "no" || $mybb->user['usergroup'] == 2)
Oh cool.. thanks so very much
LeX- Wrote:Open online.php
Find
if($mybb->usergroup['canviewonline'] == "no")
Change into
if($mybb->usergroup['canviewonline'] == "no" || $mybb->user['usergroup'] == 2)
I want it to use for 2 Usergroups.
But
if($mybb->usergroup['canviewonline'] == "no" || $mybb->user['usergroup'] == 1)
if($mybb->usergroup['canviewonline'] == "no" || $mybb->user['usergroup'] == 2)
It doesn´t work
Please help me.
Sebastian
Use
if($mybb->usergroup['canviewonline'] == "no" || $mybb->user['usergroup'] == 1 || $mybb->user['usergroup'] == 2)
instead.
A better solution would be to just hide the location from non-staff. IOW, regular members can see the complete list of online users without knowing that X is viewing Y's profile, or that B is reading thread D.
hi,
i used the plugin and it works great for who's online.
Can it be modified to include the Who has been online today complete list as well.
cheers,
dave