vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hide Admin/Mod Whos Online Location (https://vborg.vbsupport.ru/showthread.php?t=29991)

Diva 10-10-2001 04:42 AM

Hi. Is there a way to hide the location of admin and mods in the whos online details box without making them invisible on the board? I want members to see that we're there and available... but I don't want our every move shown as to make anyone uncomfortable.

Maybe defaulting them to main page or unknown location.

Admin 10-10-2001 05:52 AM

In online.php, replace this:
PHP Code:

$userinfo[$key][location] = $user[location]; 

with this:
PHP Code:

        if ($user[usergroupid]==or $user[usergroupid]==or $user[usergroupid]==7)
          
$userinfo[$key][location] = '';
        else
          
$userinfo[$key][location] = $user[location]; 

and replace this:
Code:

$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm
with this:
Code:

$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm, user.usergroupid
(yup, stupid php tag)

Diva 10-10-2001 08:35 AM

Hi... The second part of the code is a little different than what's on the online.php. I tried it anyway and got a database error...

The last part of the before and after replacement is different:

[&n]

[&nbs]

These are not at the end of the string of either original string.

Admin 10-10-2001 08:37 AM

Guess the PHP tag screwed it a bit... :/

Code:

$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm
should be:
Code:

$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm,user.usergroupid

Diva 02-16-2003 08:46 PM

Hi. Is there a way that I can get this hack so that it only hides the admin online? Thanks bunches.

Bane 02-17-2003 07:54 PM

change

PHP Code:

if ($user[usergroupid]==or $user[usergroupid]==or $user[usergroupid]==7

          
$userinfo[$key][location] = '';

        else

          
$userinfo[$key][location] = $user[location]; 

to:
PHP Code:

if ($user[usergroupid]==6) {

          
$userinfo[$key][location] = '';

        } else {

          
$userinfo[$key][location] = $user[location]; } 



All times are GMT. The time now is 09:26 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.01020 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_printable
  • (4)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