vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Display who has read a thread - Version 3 (https://vborg.vbsupport.ru/showthread.php?t=112192)

Paul M 04-06-2006 11:57 AM

Quote:

Originally Posted by blue6995
Cannot find the template changes I need to rectify this problem of seeing those that have read the thread appearing in 2 identical dialogue boxes...uninstalled, reluctantly

If you used an old version of this then look for a block of code in SHOWTHREAD labelled "<!-- Thread Readers -->" or something similar - also try looking for "thread_readers" or "$treaders".

If you have non of those then perhaps you have this line in your template twice for some reason ?
Quote:

<!-- end currently active users -->

OndaReal 04-06-2006 02:15 PM

installed :)

blue6995 04-06-2006 02:29 PM

Quote:

Originally Posted by Paul M
If you used an old version of this then look for a block of code in SHOWTHREAD labelled "<!-- Thread Readers -->" or something similar - also try looking for "thread_readers" or "$treaders".

Excellent - yes, it was the block of code under "<!-- Thread Readers -->"

Many thanks - Installed

HaMaDa4eVeR 04-06-2006 04:59 PM

good jop

I've question !
what do u meant by "Restrict the display to a set number of days" ??

can u add more information about the member who has read thread like how many times , last read date ...

Thank u
Installed :)

Gizmo5h1t3 04-06-2006 05:08 PM

got it installed, and works a treat...
nice addition m8

Paul M 04-06-2006 05:55 PM

Quote:

Originally Posted by HaMaDa4eVeR
what do u meant by "Restrict the display to a set number of days" ??

If you set it to "X" days it will only list members who have read the thread in the last X days.

The last read time is already shown, read the notes. :)

firstrebel 04-06-2006 05:58 PM

Does the v3 xml file name need to be changed to upgrade from v2.23 as it is a slightly different name, or will it still overwrite?

Bob

Paul M 04-06-2006 06:01 PM

The file name does not matter, only the contents. :)

aciurczak 04-06-2006 06:08 PM

Works perfectly! Paul - your hacks are such a refreshing change from many of the other items sprinkled throughout this board. They are useful, they are cake to install, the instructions are great, and almost all of them are useful enough that I wonder why vB doesn't just include them in the base code.

I never have to go in and "fix" these hacks to work on my board; I just have to go in sometimes and "tweak" them to make them just a bit better for my purposes.

The one change I made on this one (same as I did on your prior version) was to sort the thread readers by "dateline" instead of username. I think the display is much more useful when sorted by when they visited rather than by their usernames, but that's perhaps because we have a small board with a few hundred users rather than a mega-board of tens of thousands where username might make more sense. I'm not clear if embedding this choice as an admin option would be easy/hard/impossible, but it may be useful for other folks who would want a choice in how the usernames were sorted in that display.

Paul M 04-06-2006 06:16 PM

Quote:

Originally Posted by aciurczak
The one change I made on this one (same as I did on your prior version) was to sort the thread readers by "+++++ad.dateline" instead of username. I think the display is much more useful when sorted by when they visited rather than by their usernames, but that's perhaps because we have a small board with a few hundred users rather than a mega-board of tens of thousands where username might make more sense. I'm not clear if embedding this choice as an admin option would be easy/hard/impossible, but it may be useful

Actually, none used be sorted by name, I changed it due to numerous requests. :)

Reef 04-06-2006 10:02 PM

This is now exactly what I have wanted and the upgrade from previous version went fine..

Thanks Paul, I really hated the databased threadmarking before

john1744 04-07-2006 12:56 AM

Does this use many resources to operate?

brvheart 04-07-2006 01:53 AM

Installed :) - Thanks for all the hacks you put time into....greatly appreciated :)

Is there any way to have a reset like in the 3.0.x version so that you as an admin can reset the counter, and track who viewed, then who viewed after the reset counter?

Paul M 04-07-2006 03:55 AM

Sorry, no, that will not be added to this.

HaMaDa4eVeR 04-07-2006 02:22 PM

Quote:

Originally Posted by Paul M
If you set it to "X" days it will only list members who have read the thread in the last X days.

The last read time is already shown, read the notes. :)

:)

yeah I saw it ....
your code is smart ,,,:rolleyes: (search_text)
thank you again

Gizmo5h1t3 04-07-2006 03:09 PM

Quote:

Originally Posted by ravenes
Installed :) - Thanks for all the hacks you put time into....greatly appreciated :)

Is there any way to have a reset like in the 3.0.x version so that you as an admin can reset the counter, and track who viewed, then who viewed after the reset counter?

shame that wont be added, as it was a great addition...
yoiu could track that way who had read stuff after a certain time etc.....

shame

Paul M 04-07-2006 04:03 PM

Quote:

Originally Posted by Gizmo5h1t3
yoiu could track that way who had read stuff after a certain time etc.....

You can do that anyway, so i don't really see your problem. :cross-eyed:
Quote:

Hovering over a name in the displayed list will show when the member last visited the thread

Gizmo5h1t3 04-07-2006 07:14 PM

Quote:

Originally Posted by Paul M
You can do that anyway, so i don't really see your problem. :cross-eyed:

wasnt aware i had one chum...lol

btw...hovering over the names on my board doesnt work..mebbe thats the problem u think i have?

chill bro.....lose the aggressiveness in the posts...and prepare to accept constructive criticizm.....lololol

sheesh....all i said was, its a shame you werent going to develop it any further in the way that poster suggested.......

step away from the keyboard...lol

Snake 04-07-2006 07:51 PM

This is nice. I've just installed it on my forums! ;)

counterform 04-07-2006 09:53 PM

Quote:

Originally Posted by john1744
Does this use many resources to operate?

This is plugin is genius. I too am interested in overhead. With 200+ users active at a given time and surfing like crazy, is there a chance of significant slowdown with an average box (3GHZ, 1GB RAM, Linux)?

Paul M 04-07-2006 11:22 PM

Quote:

Originally Posted by john1744
Does this use many resources to operate?

Nope - you shouldn't be able to notice any difference. It uses one select query, and one update query, per displayed page - on a medium sized forum these will run in less than 1/100th of a second.

The pages themselves will be slightly larger due to the list of names - roughly 1k per 10/12 names.

counterform 04-07-2006 11:55 PM

How difficult would it be to limit the reader log to only those users who have posted to the particular thread? I am not asking you to mod the plugin, just wondering how monumental it would be for me to augment, and (if it is not a breach of etiquette to ask) where I should start if it is not a performance-draining epic?

Paul M 04-08-2006 12:22 AM

Not too difficult - you would need another sql query to extract a list of all posters in the thread, and then some php to disable the display if the viewer is not in that list.

counterform 04-08-2006 12:31 AM

Could it be done at the point in which the readers are logged into the +++++ad table (ie. if user has posted before then update reader log for the post when the user enters the thread). Well, I know it can be done, but which would be more efficient from a resource/storage standpoint: pre-log analysis, or filtering the results as mentioned above?

Sorry if I am getting to involved. I have decent php/mysql chops, but I am pretty new to vBulletin. You seem to be a plugin guru so I want to know if I am way off base or if I will run into massive troubles if I try to tackle a pre-log evaluation scenario with the initial INSERT.

Paul M 04-08-2006 12:36 AM

You wouldn't want to do it when updating the readtime, otherwise you would lose/miss data - someone viewing the thread, who hasn't posted in it yet, wouldn't get recorded as having read it.

counterform 04-08-2006 12:45 AM

Hmm, that sounds like what I might want it to do. Basically, when a user who has previously posted to the thread enters the thread, I want it to log their most recent visit - anyone who has not posted to the thread should be ignored.

That said, I am not concerned if a person posting to the thread is logged as a person who 'read' the post right after their post - I would be happy if it simply logged subsequent visits to the thread (basically to see if a poster ever revisted the thread).

Make sense?

counterform 04-08-2006 12:46 AM

sweet plugin, by the way, as is :D

x_5 04-09-2006 05:57 PM

thanx for the hack
what about add opition in this setting allow to show the table up or down like the previous hack
up = under the code

$polls if that show

down = same place Currently

thnhan 04-12-2006 10:58 PM

Installed it. Works nicely! :-)

BTW, there is no instruction on how to configure this or where the control panel is. It took me a while to search for it until I found the configuration in VBulletin Options - Thread Display Options (showthread).

For other novice like me, a little guidance on configuration/CP would be helpful.

Thanks

NT

Paul M 04-12-2006 11:16 PM

Options location added to notes.

SCORPION1 04-13-2006 11:25 PM

installed thanx m8 seems to be running :cool:

COBRAws 04-15-2006 09:29 PM

Quote:

Originally Posted by Darat
Paul - looks an interesting hack, have you any plans to allow it to be restricted to just certain forums?

This would be great. It would be cool just to have this installed on my Staff forums, so when someone posts something I want to know who read it and who didnt.

If this is not going to be included in a future release, I dont mind either, but it would be great!

ShadowOne 04-15-2006 09:53 PM

great hack... not sure if someone posted this, but after install hack, it starts who has read from that point, not previous....*installed*....it should be a default setting...

Paul M 04-15-2006 09:55 PM

Quote:

Originally Posted by ShadowOne
great hack... not sure if someone posted this, but after install hack, it starts who has read from that point, not previous....*installed*....it should be a default setting...

That's not entirely true. If you have the database thread marking system turned on it copies the data from that when installed.

ShadowOne 04-15-2006 09:58 PM

Quote:

Originally Posted by Paul M
That's not entirely true. If you have the database thread marking system turned on it copies the data from that when installed.

Oh, Okay...:D...

Paul M 04-16-2006 01:37 PM

No idea really, if it got to 1000 then theres no reason it should not get to 2349 - maybe your connection to the server was lost. Just close the page and login to your acp again, it may have installed okay (those dots are a local thing vb put in, they don't rely on a server connection).

Paul M 04-16-2006 03:29 PM

Sorry, I can't help you without an admin login, something in your threadread table is breaking a pretty simple record copy operation and I really can't imagine what. Does the product show as installed when you re-login ? if so then you should be able to just import it again - and this would bypass the copy code.

slim cutty 04-17-2006 04:14 AM

I've read this post through and through and I just can't seem to get this working to where it doesn't show double who has read this thread...

On my default template it shows once (who has viewed the thread) when I go to the child template it shows twice. any suggestions??? I've searched both showthread templates and I do not see anything that duplicates. I've even reverted them and it still shows twice???

Help! ..lol

What Template is created that shows this??? SHOWTHREAD didn't seem to be changed at all or I can't find where it is changed atleast???

Paul M 04-17-2006 07:06 AM

Go back a few pages in the thread and have a read of post #41, see if that answers your problem. :)

Paul M 04-17-2006 11:15 AM

LMK ? what's that ?

Send me a PM with details, if you do it in the next 10 mins I can look now, otherwise it will be a few hours as I'm off out soon.


All times are GMT. The time now is 09:14 AM.

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.01346 seconds
  • Memory Usage 1,829KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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