vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   The who's online... (https://vborg.vbsupport.ru/showthread.php?t=31938)

Wifey 05-08-2004 08:29 PM

You up for that Ryan? Anyone up for fixing it accordingly?

Ben` 05-08-2004 08:48 PM

ill give it a go at fixing it

Ryan Ashbrook 05-08-2004 09:10 PM

Quote:

Originally Posted by ashkarita
You up for that Ryan? Anyone up for fixing it accordingly?

I know how to do it, it's just where to put the code.

Wifey 05-09-2004 08:38 PM

Great Ben`! I look forward to seeing what you have! Same goes for you Ryan :) I'm excited for whoever can fix it!

Merjawy 08-22-2004 10:28 PM

Quote:

Originally Posted by Ryan Ashbrook
I know how to do it, it's just where to put the code.


can you post the code and let me try to figure out where to insert it?

anyone else got anything going yet? I miss that hack

Rich 01-08-2005 09:51 PM

1 Attachment(s)
Hello,

I have this working on my site, and I am running 3.0.5. This is how I did it.

In INCLUDES / function_online.php find:

PHP Code:

default:
        
$userinfo['activity'] = 'unknown'

Below that add:


PHP Code:


}
if (
$userinfo[userid]==1) {
$userinfo[activity] = 'Admin';


(Change the userid to match your userid. Default is 1)

In the same file, now find:

PHP Code:

        case 'bugs':
            
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
            
break; 

Below that add:

PHP Code:

            case 'Admin':
              
$userinfo[where] = "Just monitoring HC, $bbuserinfo[username]!";
                   break; 

You can change "Just monitoring HC to whatever you like. The $bbuserinfo[username] inserts the name of which ever member is viewing it.

Save the edits and upload.

This is a screenshot of how it appears on my site.


All times are GMT. The time now is 02:43 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.02156 seconds
  • Memory Usage 1,733KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete