PDA

View Full Version : Disable "Last Activity"?


BillAlpha
06-06-2004, 11:04 AM
Hi

I was wondering if it is possible to disable the "last activity" information in the public profile for specific userids or usergroups?

For example, hide the information showing...

Last Activity: 06-06-04 12:10pm
Viewing Thread xxxxx @ 12:10pm

...from just ONE group so that all other groups can still see that information?

Cheers for any help ;)

Xenon
06-06-2004, 11:46 AM
iirc, the can see detailed infos on whos' onle in the usergroup permissions does that :)

BillAlpha
06-06-2004, 12:08 PM
Thanks Xenon!

I see that now - the "viewing thread" is gone and all that is shown now is the "last activity" line. Any way to disable that too?!! :confused:

Bill ;)

Xenon
06-06-2004, 12:34 PM
hmm, not such an easy way.

that special thing has to be hacked i think

in members.php

find// LAST ACTIVITY AND LAST VISIT
if (!$userinfo['invisible'] OR ($permissions['genericpermissions'] & CANSEEHIDDEN) OR $userinfo['userid'] == $bbuserinfo['userid'])
{
$show['lastactivity'] = true;
$userinfo['lastactivitydate'] = vbdate($vboptions['dateformat'], $userinfo['lastactivity'], true);
$userinfo['lastactivitytime'] = vbdate($vboptions['timeformat'], $userinfo['lastactivity'], true);
}
else
{
$show['lastactivity'] = false;
$userinfo['lastactivitydate'] = '';
$userinfo['lastactivitytime'] = '';
}

and change it into
// LAST ACTIVITY AND LAST VISIT
if (!in_array($bbuserinfo['usergroupid'], array(xx,yy,zz)) AND (!$userinfo['invisible'] OR ($permissions['genericpermissions'] & CANSEEHIDDEN) OR $userinfo['userid'] == $bbuserinfo['userid']))
{
$show['lastactivity'] = true;
$userinfo['lastactivitydate'] = vbdate($vboptions['dateformat'], $userinfo['lastactivity'], true);
$userinfo['lastactivitytime'] = vbdate($vboptions['timeformat'], $userinfo['lastactivity'], true);
}
else
{
$show['lastactivity'] = false;
$userinfo['lastactivitydate'] = '';
$userinfo['lastactivitytime'] = '';
}

where the xx, yy,zz are the usergroupids of those who shouldn't be able to view that ;)

BillAlpha
06-06-2004, 01:21 PM
Excellent - it works a treat!

Thanks for the help - it's appreciated :)

Xenon
06-06-2004, 02:31 PM
:)
you're welcome :)