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
"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
  #42  
Old 04-14-2002, 06:26 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
Quote:
Originally posted by Mental Stamina


as long have you have 2 databases you can have 2 boards
And u must pay for 2 boards...
Reply With Quote
  #43  
Old 05-01-2002, 03:37 AM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice job
Reply With Quote
  #44  
Old 05-03-2002, 04:11 AM
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just did this hack and got no errors but its not working. Where it would show the users browsing is nothing but spaces. Does not even say "users browsing this thread". I looked in showthread template and its got $onlinestatus. What could be wrong, I am running 2.2.5
Reply With Quote
  #45  
Old 05-03-2002, 04:26 AM
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NM, I figured it out...
Reply With Quote
  #46  
Old 05-08-2002, 05:49 AM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could This Work on other pages......
like just a normal page.. could i have somewhere on that page it saying... "Users Viewing this Page"
Reply With Quote
  #47  
Old 05-08-2002, 05:36 PM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed this on my board which is version 2.2.5 and it works great. I'm so happy that you guys are willing to share your hacks with us non-programmers. Thanks again.
Reply With Quote
  #48  
Old 05-09-2002, 12:26 PM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^upppin for answer on previous page...
dont be afraid to say no
Reply With Quote
  #49  
Old 05-10-2002, 04:43 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I installed it using vbhacker, it was only showing MY name in any given thread. I finally figured out why.

in showthread.php, this code:

PHP Code:
// Get users browsing this forum
if ($showforumusers) {
    
$datecut $ourtimenow $cookietimeout;
    
$browsers '';
    
$comma '';
    
$threadusers $DB_site->query("
        SELECT username,invisible,userid
        FROM user
        WHERE inthread=
$thread[threadid]
        AND lastactivity>
$datecut
        AND lastvisit<>lastactivity
    "
);
    while (
$threaduser $DB_site->fetch_array($threadusers)) {
        if ((!
$threaduser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $threaduser['userid']) {
            
$userid $threaduser['userid'];
            
$username $threaduser['username'];
            if (
$threaduser['invisible'] == 1) {
                
$invisibleuser '*';
            } else {
                
$invisibleuser '';
             }
            eval(
"\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
            
$comma ', ';
        }
    }
    if ((!
$bbuserinfo['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] <> 0) {
        
$userid $bbuserinfo['userid'];
        
$username $bbuserinfo['username'];
        if (
$bbuserinfo['invisible'] == 1) {
            
$invisibleuser '*';
        } else {
            
$invisibleuser '';
        }
        eval(
"\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
    }
    if (
$browsers) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    }

was not being added to the file. This code:

PHP Code:
updateuserforum($thread['forumid'], $thread['threadid']); 
WAS added to the file though. Once I pasted in the missing code block, everything worked fine.

Amy
Reply With Quote
  #50  
Old 05-14-2002, 03:53 AM
tweak's Avatar
tweak tweak is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help i installed this Hack but it wont work. I checked all the code over and over its all there in the right spots But it wont show up on my forum??

The Code is in the templates and the created template is there.
the query is there.
Reply With Quote
  #51  
Old 05-14-2002, 08:53 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that not a screen shot of forumhome?
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 04:00 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.05463 seconds
  • Memory Usage 2,323KB
  • 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_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