Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Doug Heffernan on March 04, 2018, 04:56:07 PM

Title: Who has Read this Topic
Post by: Doug Heffernan on March 04, 2018, 04:56:07 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4172)

This mod is will give your staff members who have permissions to moderate forums to view the users that who have read topics.

There are no settings for this mod. After installation a new button called Log Views will appear on topics below the title. Click it and a list of all users who read that topic will be displayed.

If you have any questions post them in the mod 's support topic.
Title: Re: Who has Read this Topic
Post by: -Rock Lee- on March 04, 2018, 07:10:29 PM
A simple and very good modification I really congratulate you. I leave the translation to Latin Spanish!

<file name="$languagedir/Modifications.spanish_latin.php" error="Skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['topic_viewers_link'] = 'Registro de vistas';
$txt['topic_viewers'] = 'Aqu&iacute; puede ver la lista de todos los usuarios que leen el tema:';]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.spanish_latin-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['topic_viewers_link'] = 'Registro de vistas';
$txt['topic_viewers'] = 'AquĆ­ puede ver la lista de todos los usuarios que leen el tema:';]]></add>
</operation>
</file>



Regards!
Title: Re: Who has Read this Topic
Post by: Kindred on March 04, 2018, 11:06:31 PM
So, question...  without looking at the mod code, I can't tell...  but how does this mod track who has read a topic?   Are all topics tracked?

If there's is not a new table, this mod will be less than accurate, as I could mark a topic read by marking ALL topics read, but never actually have physically read the tracked one(s)

If it is a new table, your talking huge overhead...     if I have a forum with over 3 million posts in a 500,000 topics....   tracking each thread would quickly overrun the database with data.
Title: Re: Who has Read this Topic
Post by: vii on March 04, 2018, 11:58:42 PM
Quote from: Kindred on March 04, 2018, 11:06:31 PM
So, question...  without looking at the mod code, I can't tell...  but how does this mod track who has read a topic?   Are all topics tracked?

If there's is not a new table, this mod will be less than accurate, as I could mark a topic read by marking ALL topics read, but never actually have physically read the tracked one(s)

If it is a new table, your talking huge overhead...     if I have a forum with over 3 million posts in a 500,000 topics....   tracking each thread would quickly overrun the database with data.

That's true. This mod does pluck entries from log_topics. Adding a new column to the log_topics table along the lines of "type" could be used to separate actual page views from users simply marking it as read without viewing. Leaving a default value of 0 to signify an actual view, and modifying a line or two in the MarkRead function would suffice I think. That would solve the accuracy issue while mitigating data overload as well. Mark board as read does still present a problem though.
Title: Re: Who has Read this Topic
Post by: Shambles on March 05, 2018, 02:28:50 AM
Not looked at the mod (other than the posted screenshots) but how does it differ from Topic View Log (https://custom.simplemachines.org/mods/index.php?mod=4060) mod?
Title: Re: Who has Read this Topic
Post by: Doug Heffernan on March 05, 2018, 05:43:11 AM
Quote from: Kindred on March 04, 2018, 11:06:31 PM
So, question...  without looking at the mod code, I can't tell...  but how does this mod track who has read a topic?   Are all topics tracked?

If there's is not a new table, this mod will be less than accurate, as I could mark a topic read by marking ALL topics read, but never actually have physically read the tracked one(s)

If it is a new table, your talking huge overhead...     if I have a forum with over 3 million posts in a 500,000 topics....   tracking each thread would quickly overrun the database with data.

Yes, all topics are tracked and it does not add a new table. It makes use of the smf_log_topics table.

It displays only users who have actually/physically read a topic.

Quote from: Shambles on March 05, 2018, 02:28:50 AM
Not looked at the mod (other than the posted screenshots) but how does it differ from Topic View Log (https://custom.simplemachines.org/mods/index.php?mod=4060) mod?

To be honest I do not know as I was not aware of that mod until your post.
Title: Re: Who has Read this Topic
Post by: Kindred on March 05, 2018, 09:32:21 AM
Quote from: doug_ips on March 05, 2018, 05:43:11 AM
Yes, all topics are tracked and it does not add a new table. It makes use of the smf_log_topics table.

It displays only users who have actually/physically read a topic.

You make two statements, which are contradictory.

If you are using the log_topics table, then you have an issue.
If I "mark all topics as read" then the entries in log_topics for my user number are cleared, because I have read everything to that point.

So, depending on how your logic works, either it will mark me as having read the topic by clicking "mark as read" -- or, if I have read the topic previously, it will now mark me as NOT having read the topic.
Title: Re: Who has Read this Topic
Post by: Doug Heffernan on March 05, 2018, 04:59:15 PM
Quote from: Kindred on March 05, 2018, 09:32:21 AM
Quote from: doug_ips on March 05, 2018, 05:43:11 AM
Yes, all topics are tracked and it does not add a new table. It makes use of the smf_log_topics table.

It displays only users who have actually/physically read a topic.

You make two statements, which are contradictory.

If you are using the log_topics table, then you have an issue.
If I "mark all topics as read" then the entries in log_topics for my user number are cleared, because I have read everything to that point.

So, depending on how your logic works, either it will mark me as having read the topic by clicking "mark as read" -- or, if I have read the topic previously, it will now mark me as NOT having read the topic.

I see now what you mean Kindred. Yes, you are right.
Title: Re: Who has Read this Topic
Post by: SaidJan on April 20, 2018, 01:31:18 AM
I want to bring this "Topic Viewer" to the topic page, not a button to click on. How is it possible?
Title: Re: Who has Read this Topic
Post by: Doug Heffernan on April 20, 2018, 08:20:00 AM
Quote from: SaidJan on April 20, 2018, 01:31:18 AM
I want to bring this "Topic Viewer" to the topic page, not a button to click on. How is it possible?

Can you post a screenshot of what you mean?
Title: Re: Who has Read this Topic
Post by: jack208 on July 27, 2018, 07:03:15 PM
Thanks for this mod. It works fine on my ver 2.0.15 site.

However I notice it does not seem to work for topics in child boards ie I do not see the View Log button. Can anyone else who uses this mod confirm my observation? TQ
Title: Re: Who has Read this Topic
Post by: Hambo on October 25, 2024, 06:39:04 PM
Hi again. The red warning in between the quick reply had my stomach churning and I was unsure if you had interest in continuing this mod at the time as it had been over 5 years.

I have a very large interest in this mod due to the fact that I run a more confidentially private section of the forum board for contests and events. If something leaks outside of the board, this modification would greatly aid me in finding the culprit as I want to keep such events and contests as fair play. That said, having this mod work for every board is also a nice bonus.

If the extra features can be included such as the date viewed by members and refreshing that to a newer date every time a member views the topic, that would be awesome.
From MEMBER-A ( 10 - 22 - 2024 ) then that is replaced by MEMBER-A ( 10 - 24 - 2024 )
Title: Re: Who has Read this Topic
Post by: Duban Black on March 11, 2025, 02:42:39 PM
Hello @Doug Heffernan

is there any chance to have this mod in version 2.1.4?
Title: Re: Who has Read this Topic
Post by: Doug Heffernan on March 11, 2025, 02:58:00 PM
Quote from: Duban Black on March 11, 2025, 02:42:39 PMHello @Doug Heffernan

is there any chance to have this mod in version 2.1.4?

No, I don't plan to upgrade this mod.