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-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.


All times are GMT. The time now is 01:44 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.01987 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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