vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [Solved] Force Reason in Last edited (https://vborg.vbsupport.ru/showthread.php?t=322782)

Stratis 06-06-2016 04:29 AM

[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.

alcazarx 06-06-2016 04:37 AM

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 :rolleyes:

MarkFL 06-06-2016 05:15 AM

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

Force Reason When Editing Posts

Stratis 06-06-2016 08:15 AM

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...

MarkFL 06-07-2016 01:19 AM

1 Attachment(s)
Okay Stratis, please give the attached product a try and let me know what you think. :)

There are 2 phrases:

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

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.

Stratis 06-07-2016 06:44 AM

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 :D

Thank you very much.

MarkFL 06-07-2016 10:00 AM

Quote:

Originally Posted by Stratis (Post 2571723)
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 :D

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"?

Stratis 06-07-2016 12:08 PM

1 Attachment(s)
* 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

MarkFL 06-07-2016 02:38 PM

Quote:

Originally Posted by Stratis (Post 2571727)
* 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. :(

Stratis 06-07-2016 02:54 PM

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. :p

Thank you for your support helping me. :)


All times are GMT. The time now is 10:49 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.01833 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)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