Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2016, 04:29 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [Solved] Force Reason in Last edited

Hi!
Many users in my forum make edits to there posts, they don't write the reason for editing. Is there a way to force them to fill the field with reason. I don't know or remember if i am missing something here.

Thanks in advanced.
Reply With Quote
  #2  
Old 06-06-2016, 04:37 AM
alcazarx's Avatar
alcazarx alcazarx is offline
 
Join Date: Jul 2014
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the code or add a plugin that checks if the reason field is set should do it me thinks.
If you ask nicely Master MarkFL will help with a small plugin me guess
Reply With Quote
  #3  
Old 06-06-2016, 05:15 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, Stratis...first please check to see if this product works for you:

Force Reason When Editing Posts
Reply With Quote
  #4  
Old 06-06-2016, 08:15 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys for the answers...
Hi Mark, i tested the mod, it has some issues though that makes it not reliable.
1st) if i press advance edit error comes up
"An error has occurred! You must enter the reason as to why you are editing your post."

This error not supposed to show at this time...

2nd) There is a description that says "Optional" problem if they read it.

Did not check for further tests. Thank you...
Reply With Quote
  #5  
Old 06-07-2016, 01:19 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay Stratis, please give the attached product a try and let me know what you think.

There are 2 phrases:



The first one is what displays under the edit reason field, and the second one is the message shown to users who try to submit an edit without giving a reason.

In the product settings, you can enable/disable the product (you will have to initially enable it), and you can select usergroups who will be exempt from having to give a reason for editing posts.
Attached Images
File Type: png markfl_rer_phrases.png (9.2 KB, 0 views)
Attached Files
File Type: xml product-markflrequireeditreason.xml (9.0 KB, 2 views)
Reply With Quote
  #6  
Old 06-07-2016, 06:44 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very kind of you Mark to make this possible.

It works with some little issue, in quick edit error message does not appear when saved button is pressed. It appears only in advance edit. (in all browsers).

* If you public this mod, it would be very nice if it has an option to put how many minimum characters (words) to accept. Some of the users i am sure they will put a dot or coma or what else

Thank you very much.
Reply With Quote
  #7  
Old 06-07-2016, 10:00 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
Very kind of you Mark to make this possible.

It works with some little issue, in quick edit error message does not appear when saved button is pressed. It appears only in advance edit. (in all browsers).

* If you public this mod, it would be very nice if it has an option to put how many minimum characters (words) to accept. Some of the users i am sure they will put a dot or coma or what else

Thank you very much.
In the quick edit, the error message appears as a tooltip...it was the only method I could get to work.

As far as forcing users to give a valid reason, what would stop users from typing something like "edit reason here" or "xxx yyy zzz"?
Reply With Quote
  #8  
Old 06-07-2016, 12:08 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* Mark do you mean this as tooltip?
Attachment 155106
I see only this... and save does not take effect if field with reason is empty.

* I think if they bother to write more than 5 characters they will consider to write "update" or what else

Just informing you. Thank you very much
Reply With Quote
  #9  
Old 06-07-2016, 02:38 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
* Mark do you mean this as tooltip?
Attachment 155106
I see only this... and save does not take effect if field with reason is empty.

* I think if they bother to write more than 5 characters they will consider to write "update" or what else

Just informing you. Thank you very much
A toottip is a popup box that appears when you hover your mouse over an element (in this case the "Save" button), using the element's "title" attribute. Allowing the button to be clicked in order to produce an alert results in the post being saved no matter what, even if false is returned.
Reply With Quote
  #10  
Old 06-07-2016, 02:54 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought that you see something else...
Now that you mentioned I see the tooltip, something that in all tests my eyes did not fall on, because I was watching editor with the post and the Required field. I will write in the phrase "Required" and the tooltips phrases.
Hope this will be ok, and not users keep trying to save it.

Thank you for your support helping me.
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 12:55 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.06663 seconds
  • Memory Usage 2,283KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete