![]() |
Mark Threads Unread (vB4)
1 Attachment(s)
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 |
Reserved
|
That's cool nerbert, glad you found a way to do it. :)
|
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?
|
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. |
Quote:
Quote:
Quote:
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... |
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.
|
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...
|
Hi all,
Where do I find my current "global new/unread cutoff." ? |
Quote:
ACP -> Options -> Settings-> General Settings --> Database Read Marking Limit |
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...
|
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 ? |
This is correct.
|
Quote:
|
Quote:
Will the user still see the menu option or will it not be present when the 181day threshold has been reached ? |
This would be for nerbert to answer, but as far as I read the code, yes, the option will still be present.
|
Quote:
Too bad :mad: |
I'm working on having the link not show when the last thread is older than the cutoff time. It's almost ready, I just have to test it a little more. Also I have it working for the cookie option. Sorry I'm not getting at this, too many other things going on.
|
I know the feeling nerbert, way to many things going on these days. :)
|
Quote:
|
I fixed the problem with cookie based thread marking and now the link shows only for threads younger than the marking cut off limit.
Here's a quick paste in update. For the "Build Form and Link" Plugin: Code:
if($vbulletin->options['enable_mark_unread']) Code:
if($vbulletin->options['enable_mark_unread']) |
Quote:
Fortunately, I didn't overwrite my saved copy of the previous version which was better, IMO. |
Bug fixed. After I had tested it I tidied up the code and introduced a bug. The file is corrected and a the paste-in code in my earlier post is corrected. Sorry
|
Really nice @Nerbert! :)
|
It seems there are no instructions on how to insdtall this mod. Or am I missing something ?
|
Sure there is, this is in the first post:
Installation: Import the product file in Product Manager |
Just upload the product xml file in the Import Product page and it's ready to go.
|
Will someone please take a guess on what I'm missing here or what's wrong? I've imported this mod and it installed correctly. It shows as being enabled by default in the AdminCP General Settings panel. However, when I go into a thread and click on the 'Mark Unread' menu item, it changes to a bright red highlight and the menu remains visible (i.e., it doesn't go away). The particular thread then does not appear to be marked as unread (no boldface subject text, etc). Am I missing something obvious? Thanks in advance.
|
Make sure you have read through the thread and you are using the database for thread marking. Check for JavaScript errors on the AJAX calls.
|
Thanks for the reply.
Quote:
Quote:
|
Okay, some further information here...
-There are no AJAX or other scripting errors shown in the error log relevant to my clicking the 'Mark Unread' menu item. -Absence of intended function occurs on both of the browser's I'm using for testing: Firefox and Chrome. -Absence of intended function occurs with either the cookie-based or the database-based thread marking option enabled. And by the way, this is the first vB add-on I've installed that doesn't seem to work. I'd sure like to understand why it's not working because we have a real need for what it's supposed to do. EDIT: I've just realized that when I enable 'database' thread marking, each thread listing vanishes from the list once it's been read - that didn't happen with cookie thread marking enabled. Once a thread vanishes from the list, clicking on 'Mark Unread' does indeed make the thread listing return to the list. But the listing that returns is not in boldface (as it should be to indicate that it in fact holds unread status). And the Thread Tools menu still doesn't cancel once 'Mark Unread' has been clicked upon. So are these bugs? Or are these behaviors isolated to me? It's hard to know since there aren't many comments for this add-on. |
Quote:
It's supposed to turn red shortly after you click it to indicate that the AJAX request has been processed. I just tested it by right clicking a link on the forum display page and opening the thread on a new page, marking that thread unread and then refreshing the forum display page and the font for that thread link is bold again as it should be. |
Thanks for the reply, nerbert.
Is it supposed to also make threads that have been marked as unread show in bold text within the subscribed threads list on the UserCP page? |
No reply. Okay then. I felt that would be a fairly simple question to answer. Bolding the subject font for threads marked as unread within the subscribed threads list is precisely what I was hoping this mod would do - and, really, what I needed. But it's not doing that for me and no one has replied to indicate whether or not it's doing that for them. As such, it appears the answer may be that this mod simply won't do that.
It was worth a try. |
Quote:
|
cellarius: you are correct. I apologize for my impatience.
|
can we have this mod for VB5?
|
The hook and plugin system this mod uses to do this is not available in vB5.
|
All times are GMT. The time now is 04:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|