Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
AJAX: Show Users Browsing Threads & Replying Details »»
AJAX: Show Users Browsing Threads & Replying
Version: 1.00, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.8 Rating:
Released: 12-04-2007 Last Update: Never Installs: 153
Template Edits
Additional Files  
No support by the author.

This mod will replace the current "Currently Active Users Viewing This Thread" box in threads to an identical one that uses AJAX.. With this method, you can see users viewing the thread in real time (without refreshing) and also see when a user is replying.

By default, it updates every 10 seconds, but you can change that by editing the template code.

Enjoy!


Brought To You By WorldWideCreations.com.

Show Your Support

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

Comments
  #12  
Old 12-05-2007, 06:59 PM
danward's Avatar
danward danward is offline
 
Join Date: Dec 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I make it work with 3.6.4?
Reply With Quote
  #13  
Old 12-05-2007, 07:07 PM
osousous osousous is offline
 
Join Date: Jan 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like this - thank you.

If I might suggest a decent extension to this, something In saw in a blog comment section the other day (a paticuarly busy blog comment page).

It basically showed at the bottom in real time - the number of replys that had been made to the comment page since I have started reading it (i.e. in real time).
Reply With Quote
  #14  
Old 12-05-2007, 07:23 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by danward View Post
How do I make it work with 3.6.4?
Well, I don't currently have any 3.6.4 versions running, but I would imagine it should work with little to no editing.
Reply With Quote
  #15  
Old 12-06-2007, 04:41 AM
Chachacha's Avatar
Chachacha Chachacha is offline
 
Join Date: Jul 2006
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jafo232 View Post
Well, I don't currently have any 3.6.4 versions running, but I would imagine it should work with little to no editing.
I've just installed this on my 3.6.4 board and it is working. Great add-on. Thanks.
Reply With Quote
  #16  
Old 12-06-2007, 10:59 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you made tests regarding server load about this mod ? Even the original version had bad effects on server load and i can't imagine it with Ajax. It may totally kill your server.
Reply With Quote
  #17  
Old 12-06-2007, 12:33 PM
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$vboptions[bbtitle]</title>
</
head>
<
body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="tcat" colspan="2">
<
phrase 1="$totalonline2="$numberregistered3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</
td>
</
tr>
<
tr>
<
td class="alt1" colspan="2">
<
span class="smallfont">$activeusers</span>
</
td>
</
tr>
</
table>
$footer
</body>
</
html
replaced
Reply With Quote
  #18  
Old 12-06-2007, 03:15 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
Did you made tests regarding server load about this mod ? Even the original version had bad effects on server load and i can't imagine it with Ajax. It may totally kill your server.
Yes..

Quote:
Originally Posted by Jafo232 View Post
I have been following it on a couple busy sites and haven't noticed too much of a hit. Restricting "Show Users Browsing Threads" to members only is probably a prudent thing to do. You can also up the timeout in the javascript for fewer calls.
Reply With Quote
  #19  
Old 12-06-2007, 03:25 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by asj View Post
PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$vboptions[bbtitle]</title>
</
head>
<
body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="tcat" colspan="2">
<
phrase 1="$totalonline2="$numberregistered3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</
td>
</
tr>
<
tr>
<
td class="alt1" colspan="2">
<
span class="smallfont">$activeusers</span>
</
td>
</
tr>
</
table>
$footer
</body>
</
html
replaced
Ok and this is what exactly?
Reply With Quote
  #20  
Old 12-06-2007, 03:37 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
Did you made tests regarding server load about this mod ? Even the original version had bad effects on server load and i can't imagine it with Ajax. It may totally kill your server.
Actually I just checked my APC control panel on one server to look at cached hits of scripts to get an idea on how much this file gets called on a moderate site:

forum/includes/init.php: 157227

forum/inlineonline.php: 12643

So basically, the amount of times VB has been activated so far today (APC was reset early this morning) 157,227, out of all of those executions, only 12,643 were member calls to the product script. Considering the non-ajax version would have also made some calls (no way with APC to figure out the difference) I see the load as negligible compared to the benefit. It should be noted that the forum in question restricts this feature to members only.
Reply With Quote
  #21  
Old 12-09-2007, 04:08 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If my server was not lagging, I would love to install this :/ guess i'll have to wait until I can get my server correctly optimized or upgraded again. Thanks for sharing.
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 05:07 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.10679 seconds
  • Memory Usage 2,328KB
  • 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
  • (6)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
  • (3)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