vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Viewed This Thread - Enhanced Version (https://vborg.vbsupport.ru/showthread.php?t=68876)

mtha 10-02-2004 06:02 PM

Quote:

Originally Posted by Ocean
The Pop-Up window is something that I will probably add to the next version of this hack.

that'd be nice


Quote:

As to your question, unfortunately it does not show when a post has been read. But that is also why I added the second resetable counter. This way, you can add a post, for example, and reset the second counter so that you can see who has viewed that thread from that point on. This allows you to easily see who has viewed that thread at all, and who has viewed it after that particular change has been made.
:) then you can record IDs of those who has view thread in successive order. so it can be show as who viewed last with be displayed last (or first).
This include when you view the thread AGAIN, the script will check if your ID is already in the list, if it is, then your ID is moved to the end (or beginning) of the list. It might help knowing the sequence of reading (but losing the order of first reading)


Quote:

Adding a date/time stamp would mean an additional Query for every thread view on your board. I'm not sure it would be worth the overhead - especially on larger boards.
The information is important, but another query wouldnt be good.

Ocean 10-02-2004 06:25 PM

Quote:

Originally Posted by rjordan

Perhaps, then, instead of storing a bit that indicates that it has been viewed (assuming that is how you are doing it), you store the time and date value and check for a nul entry in the event that is has not been viewed? Doing this should not increase the queries as you are just querying for different data.

Unfortunately, it's more than that. Right now, when a thread is viewed, the code will query the DB and check to see if that person's UserID is present in the list of users who have viewed that thread.

If it's present, than it leaves things be. If not, then it takes an additional query to add that UserID.

If we wanted to keep track of the date/time that each user last viewed each thread - than every thread view would need to look for and then add or edit the current date/time stamp.

Plus, since the user and date/time stamp would be stored together - and all users + date/time stamps are stored in a single field per thread, the added parsing adds no small amount of processing that needs to be done. Or rather, it's a small addition by itself - but not cumulatively when 5,000 users are all viewing threads simultaneously. :)

I'm not sure it's worth the processing time/power for any boards except small ones. However, I might add it in a future version, nevertheless. :)


Quote:

Originally Posted by rjordan

The value I have seen in this is when an announcement is made in the forums for whatever reason, people have stated that they never read the message. If there was a time limit on response to a message, if they had read the message, the time stamp would indicate that they saw it in the time allowed and had the chance to respond.

In any case, it is a great hack. This is just that extra function that I would not mind seeing.

Actually, you can accomplish that function right now. In fact, it's easy when it's a new and single announcement - because all you have to do is save the user list once the time is up, and you'll know who viewed it by that point and who didn't.

Where it gets tricky, is if you edit or add to that announcement - because then the question is who read it since it was updated. It's for that reason that I added that second counter. Now, once you edit or add to an Announcement/Bulletin/Post, just reset the second counter for that thread. Now you'll know exactly who read it before your changes and who read it afterwards. :)

Ocean 10-02-2004 06:28 PM

Quote:

Originally Posted by mtha

:) then you can record IDs of those who has view thread in successive order. so it can be show as who viewed last with be displayed last (or first).
This include when you view the thread AGAIN, the script will check if your ID is already in the list, if it is, then your ID is moved to the end (or beginning) of the list. It might help knowing the sequence of reading (but losing the order of first reading)

That would also add an additional query to every thread view. In addition, it's usefulness - in my opinion - is somewhat limited. Not to mention the fact that it would confuse a lot of people. :)

If we were going to go that route, we might as well add the full date/time stamp. (Which still may happen)


:)

Roms 10-03-2004 03:41 AM

Awesome!! *Clicks install!

bnn121 10-09-2004 12:51 PM

I'm sorta confused...I do not have Garys hack installed...I would like ot install this enhanced version.

The instructions seem to be geared towards upgrades from previous versions.

Do you have a step by step to install this version?

Thanks

Ocean 10-09-2004 01:01 PM

Quote:

Originally Posted by bnn121

I'm sorta confused...I do not have Garys hack installed...I would like ot install this enhanced version.

The instructions seem to be geared towards upgrades from previous versions.

Do you have a step by step to install this version?

Thanks

bnn121, the instructions you are referring to are the upgrade instructions given in subsequent posts.

If you want the full instructions - you need to download the TXT file from the very first post in this thread - the same as you would do for any other hack on this site. :)

bnn121 10-09-2004 01:12 PM

Okay...I have downloaded the txt file from first post. Please dont hurt me...LOL...I'm just trying to figure out this hack and how to install it...it refers to some php files which are not located in either of the two files you have in the first post of this thread.

Where exactly does the fresh install portion start?

I see release notes section, then a UPGRADE NOTES section.

>Choice One or Choice Two

After that is shows

File Modifications:
showthread.php
misc.php

Template Modifications:
ShowThread

New Phrases:
already_viewed_this_thread
already_viewed_this_thread_since

Number of SQL Queries: 3

After that I see nothing to indicate...begin here for a fresh or new install

Is this the begining of the install process? I do not have those files listed above...the showthread.php or misc.php
********************************

1. Run the following SQL Queries (Adjust accordingly, if you use Table Prefixes):

**********

ALTER TABLE thread ADD whoviewed TEXT NOT NULL;
ALTER TABLE thread ADD whoviewedcounter TEXT NOT NULL;
ALTER TABLE thread ADD whoviewedreset INT(10) UNSIGNED NOT NULL;

Ocean 10-09-2004 01:57 PM

Quote:

Originally Posted by bnn121

Okay...I have downloaded the txt file from first post. Please dont hurt me...LOL...I'm just trying to figure out this hack and how to install it...it refers to some php files which are not located in either of the two files you have in the first post of this thread.

Where exactly does the fresh install portion start?

I see release notes section, then a UPGRADE NOTES section.

>Choice One or Choice Two

After that is shows

File Modifications:
showthread.php
misc.php

Template Modifications:
ShowThread

New Phrases:
already_viewed_this_thread
already_viewed_this_thread_since

Number of SQL Queries: 3

After that I see nothing to indicate...begin here for a fresh or new install

Is this the begining of the install process? I do not have those files listed above...the showthread.php or misc.php

The Upgrade Notes section tells you what you need to do in order to modify the Full Install instructions - which start at Step 1.

As for the PHP files listed - the reason they are listed as files which need to be modified is because they are your files that need to be modified.

Those two PHP files in question are supposed to be in the root of your vB folder, not supplied by me. After all, if I supplied them - why would you need to further modify them? :)

bnn121 10-09-2004 02:13 PM

LOL...I just relized those two files are in the root of VB...hmm...I've been looking over the instructions...and theres some files I cant find...eith in the showthread.php or even in any other folder?

5. Open the "SHOWTHREAD" template and Find

I'm unsure of where this is within VB

I did a search of the entire VB folder and within showthread.php and coame up with no such file or phrase.

Is it obviouls I have never done tis before...HEHE...guess you got to start somewhere...why not your hack...which I like, just wish I could figure this out

robert_2004 10-09-2004 02:36 PM

okay, go into your vb Admin section.

open 'Styles & Templates' from the left menu.
choose 'Style Manager'
press the [ << >> ] button on the right hand side. that will show you all the templates that are used on the site.
(i.e. the file forum.php [for instance] only holds all the coding for that particular page. all the looks and style of the page will be kept in the template system under a similar name )

Okay, now it's showing templates - but only the custom-added ones. press the, now standard font << >> link, and it will open up every single group.
[ctrl] + [f] and type in 'showthread' then just click 'edit' or 'customise' next to the template, select all and copy and paste into dreamweaver to get better search and replace capabilites.

hope that helps.


All times are GMT. The time now is 09:32 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.01429 seconds
  • Memory Usage 1,762KB
  • 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
  • (8)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