Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Display who has read a thread - Version 3 Details »»
Display who has read a thread - Version 3
Version: 3.13, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 04-04-2006 Last Update: 05-14-2006 Installs: 202
 
No support by the author.

This modification is no longer available or supported.

This is a completely new version, based on the idea of my "Display who recently read a thread" hack.

It has a few differences that some people may prefer to the other system. However, those differences may not suit everyone so both versions will continue to be available. Note however that they both have the same product id, it is not possible (or sensible !) to use both at the same time. You can upgrade Version 2 to Version 3 simply by importing the new product with overwrite set to 'yes'.

This version uses it's own table and does not rely on the database thread marking system being active, this also means that old data is not lost when the display limit is passed. The problem of people not being recorded when reading old threads is also removed.

The hack is a vb product and is installed in the normal manner via the product manager - the installation does a small amount of processing so be patient.

Hovering over a name in the displayed list will show when the member last visited the thread, and (optionally) what IP address they last visited it from.

There are settings for the following (in vBulletin Options - Thread Display Options) ;

1. Turn the system on/off.
2. Restrict the display to certain usergroups
3. Restrict the IP display to certain usergroups.
4. Restrict the display to a set number of days.

Note: When using option 4, the data is still kept beyond this limit, so it can be changed at any time.


History:

v3.12 : First Release.
v3.13 : Minor changes, no update necessary.

Show Your Support

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

Comments
  #122  
Old 05-21-2006, 01:45 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

quick question to Paul M

installs perfect and works fine - but one thing

it shows at the bottom of my threads - i would like to be at the top and cant find where to change it - any help m8 ?
Reply With Quote
  #123  
Old 05-21-2006, 02:35 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It attaches itself to the currently viewing box, moving it away from that would involve code and template changes.
Reply With Quote
  #124  
Old 05-21-2006, 02:36 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to have the box collapsed when first viewing it instead of open?
Reply With Quote
  #125  
Old 05-21-2006, 02:41 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Is there a way to have the box collapsed when first viewing it instead of open?
You can edit the template so it's collapsed by default when the page is loaded, and you have to manually expand it. But it won't remember it's state, it will always be collapsed when you load the page.

(I did this on our forum and the peasants revolted, I had to change it back).
Reply With Quote
  #126  
Old 05-21-2006, 02:44 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
You can edit the template so it's collapsed by default when the page is loaded, and you have to manually expand it. But it won't remember it's state, it will always be collapsed when you load the page.

(I did this on our forum and the peasants revolted, I had to change it back).
I would like it that way as the only time I would open it up is when I wanted to know who has read that aprticular thread. How and where would I change that?
Reply With Quote
  #127  
Old 05-21-2006, 02:57 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace the Display_Readers template with this ;

Code:
<!-- Thread Readers -->
<if condition="$show[whohasread]">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="tcat" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" alt="" border="0" /></a>
            $trtitle
        </td>
    </tr>
    <tbody id="collapseobj_thread_readers" style="display:none;">
        <tr>
            <td class="alt1" colspan="2">
                <span class="smallfont">$treaders</span>
            </td>
        </tr>
    </tbody>
    </table>
</if>
<!-- End Thread Readers -->
Reply With Quote
  #128  
Old 05-21-2006, 03:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, that works great! Thank you, sir.

So, what gets changed to make it like that? I have another one that I want the last line of it to display when it is collasped.
Reply With Quote
  #129  
Old 05-21-2006, 09:53 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically, two lines have changed, shown in bold.

Code:
<!-- Thread Readers -->
<if condition="$show[whohasread]">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="tcat" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" alt="" border="0" /></a>
            $trtitle
        </td>
    </tr>
    <tbody id="collapseobj_thread_readers" style="display:none;">        <tr>
            <td class="alt1" colspan="2">
                <span class="smallfont">$treaders</span>
            </td>
        </tr>
    </tbody>
    </table>
</if>
<!-- End Thread Readers -->
Reply With Quote
  #130  
Old 05-21-2006, 10:14 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so i cant have it at the top of the thread then ??

also i dont have `who`s viewing this thread` enabled.
Reply With Quote
  #131  
Old 05-21-2006, 10:51 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you move the whole block of "who's viewing" (shown below) to the top of your threads by editing SHOWTHREAD then it will move with it.

HTML Code:
<!-- currently active users -->
<if condition="$show['activeusers']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="2">
			<phrase 1="$totalonline" 2="$numberregistered" 3="$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>
</if>
<!-- end currently active users -->
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 11:53 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.06670 seconds
  • Memory Usage 2,318KB
  • 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_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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