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
Require Edit Reason Details »»
Require Edit Reason
Version: 1.2, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 06-09-2016 Last Update: 06-11-2016 Installs: 16
Uses Plugins Auto-Templates
Translations  
No support by the author.

Overview:

This product will allow you to require users to give a reason for editing posts, and you may set the minimum allowed characters in the reason, and define a list of edit reasons which they can select from a drop-down menu. This list of suggested reasons will appear for all users, whether required to give a reason or not, as an aid. If you have suggested reasons for moderators defined, then anyone who has moderating privileges in the forum in which a post reside will see these reasons in the drop-down menu as well.

You may select usergroups whose members will be exempt, and in addition members of usergroups who have "Show edited by note on edited messages?" set to "No" in the "General Permissions" section of the Usergroup Manager" will be exempt, since requiring a reason would defeat that setting.

Also, anyone editing a post within the time limit defined in the setting "Time to Wait Before Starting to Display 'Last Edited by...'" under "Message Posting and Editing Options" will be exempt.

A user required to give an edit reason will see something like this in the quick editor:



And something like this in the advanced editor:



Updates:

Version 1.1:
  • Added setting for suggested reasons for moderators/administrators.
  • Drop-down menu section titles now phrased.

Version 1.2:
  • Fixed bug causing interference with activity stream.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

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 - Require Edit Reason v1.2.zip (5.9 KB, 46 views)

Screenshots

File Type: png markfl_rer_quickedit.png (44.6 KB, 0 views)
File Type: png markfl_rer_advancededit.png (9.3 KB, 0 views)
File Type: png markfl_rer_acp.png (70.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Dragonsys, elsa23, RichieBoy67

Comments
  #2  
Old 06-10-2016, 05:45 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine, in vb4.2 (tested in all browsers).

Thanks a lot
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 06-10-2016, 06:26 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 Stratis View Post
Works fine, in vb4.2 (tested in all browsers).

Thanks a lot
Thank you, Stratis, for making the initial suggestion, and for all of your support and patience with testing all along the development process/incremental updates...your input was greatly appreciated and invaluable! :up:
Reply With Quote
  #4  
Old 06-11-2016, 11:34 PM
BrettC Frontier BrettC Frontier is offline
 
Join Date: Jun 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to add in a "special" group segment where Moderators and Administrators have their own special dropdown box segment in addition to the normal users segment?

So as per your image here... the moderators would see:

-- Select an Option --
Correct Spelling/Grammar
Add Relevant Content
Remove Controversial Content
Attach Image Inline
Wrap LaTeX In Tags
-- Moderators --
Reason for Edit 1
Reason for Edit 2
Reason for Edit 3
Reason for Edit 4
Reason for Edit 5

Normal (non-special/non-elevated) users would see just the Select an Option portion with out the moderators portion. I think that would complete this addon. :-)
Reply With Quote
2 благодарности(ей) от:
Alan_SP, MarkFL
  #5  
Old 06-12-2016, 01:12 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 BrettC Frontier View Post
Would it be possible to add in a "special" group segment where Moderators and Administrators have their own special dropdown box segment in addition to the normal users segment?

So as per your image here... the moderators would see:

-- Select an Option --
Correct Spelling/Grammar
Add Relevant Content
Remove Controversial Content
Attach Image Inline
Wrap LaTeX In Tags
-- Moderators --
Reason for Edit 1
Reason for Edit 2
Reason for Edit 3
Reason for Edit 4
Reason for Edit 5

Normal (non-special/non-elevated) users would see just the Select an Option portion with out the moderators portion. I think that would complete this addon. :-)
Great suggestion! :up:

Update - Version 1.1:
  • Added setting for suggested reasons for moderators/administrators.
  • Drop-down menu section titles now phrased.
Reply With Quote
  #6  
Old 06-12-2016, 09:39 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update.
How can i make these dimensions smaller?

Attachment 155137
As you see its very wide

Thanks
Reply With Quote
  #7  
Old 06-12-2016, 11:31 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 Stratis View Post
Thanks for the update.
How can i make these dimensions smaller?

Attachment 155137
As you see its very wide

Thanks
Is it doing that in all browsers, or just one?
Reply With Quote
  #8  
Old 06-12-2016, 01:05 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Mark I thought i mention that, in IE11 is huge space.
In the other browsers it has a little space but its ok.
Reply With Quote
  #9  
Old 06-12-2016, 01:33 PM
BrettC Frontier BrettC Frontier is offline
 
Join Date: Jun 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a bug in the template_render_output hook.

While the mod is active, the template_render_output hook code causes activity.php to fail to render forum ID's, Forum Names, and text previews from the .\vb\activitystream\view\perm\forum\post.php file. The new thread data still functions.

In which, it is apparently interfering with this line:
Code:
$foruminfo =& vB::$vbulletin->forumcache[$threadinfo['forumid']];
on post.php at line 88.

I've not a clue how those two correlated, but when i disable that hook from the addon of Require Edit Reason, activity.php renders new post text and forum ID/name without issue.
Reply With Quote
Благодарность от:
Stratis
  #10  
Old 06-12-2016, 03:20 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 Stratis View Post
Sorry Mark I thought i mention that, in IE11 is huge space.
In the other browsers it has a little space but its ok.
IE...what can I say...it does its own thing.

Quote:
Originally Posted by BrettC Frontier View Post
You have a bug in the template_render_output hook.

While the mod is active, the template_render_output hook code causes activity.php to fail to render forum ID's, Forum Names, and text previews from the .\vb\activitystream\view\perm\forum\post.php file. The new thread data still functions.

In which, it is apparently interfering with this line:
Code:
$foruminfo =& vB::$vbulletin->forumcache[$threadinfo['forumid']];
on post.php at line 88.

I've not a clue how those two correlated, but when i disable that hook from the addon of Require Edit Reason, activity.php renders new post text and forum ID/name without issue.
Thank you...I have fixed this issue.

Update - Version 1.2:
  • Fixed bug causing interference with activity stream.
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 04:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05052 seconds
  • Memory Usage 2,356KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_code
  • (5)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (7)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • 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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete