vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved Who's Online Display (https://vborg.vbsupport.ru/showthread.php?t=38576)

Boofo 01-17-2003 05:42 PM

Yeah, I found out about the missing $DB_site in global totally by accident when I suddenly got a fatal error one time. I had been using the hack with no problems for about 2 months then all of a sudden, I got the error. There were two of us that were in the 2 spots to trigger it only that one time. It had never happened up until then. :)

Herman 01-29-2003 05:38 AM

I had the same problem as that other guy.

File edit number 1:
The code needed was not found in the online.php file.
File edit number 2:
The code needed was not found in the online.php file.
File edit number 3:
The code needed was not found in the online.php file.
File edit number 4:
The code needed was not found in the online.php file.
File edit number 5:
The code needed was not found in the online.php file.
File edit number 6:
The code needed was not found in the online.php file.
File edit number 7:
The code needed was not found in the online.php file.

File edit number 8:
The code needed was not found in the online.php file.

File edit number 9:
The code needed was not found in the online.php file.

File edit number 10:
The code needed was not found in the online.php file.

File edit number 11:
The code needed was not found in the online.php file.

File edit number 12:
The code needed was not found in the online.php file.

File edit number 13:
The code needed was not found in the online.php file.

File edit number 14:
The code needed was not found in the online.php file.

cirisme 03-14-2003 10:55 PM

I love this hack. :)

Elentari 03-25-2003 02:24 PM

Works like a dream with Slynderdales fixes :D Thanks!!

FleaBag 03-31-2003 11:20 PM

I was getting the same problem with viewing a profile and then the online.php file. I'll apply the fixes right away - thanks!

Alien 05-04-2003 06:42 PM

This working with 2.3.0 (with fixes) now too?

-Jason

Intex 06-21-2003 04:37 PM

Installed and works without any problems. Thx for the hack.

/me clicks install.

kirupa 07-27-2003 11:40 AM

Thanks! This hack is really great. After incorporating all the fixes that members posted, the Who's Online feature works like a charm :)

desmondw 07-29-2003 04:49 PM

Does this work for 2.3.0 ? Looks to be an awesome hack!

Kriek 07-30-2003 03:59 AM

Flawless via 2.3.0

/me clicks install

Oblivion Knight 08-18-2003 12:55 PM

This doesn't appear to be working correctly with 2.3.2.. :(
Even after applying the fixes by Slynderdale; Viewing profiles, pm's and such returns "Viewing Profile of a Forum Member" instead of stating who's profile a person is viewing..

aquariumpros 09-30-2003 05:55 PM

Quote:

Originally Posted by Slynderdale
Some bug fixes:

find:
PHP Code:

function show($userinfo) {
  global 
$thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$displayemails$enablepms$bbtitle$usergroupdef$numberguests

If it doesnt have $DB_site in global then add it such as:
PHP Code:

function show($userinfo) {
  global 
$thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$displayemails$enablepms$bbtitle$usergroupdef$numberguests,$DB_site

then find:
PHP Code:

    case 'mail':
      
$user explode('userid='$userinfo[location]);      
        if (
intval($user[1])) {
          
$user $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($user[1])); 

and change it to:
PHP Code:

    case 'mail':
      
$user explode('userid='$userinfo[location]);      
        if (
intval($user[1])) {
          
$user $DB_site->query_first("SELECT username,userid FROM user WHERE userid = ".intval($user[1])); 

now find:
PHP Code:

    case 'getinfo':
      
$userid explode('userid='$userinfo[location]);     
        
$user $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1])); 

and change it to:
PHP Code:

    case 'getinfo':
      
$userid explode('userid='$userinfo[location]);     
        
$user $DB_site->query_first("SELECT username,userid FROM user WHERE userid = ".intval($userid[1])); 


Now every thing should work correctly.
Im also using vbulletin 2.2.9

Great hack...

Thanks to TWTCommish for this - and to Slynderdale for the version 2.2.9 fix!!

:)

walkingthepath 12-01-2003 02:40 PM

TWTCommish: Have you updated the original attachment with all the bug fixes, or do I need to DL the original, and modify to fix all the bugs?? THX...

NeveAddict 01-25-2004 09:14 PM

Working great with VB 2.3.2
Thnx!

*clicks install*


All times are GMT. The time now is 08:04 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.01573 seconds
  • Memory Usage 1,770KB
  • 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
  • (6)bbcode_php_printable
  • (1)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
  • (14)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