Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 11 Months, 3 Weeks ago [Resolved] Online Guests
#1
Solved: 4 Years, 11 Months, 3 Weeks ago
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']);
                    if(!$user['avatar'])
                    {
                        $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.
<hr>
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:
http://community.mybb.com/thread-130381.html

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

God Bless America!

Resolve
Hey man, what's up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)