MyBB Community Forums
[Resolved] Online Guests - Printable Version

+- MyBB Community Forums (
+-- Forum: 1.8 Support (
+--- Forum: General Support (
+--- Thread: [Resolved] Online Guests (/thread-161764.html)

[Resolved] Online Guests - Michael2014 - 2014-10-24

Hey guys, how can I remove guests from the "Who's Online lists.  /online.php
as in, keep guests from appearing in the who's online list

what is happening is, because I've added avatars to "Who's online"

the guests don't have avatars, so they end up with a blank square
and an error image like so
[Image: Untitled.png]

I sincerely appreciate any kind of direction on this matter.

Thanks so much!

p.s. after searching google, and the forums, nothing seemed to help so any help would be awesome.

update:there is a bigger issue here, the code I added to online.php
$todayrows = '';
 while($online = $db->fetch_array($query))
 $invisiblemark = '';
 if($online['invisible'] == 1)
 $invisiblemark = "*";

 if($online['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid'])
 $user['profilepath'] = $mybb->settings['bburl'] . '/' . get_profile_link($user['uid']);
                        $user['avatar'] = $mybb->settings['bburl'] . '/images/default_avatar.png';
                    eval("\$onlinemembers .= \"".$templates->get("online_row", 1, 0)."\";");
                    $comma = $lang->comma;


is not affecting the default avatars I use for the site. Hm.
Update #2: Reloved. This was a heavy modification, but the answer was simple:
I can't explain it all, I will just post a link to the answer:

Even better yet, I got to keep the guests online and control their avi in all aspects!

God Bless America!