Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Mark Threads Unread (vB4) Details »
Mark Threads Unread (vB4)
Mod Version: 1.1, by nerbert (Coder) nerbert is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 4.2.0 Rating: (5 votes - 4.80 average) Installs: 17
Released: 03 Oct 2013 Last Update: 07 Oct 2013 Downloads: 86
Not Supported Uses Plugins Re-usable Code Translations  

This product undoes thread read marking so the thread will show in New Posts in case you want to come back to it later. Open the Thread Tools menu and click the button at the bottom. Enable/disable is in General Settings.

Improved version now handles both database and cookie methods of marking threads read. The link now shows only for threads younger than the read marking limit.

Bug fixed The improved version had a bug, which I have fixed.

Installation: Import the product file in Product Manager

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 03 Oct 2013, 04:18
nerbert nerbert is offline
 
Join Date: May 2008
Reserved
Reply With Quote
  #3  
Old 03 Oct 2013, 10:01
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
That's cool nerbert, glad you found a way to do it.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #4  
Old 03 Oct 2013, 11:41
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
It should be mentioned that this only works for threads that are newer than the global new/unread cutoff. If your forum shows new threads to your users for seven days, only threads from the last seven days can be marked unread. Or did you find a way around that?
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #5  
Old 03 Oct 2013, 12:24
nerbert nerbert is offline
 
Join Date: May 2008
When thread is marked read the threadid, userid and read time are recorded in the data base. This product simply deletes that entry based on threadid and userid.

I haven't followed through all the code but I would assume a year old thread isn't shown in New Posts simply because search.php searches back only so far (the seven days you used for an example). So to show a thread older than seven days you would have to build a special table to store ancient threads marked unread and append that list to the New Posts search. It's doable I suppose but far more work than I want to get into.
Reply With Quote
  #6  
Old 03 Oct 2013, 15:00
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Originally Posted by nerbert View Post
When thread is marked read the threadid, userid and read time are recorded in the data base. This product simply deletes that entry based on threadid and userid.
That's what I derived from your code

I haven't followed through all the code but I would assume a year old thread isn't shown in New Posts simply because search.php searches back only so far (the seven days you used for an example).
That's not how it works. Search.php has nothing to do with it. The markread table is pruned by a cron job. All threads that are older than the cutoff will be deleted from that table automatically. It would grow enourmously big if that would not be the case, since a value is stored for every thread for every user that reads it.
So to show a thread older than seven days you would have to build a special table to store ancient threads marked unread and append that list to the New Posts search. It's doable I suppose but far more work than I want to get into.
It's not only for the New Posts search. The unread markings are used all over the place (bolding in showthread, for example). And there are other tables (for read groups, for example).

Your addon does what is possible, and I'm sure many will find it very helpful. It's great you made it. I've looked into the system quite extensively for an addon of mine, and chances are you'll pretty soon hear requests to extend it. I had to explain the limits of the system quite a few times...
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #7  
Old 03 Oct 2013, 21:04
tbworld tbworld is offline
 
Join Date: Oct 2008
Thank you @Nerbert and @Cellarius, I looked at the code for unread markings and received a headache for the undertaking. I really appreciate your discussion on this subject.
Reply With Quote
  #8  
Old 04 Oct 2013, 17:51
cflyrun cflyrun is offline
 
Join Date: Jun 2013
Even if it's only able to be marked unread for one day, that'll still do it. I have an online classroom and check the forums every day, sometimes I want to mark a thread unread to come back to in a day or so, not usually longer than that. Sweet, installing now, THANKS. Happy to donate a bit of $ as well...
Reply With Quote
  #9  
Old 04 Oct 2013, 18:15
DF031 DF031 is offline
 
Join Date: Nov 2012
Hi all,

Where do I find my current "global new/unread cutoff." ?

Last edited by DF031; 04 Oct 2013 at 18:27.
Reply With Quote
  #10  
Old 04 Oct 2013, 22:36
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by DF031 View Post
Hi all,

Where do I find my current "global new/unread cutoff." ?
I am taking a stab at what you are asking. See if this helps:
ACP -> Options -> Settings-> General Settings --> Database Read Marking Limit
Reply With Quote
  #11  
Old 05 Oct 2013, 07:20
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Yes, that's it. And it, of course, points to another limitation I forgot to mention: It only works with database read marking, not the other two options. (Which are pretty limited in itself). Whew, I really came to dislike that read marking system of vB...
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #12  
Old 05 Oct 2013, 17:07
DF031 DF031 is offline
 
Join Date: Nov 2012
Thanks guys !

Our "Thread/Forum Read Marking Type" is set to "Database (automatic forum marking)" and "Database Read Marking Limit" to "180".

Would this mean (when the mod is installed) that when a thread has not had any replies for 181 days it can not be marked as unread ?

Are there any screen shots of this mod available ?
Reply With Quote
  #13  
Old 05 Oct 2013, 17:42
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
This is correct.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #14  
Old 05 Oct 2013, 18:27
nerbert nerbert is offline
 
Join Date: May 2008
Originally Posted by cellarius View Post
Yes, that's it. And it, of course, points to another limitation I forgot to mention: It only works with database read marking, not the other two options. (Which are pretty limited in itself). Whew, I really came to dislike that read marking system of vB...
Had a quick look at the cookie based option. It shouldn't be too hard to make that work (but you never know!). I'm busy with other matters right now, I can look into it later today.
Reply With Quote
  #15  
Old 05 Oct 2013, 21:11
DF031 DF031 is offline
 
Join Date: Nov 2012
Originally Posted by cellarius View Post
This is correct.
Thanks Cell !

Will the user still see the menu option or will it not be present when the 181day threshold has been reached ?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:04.

Layout Options | Width: Wide Color: