PDA

View Full Version : [Not a bug] Invisible user is shown as offline to an Admin in a Thread



Mystics
Sat 20th Jul '02, 11:58pm
Hi,

as you all know, an invisible, currently online user is shown as offline to all people, except to Administrators, they can see him always as online.

But this doesn't work within a thread; the icon nearby the "profile" Button shows the user as offline.

I have done this changes in admin/functions.php to fix it:

Replaced
if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) {with
if ($post['lastactivity'] > $datecut and (!$post['invisible'] OR $bbuserinfo['usergroupid'] == 6) and $post['lastvisit'] != $post['lastactivity']) {Mystics

Mystics
Fri 26th Jul '02, 8:07pm
Similar Bug in private2.php -> choosebuddies
if ($user[sessionuserid]!=0 && $user[lastactivity]>$datecut && !$user[invisible]) {Mystics

Scott MacVicar
Fri 26th Jul '02, 8:11pm
I posted this a while back but I was told it was intended, Ill find the thread now.

http://www.vbulletin.com/forum/showthread.php?s=&threadid=45009&highlight=invisible

Mystics
Fri 26th Jul '02, 8:14pm
Ah, ok, thx :)