Force Users to post reason for editing
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Other
Page 1 of 1 • Share
Force Users to post reason for editing
_Twisted_Mods_- Posts : 101
Reputation : 3
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 37
Location : USA
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
Similar topics
» Prevent Non Usa Users From Registering
» [IDEA]Notepad for all users to use.
» Force Classic View on Mobile Devices
» add fiend button in post profile
» remove time from post and topic list
» [IDEA]Notepad for all users to use.
» Force Classic View on Mobile Devices
» add fiend button in post profile
» remove time from post and topic list
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Other
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|