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

Reply
 
Thread Tools
"Users browsing this thread" Details »»
"Users browsing this thread"
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-31-2002 Last Update: Never Installs: 78
 
No support by the author.

Here's what I did when I first written the hack for vB.org.
Since nakkid's query was wrong, I got permission from him to post my version.

Anyway, this is using vbHacker so you'll need that. See my signature for a link about that.

This hack adds a list of users currently browsing the thread you see. It requires another field in the user table and no new queries except for showthread.php. It's based of the "Users browsing forum" feature so it was easy.

Cheers.

Show Your Support

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

Comments
  #22  
Old 04-03-2002, 12:45 AM
cditty's Avatar
cditty cditty is offline
 
Join Date: Oct 2001
Location: Memphis TN
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I make this visible to admins and mods only?

Chris
Reply With Quote
  #23  
Old 04-03-2002, 01:12 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by cditty
How would I make this visible to admins and mods only?
I think you'll want to replace this...

PHP Code:
    if ($browsers) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 
...with this...

PHP Code:
    if ($browsers && ($bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == 7)) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 
...I think that should make it visible to Mods, Super Mods, and Admins. Haven't tested it, though.
Reply With Quote
  #24  
Old 04-03-2002, 03:32 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or use ... and ismoderator().
Reply With Quote
  #25  
Old 04-03-2002, 03:36 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shhhhh! Do you want EVERYONE to know that I don't know jack squat about vb?
Reply With Quote
  #26  
Old 04-03-2002, 03:39 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, I was using what you posted as well until very recently, when I discovered ismoderator().
Reply With Quote
  #27  
Old 04-05-2002, 09:10 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can somebody tell me if this hack would work with 2.0.3? And where is the "Who's Browsing This Forum" hack? I want that one too, is that included in 2.2.4/5 :ermm:

I have been looking for a hack that does this ever since I installed my board, but yet again I am stuck with my version and am not willing to upgrade. Somebody please tell me this hack will work or might work with 2.0.3???

Thanks for any help you guys can provide.
Reply With Quote
  #28  
Old 04-06-2002, 01:06 AM
Lyric Olympics Lyric Olympics is offline
 
Join Date: Apr 2002
Location: Washington, DC
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have 2.2.5
and this line isn't in newreply.php

PHP Code:
updateuserforum($threadinfo['forumid']); 
Reply With Quote
  #29  
Old 04-06-2002, 06:45 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Lyric Olympics
i have 2.2.5
and this line isn't in newreply.php

PHP Code:
updateuserforum($threadinfo['forumid']); 
It's line 72 of an unhacked 2.2.5 newreply.php.
Reply With Quote
  #30  
Old 04-06-2002, 07:35 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That line is changed if you installed my Users Browsing Thred hack, Olympics.
Reply With Quote
  #31  
Old 04-06-2002, 02:53 PM
Lyric Olympics Lyric Olympics is offline
 
Join Date: Apr 2002
Location: Washington, DC
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's odd
i have no hacks and i've uploaded the files
but my newreply is different
i downloaded a fresh copy and reuploaded again
and now i can find that line
odd
thanx anyways
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 04:51 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.04971 seconds
  • Memory Usage 2,304KB
  • 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
  • (4)bbcode_php
  • (2)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