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)

TWTCommish 05-12-2002 10:00 PM

Improved Who's Online Display
 
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? :D
  • "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.

ZiRu$ 05-13-2002 01:23 AM

very nice.....does it work on 2.2.4?

TWTCommish 05-13-2002 01:25 AM

I think so. It should work on all 2.2.x versions...I don't think the online.php file has changed much over the last few versions.

TheComputerGuy 05-13-2002 02:39 AM

Thanks for this great Hack

Velocd 05-13-2002 04:38 AM

cool hack, although I personally I'm going to stick with my design, which is pop-up version of who's online (just goto my forums and click on who's online to see it).

good though :D

Warlord 05-13-2002 08:10 AM

Sounds cool.. I'll install it now and get back to you.. :)

Warlord 05-13-2002 08:56 AM

Ok, I get this error after installing it manually....

Fatal error: Call to a member function on a non-object in /home/virtual/site24/fst/var/www/html/vb/online.php on line 172

Warlord 05-13-2002 09:01 AM

ok.. this is wierd. Now the active users page works and I didn't do anything. But it doesn't have all the features you described.... I had someone view and reply to a PM I sent him and it simply said "Reading a Private Message" amd "Using Private Messenger" or something to that effect....

DWZ 05-13-2002 09:12 AM

Sounds like a great hack, will install once I can get vbHacker to work...

Smoothie 05-13-2002 09:18 AM

Quote:

Originally posted by Warlord
Ok, I get this error after installing it manually....

Fatal error: Call to a member function on a non-object in /home/virtual/site24/fst/var/www/html/vb/online.php on line 172

Same here.

TWTCommish 05-13-2002 11:22 AM

Ok, you can fix the error by replacing this:

PHP Code:

global $thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$enableemail$enablepms$bbtitle$usergroupdef$numberguests

with this:

PHP Code:

global $DB_site$thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$enableemail$enablepms$bbtitle$usergroupdef$numberguests

Warlord: are you sure you replaced all the bits of code?

dawl 05-13-2002 11:25 AM

works great here ! love it :-)

ExcErr 05-13-2002 01:41 PM

great hack, i think it's very usefull!
but, may be you can add features for Store(lesane hack)?
for example: Buying "Custom avatar" etc.......

TWTCommish 05-13-2002 01:42 PM

I don't know enough about his hack to do that offhand...working on a few other things I should probably focus on, too. :) But I don't think adding a few things like that by hand should be too hard.

CeleronXL 05-13-2002 05:47 PM

vBHacker couldn't find any of those parts of code to change.....

File edits
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.

TWTCommish 05-13-2002 06:19 PM

That's odd. Can you send me your online.php file?

-=dm=- 05-13-2002 07:49 PM

Hi TWTCommish
thanx for a nice hack :)
is it possible to remove the private calender show up, on "whois online"?
cuz when our members ad some "private" events other member who are on the "whoisonline" are able to see the subject of the events:(
thanx

TWTCommish 05-13-2002 08:30 PM

I didn't add anything to the hack to allow people to view private events, so if vB doesn't display them by default, it should be okay. :)

-=dm=- 05-13-2002 10:54 PM

Hi
it display the subject of the private events, on whois online when user adds a private event.

TWTCommish 05-13-2002 10:56 PM

Does vB do that standard? I think it must...because I certainly didn't add that functionality in.

-=dm=- 05-14-2002 12:05 AM

I have never noticed it before :(
today I installed u r hack and I was longtime on the whoisonline and suddenly I saw a private event title.

Warlord 05-14-2002 05:21 AM

Ok, I have added $DB_site to that string of code and I'm not getting any errors.. I'll have to see if the extras work as people use the different features....

For now, I'm clicking on install ;)

FleaBag 05-17-2002 10:07 AM

Thanks for this hack Chris, installed manually in under 3 minutes on 2.2.5 and working brilliantly! :D

Boofo 05-18-2002 09:17 PM

I get an error in online.php in line 175 (or around there) when someone is writing or sending a private message. If they read it, it seems fine. The error starts on the line that begins with:

Code:

$pm = $DB_site->query_first("SELECT fromuserid FROM privatemessag
Any ideas?

StealthAnime 05-18-2002 09:23 PM

good hack, will install it right away :)

TWTCommish 05-19-2002 01:19 AM

Boofo: what error do you get?

Boofo 05-19-2002 03:36 AM

You'd have to ask me that. :) It gives me the error as I load the screen (or refresh it is how I first saw it). I call it the "white page error" where is tells me the line of code and file the error is in. The page won't re-load until they are out of it. I will try to catch it again and let you know.

Boofo 05-19-2002 10:00 AM

TWTCommish,

I finally got the error again tonight (this early AM actually). Here it is:

Fatal error: Call to a member function on a non-object in /home/virtual/site3/fst/var/www/html/forum/online.php on line 175

It happened right after they were "Reading a private message". Actually the message was from me (isn't it supposed to say "Reading your private maeesage"?). then I got the error and the page would not load. After about 5 refreshes, it re-loaded and then I had a box pop up for a new peivate message. The line in the error is the line that I told you about in my previous post about the error. Hope this helps! :)

TWTCommish 05-19-2002 11:20 AM

Ok, you can fix the error by replacing this:

PHP Code:

global $thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$enableemail$enablepms$bbtitle$usergroupdef$numberguests

with this:

PHP Code:

global $DB_site$thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$enableemail$enablepms$bbtitle$usergroupdef$numberguests


Boofo 05-19-2002 11:54 AM

Ok, done! Will that also fix the problem of it not showing that they are Reading My Private Message (instead of just reading a private message) or just the error part? And are you going to update the install with this or do I need to copy it down somewhere? :)

TWTCommish 05-19-2002 11:56 AM

That should fix both parts; try it and see. :) As for the install; I'll try to get around to updating it soon. Sorry for the delays.

Boofo 05-19-2002 11:56 AM

Oh, by the way, I'm just curious...what did that fix actually do? Does it add another query? (I LOVE learning this stuff!) :)

inetd 05-19-2002 12:04 PM

good hack

zeedy2k 05-19-2002 01:13 PM

Im getting this: Fatal error: Call to a member function on a non-object in /home/httpd/hostchat/html/online.php on line 123 when running the vbhacker file.

Anyone know whats up?? heres whats on that line:
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));

zeedy2k 05-19-2002 01:16 PM

fixed thanks to https://vborg.vbsupport.ru/showthrea...446#post252446

Althought whats this?

Unknown Location: /updateindex.php?&fid=6&val=1

Boofo 05-19-2002 01:35 PM

It is still reading "Reading Private Message" instead of "Reading Boofo's Private Message" (or however it is supposed to read. :)

TWTCommish 05-19-2002 01:36 PM

Hmm. Odd. I'll register at your board later today and see if I can figure things out. :)

Boofo 05-19-2002 01:40 PM

The error is gone from what I can tell, though. :)

Ian 05-19-2002 06:00 PM

For the people that installed this hack right when it came out, do we need to change or update anything if it seems to be working fine?

TWTCommish 05-19-2002 06:02 PM

If it's working fine, then no, I guess you won't need to change anything. I think the only way it could work in spite of that bug, however, is if you've installed another hack within that file that made a similar change.


All times are GMT. The time now is 03:28 PM.

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.01391 seconds
  • Memory Usage 1,825KB
  • 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
  • (1)bbcode_code_printable
  • (4)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
  • (40)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