The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to force users to fill in "reason for editing"?

View previous topic View next topic Go down

Solved how to force users to fill in "reason for editing"?

Post by Mounrou on January 5th 2015, 1:11 pm

Hello, so I've read in this thread
http://help.forumotion.com/t128821-how-can-i-add-last-edited-line?highlight=last+edited+by#hidebox
that:

"Unless a post has been made after that post, only when you edit without a reason will it show that it was edited.
Once you edit the first post when a post has been made, then it will show.
If no posts were made after your post, it will only display if you fill in the editing reason."

So how do I forced users to fill in the reason for editing?

Thank you.


Last edited by Mounrou on January 6th 2015, 8:55 am; edited 1 time in total

Mounrou
New Member

Posts : 2
Reputation : 1
Language : Chinese

http://appropriation-zero.canadian-forum.com/

Back to top Go down

Solved Re: how to force users to fill in "reason for editing"?

Post by _Twisted_Mods_ on January 5th 2015, 2:51 pm

i may be wrong but i dont think their is a option on for this i looked and could not find one... but if someone doent find it for you .. you can goto

acp>modules>javascript management

turn on javascript then save

create a new javascript

set to in all pages

Code:
$(function() {
  var rsmsg = '*You Must Enter A Reason To Send';
if($('input[name="edit_reason"]').val() == ""){
        $('input[name="post"]').attr('disabled','disabled');
        $('input[name="edit_reason"]').after(' <br><span id="edrmsg" style="color:red;font-weight:bolder;">'+rsmsg+'</span>');
    }
    else{
        $('input[name="post"]').removeAttr('disabled');
        $('#edrmsg').remove();
    }
$('input[name="edit_reason"]').keyup(function(){
  if($('input[name="edit_reason"]').val() == ""){
        $('input[name="post"]').attr('disabled','disabled');
        $('input[name="edit_reason"]').after(' <br><span id="edrmsg" style="color:red;font-weight:bolder;">'+rsmsg+'</span>');
    }
    else{
        $('input[name="post"]').removeAttr('disabled');
        $('#edrmsg').remove();
    }
}) 
});

submit

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: how to force users to fill in "reason for editing"?

Post by Mounrou on January 6th 2015, 8:54 am

Well I'd hope for something less technical,  but this seems to be working.

 Thanks, man.

Mounrou
New Member

Posts : 2
Reputation : 1
Language : Chinese

http://appropriation-zero.canadian-forum.com/

Back to top Go down

Solved Re: how to force users to fill in "reason for editing"?

Post by Derri on January 6th 2015, 9:02 am

Topic solved and archived


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum