vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disable "Last Activity"? (https://vborg.vbsupport.ru/showthread.php?t=65898)

BillAlpha 06-06-2004 11:04 AM

Disable "Last Activity"?
 
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
PHP Code:

// 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
PHP Code:

// 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 :)


All times are GMT. The time now is 12:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01293 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete