Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #52  
Old 06-06-2002, 02:35 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking at the code now...what did you say the problem was? Which link is giving you trouble?
Reply With Quote
  #53  
Old 06-06-2002, 02:40 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...$userinfo[where] = "Schaut sich das Profil an von <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";


and here is the problem. It looks like: schaut sich das profil an von >>mr.x<<. If i click on mr.x ill get a message that this user are not registered.
Reply With Quote
  #54  
Old 06-06-2002, 03:01 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what's wrong, but to make sure the link works, replace this:

PHP Code:
if ($user[username]) { 
with this:

PHP Code:
if (intval($user[userid])) { 
Reply With Quote
  #55  
Old 06-06-2002, 03:08 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Chris. I will try it.
Reply With Quote
  #56  
Old 06-19-2002, 10:27 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Running well on 2.2.6 apart from 1 issue with the profile userid, it doesn't put the number of the member in the hyperlink.
Reply With Quote
  #57  
Old 06-20-2002, 12:21 AM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace this...
Code:
$user   = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
...with this...
Code:
$user   = $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1]));
Reply With Quote
  #58  
Old 06-20-2002, 05:31 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Chris. Nobody viewing profiles for me to check at the moment, but I'm sure it works!
Reply With Quote
  #59  
Old 06-20-2002, 09:53 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't say the name of the person who's profile they are viewing at all now... I'm gonna check my online.php just to be sure everything is as it should be.
Reply With Quote
  #60  
Old 06-20-2002, 09:59 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right everything is as it should be, all the file edits are done. Did you deliberately remove that feature Chris? If so wouldn't it be better to have the member name without the link, if it isn't easy to do? I have no idea what I'm talking about by the way.
Reply With Quote
  #61  
Old 06-20-2002, 12:44 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The whole block of code should look like this:

Code:
    case 'getinfo':
      $userid = explode('userid=', $userinfo[location]);
      $user   = $DB_site->query_first("SELECT 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;
Anyway, you can always test it without anyone else: just view a profile, and make the next page you go to be the Who's Online page. That's how I tested it.
Reply With Quote
Reply


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:18 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.08714 seconds
  • Memory Usage 2,313KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (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