Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mark Thread Unread On Edit Details »»
Mark Thread Unread On Edit
Version: 2.2.2, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 05-15-2015 Last Update: 03-12-2017 Installs: 22
Uses Plugins
Translations  
No support by the author.

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.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Mark Threads Unread On Edit v2.2.2.zip (4.3 KB, 27 views)

Screenshots

File Type: png markfl_mtuoe_acp.png (60.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-14-2017, 04:18 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
Yes, I use two comptes for tests
I made some test and finally, it's not a conflit with the hack that change the date of post but :
for exemple, if "Database Read Marking Limit" is 30 days, only edited posts that are published between today and 30 days ago are marked as unread
a post maked 31 day ago and edited, is not marked as unread ...
Yes, that's because there is nothing in the db (forumread and threadread tables) for a thread older than your marking limit, so the product cannot have any effect on it.
Reply With Quote
  #23  
Old 02-14-2017, 04:43 PM
elsa23's Avatar
elsa23 elsa23 is offline
 
Join Date: Dec 2014
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
I have a post made in 2015 (events of an artist) that I update with new element and I want to mark it unread after edit
so I can't do that with your hack and i can't bump it with this hack because :
https://vborg.vbsupport.ru/showpost....3&postcount=82

Thanks Mark
The only solution : I change the date of the post to today for exemple, and edit it, it will mark as unread

It's not logique because a lot of members had liked the post in the past (the post with the new date of today) but I can not do otherwise

I want to keep the likes, that's why.
Reply With Quote
  #24  
Old 02-14-2017, 04:53 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Marking a thread as unread (given that database marking is being used) depends on a thread being within the limit. Otherwise, you need to bump the thread with a new post.
Reply With Quote
Благодарность от:
elsa23
  #25  
Old 02-16-2017, 01:38 PM
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Location: USA
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this hack
Reply With Quote
  #26  
Old 03-13-2017, 01:28 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 2.2.1:
  • Disabled on CMS and Blog scripts to avoid potential db errors.
Reply With Quote
  #27  
Old 03-13-2017, 06:08 AM
elsa23's Avatar
elsa23 elsa23 is offline
 
Join Date: Dec 2014
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I had updated it on local, but when I quick edit a post, it turn without sending, I reload the page, the post is edited but not show as unread
when I return to prévious version, it works again
Reply With Quote
Благодарность от:
MarkFL
  #28  
Old 03-13-2017, 06:27 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
Hi, I had updated it on local, but when I quick edit a post, it turn without sending, I reload the page, the post is edited but not show as unread
when I return to pr?vious version, it works again
Thanks for letting me know...it's been one of those days.

Update - Version 2.2.2:
  • Fixed plugin typo.
Reply With Quote
Благодарность от:
elsa23
  #29  
Old 03-13-2017, 05:54 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
I'm a tad confused by this. By default, other than Administrators, aren't OPs (Original Posters) the only ones who can edit their (OP) posts? Why would you want to exclude any usergroup from seeing an edited post/thread as unread? I know that I overthink things at times; okay, a lot; but as stated, this has me confused.
Reply With Quote
  #30  
Old 03-13-2017, 06:02 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
I'm a tad confused by this. By default, other than Administrators, aren't OPs (Original Posters) the only ones who can edit their (OP) posts? Why would you want to exclude any usergroup from seeing an edited post/thread as unread? I know that I overthink things at times; okay, a lot; but as stated, this has me confused.
Moderators can also edit posts, as well as any usergroups you have given this permission.

Some of your staff members may not want to be "bothered" by having threads marked as unread when a post has simply been edited, so you have the option to control who (by usergroup and by username) for whom this happens.
Reply With Quote
  #31  
Old 03-13-2017, 06:09 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Some of your staff members may not want to be "bothered"
Ah, now that helps put this MOD in context (for me). Thank you.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:45 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.04862 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete