Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Improved Who's Online Display Details »»
Improved Who's Online Display
Version: 1.00, by TWTCommish TWTCommish is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-12-2002 Last Update: Never Installs: 75
 
No support by the author.

This hack is pretty straightforward: it provides more detail on the Who's Online? page. Here are some examples:
  • Things like "Editing Buddy List" or "Editing Forum Options" are not accompanied by links. "Buddy List" links to the page to edit your own Buddy List, and so on with "Forum Options, "Ignore List," and a few others similar to that.
  • Instead of "Sending Email to Another Forum User" or "Viewing the Profile of a Forum Member," you'll be told which user it is in both cases, and their username will be a link to their profile.
  • Most significantly, IMO: no more vague "Sending Private Message" or "Reading Private Message" messages. Now you have the following:
    -- Reading a Private Message
    -- Reading a Private Message From You
    -- Replying to a Private Message
    -- Replying to Your Private Message
    -- Sending a Private Message
    -- Sending a Private Message to You

    As you can see, this is much more useful, yet it still protects the basic privacy of each member. Cool, eh?
  • "Viewing the Results of a Poll" now links you to the results of that poll, and the word "Post" in "Editing Post" is a link to the post being edited.
  • The word "Attachment in "Viewing Attachmet in Thread Blah Blah Blah" is now a link to the specific attachment being viewed.
That's it, basically. I'm using it on my site: http://www.movieforums.net/online.php

It is *HIGHLY* recommended that you use vBHacker to install this hack, as it involves 14 code edits in one file (online.php)...automating that can save you a lot of time. Attached is an archive containing a vBHacker installation file, as well as a plain text instruction file. Enjoy.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 09-06-2002, 10:25 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got it working on 2.2.7 for the most part. The only problem is whenever it shows "Viewing Profile of xxx", it doesn't properly link to the user's profile. It just links to /forum/member.php?s=&action=getinfo&userid=. Anyone else having this problem or know how to fix it?
Reply With Quote
  #73  
Old 09-20-2002, 06:36 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works OK now ... (Click Install)

Change the $user variable to this dude....
Code:
$user   = $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1]));
That was my problem too, but it works now!
Reply With Quote
  #74  
Old 09-24-2002, 03:51 AM
Learner29's Avatar
Learner29 Learner29 is offline
 
Join Date: Nov 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks interesting.....
Reply With Quote
  #75  
Old 10-17-2002, 01:12 PM
Kohhal's Avatar
Kohhal Kohhal is offline
 
Join Date: Feb 2002
Location: Dublin, Ireland
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack Chris, exactly what I was looking for

I have one related problem maybe you can help me with, as detailed in this thread.

Thanks,

G!
Reply With Quote
  #76  
Old 10-29-2002, 07:21 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 2.2.8 in about 4 seconds!
Reply With Quote
  #77  
Old 10-29-2002, 08:17 PM
GunsNetwork GunsNetwork is offline
 
Join Date: Jul 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris I get this message after redoing my online.php file.

Parse error: parse error, unexpected T_CASE in C:\Web\WebSites\GunsNet\Forums\online.php on line 135

I will send you my online php file

BowHunt
Reply With Quote
  #78  
Old 01-14-2003, 04:01 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone else noticed that upgrading to 2.2.9 breaks the Who's Online for Viewing (this members) Profile ?

EDIT: // as in it was working fine afaik before the upgrade but now I seem to have the following error whenever I try to view a Profile and then look @ Who's Online ...

Code:
Fatal error: Call to a member function on a non-object in /my/home/directory/forums/online.php on line 122
Line 122 is from this hack and comprises
PHP Code:
    case 'getinfo':
      
$userid explode('userid='$userinfo[location]);
/*122 */      $user   $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1]));
      
        if (
$user[username] && $user[userid]) {
          
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
        } else {
          
$userinfo[where] = "Viewing Profile of a Forum Member";
        }
        
      break; 
Any ideas what's wrong ?

//EDIT: Apart from me not reading thru the thread properly LOL Sorry!

Great hack and thanks
Reply With Quote
  #79  
Old 01-17-2003, 02:53 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #80  
Old 01-17-2003, 03:17 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it make a difference what order the username and userid is on on the query statement? I have the following query in my online.php:

PHP Code:
$user $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1])); 
Reply With Quote
  #81  
Old 01-17-2003, 04:59 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Does it make a difference what order the username and userid is on on the query statement? I have the following query in my online.php:

PHP Code:
$user $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1])); 
no it doesnt make a difference, i installed this hack on a vbulletin 2.2.9 and when i went to whos online i got quite a bit of errors that as i read through the thread, many others had encountered so i posted the changes i made to fix the errors i was getting.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05396 seconds
  • Memory Usage 2,338KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete