vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Mark Thread Unread On Edit (https://vborg.vbsupport.ru/showthread.php?t=318686)

MarkFL 05-15-2015 09:00 PM

Mark Thread Unread On Edit
 
1 Attachment(s)
Overview:

This simple product will mark a thread as unread when a post is edited, and the content of the post actually changes.

The site I help administrate is a math help forum, and sometimes users will post an incomplete question for which no help can effectively be given, and then they will later edit their post to provide relevant information, and it is nice for that thread to then be returned to unread status.

In the settings for this product, you choose which users (by usergroup and/or username) who will see the thread with the edited post as unread and which usergroup(s) making such edits will cause the thread to be marked as unread.

Note: Upon installation of version 2.0 or higher, the setting "Thread/Forum Read Marking Type" is auto-set to "Database (automatic forum marking)" in order to make certain this setting is fully compatible with this product.

Updates:

Version 1.1:
  • Allows you to choose users for whom threads will be marked as unread by usergroup, userid, or both.

Version 2.0:
  • A complete overhaul, easier to use and more efficient code logic.

Version 2.1:
  • Fixed issue where other threads not actually read, yet marked as read using the "Mark Forums As Read" links, will stay marked as read when a post is edited.
  • Product is now triggered by the usergroup membership of the post author, not on who actually edits the post.

Version 2.2:
  • Fixed issue where edited posts were marked as unread for the person making the edit.

Version 2.2.1:
  • Disabled on CMS and Blog scripts to avoid potential db errors.

Version 2.2.2:
  • Fixed plugin typo.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1461294984

Support for this product can be found here:

Stratis 05-16-2015 02:46 PM

Very nice, thank you.
A question,
Users For Whom Threads Are Marked Unread
If we want a specific usergroup rather than id's of members is no option.
If I got this right :)

MarkFL 05-16-2015 02:55 PM

Quote:

Originally Posted by Stratis (Post 2545641)
Very nice, thank you.
A question,
Users For Whom Threads Are Marked Unread
If we want a specific usergroup rather than id's of members is no option.
If I got this right :)

Yes, I considered using usergroups rather than userids for that option, but I felt there would likely be users in the chosen groups who would rather not be included. So, in the end, I felt it wise to only include users individually rather than by usergroup.

However, since you have expressed interest in this, I will update the product soon to give you the option to either include users by usergroup or individually by userid. :up:

Stratis 05-16-2015 03:20 PM

Works fine in vb 4.2.0 pl4
Forums may have a lot of moderators or stuff or other different basic usergroups, I think if another option to select usergroup without excluding and the id option if some needed working only with id will be much better.

Thank you very much.

MarkFL 05-17-2015 03:01 AM

I have made the requested feature update. You can now select users for whom threads will be marked as unread either by usergroup, userid, or both. :D

Stratis 05-17-2015 06:32 AM

Yes Mark very nice. Except Admins - Mods we have PC Advisors, GPS Advisors, Team Support.
That means many users want to know that changes have been made.

After update to vb4.2.0 there is standard "Message Posting Doublepost", this does not make unread post after a double post. You're Mod takes effect there to :)


:up: Excellent

MarkFL 05-17-2015 12:42 PM

Quote:

Originally Posted by Stratis (Post 2545673)
...After update to vb4.2.0 there is standard "Message Posting Doublepost", this does not make unread post after a double post. You're Mod takes effect there to :)...

I just want to point out for others that if in the "Message Posting Doublepost Options" settings you set the option "Timestamp Update" to "Yes" then even without this add-on a merged double-post will mark a thread as unread. :D

I appreciate you letting me know that even if that option is set to "No" this add-on will mark a thread as unread for the desired users.

Stratis 05-17-2015 01:03 PM

I don't like to be of topic :D Timestamp Update is checked, only changes is posting time.
Maybe some other interference causing this to me. Any way your mod fixes this situation :)

MarkFL 05-17-2015 01:10 PM

Quote:

Originally Posted by Stratis (Post 2545694)
I don't like to be of topic :D Timestamp Update is checked, only changes is posting time.
Maybe some other interference causing this to me. Any way your mod fixes this situation :)

I don't see your posts here as off-topic at all. You are posting helpful, relevant feedback which I truly appreciate. :up:

I only ran a quick test on my dev site with this add-on disabled and "Timestamp Update" set to "Yes" and found that a thread was marked as unread when a double-post was merged. Perhaps another add-on you are running is causing your site to behave differently...but in any case, I am happy to know that my add-on fixes this for you. :)

Stratis 05-21-2015 03:09 PM

I had a situation with my server, so now I came back :)

Α suggestion, if you can make this mod to auto exclude the member that edits his post?
If member usergroup in both options is checked than the same member that makes the edit he will see unread his own post to.
:p


All times are GMT. The time now is 11:10 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
  • Page Generation 0.01209 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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