inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 5, 2005 4:01:53 GMT -8
What this code does is stop all users from replying to a thread just by quoting a member. They will need to include their own message as well. <script type="text/javascript"> <!--
// Created by PopThosePringles
// Change this if you wish the message to be a certain length as well. var iMessLen = 0;
// Change the message displayed here. var tWarnMessage = "Make sure your message contains more then just a quote please.";
String.prototype.Q_Spammer = function(){ var re = /(\(\w|\W)+\[\/quote\])/im if(this && re.exec(this) && (this.length == RegExp.$1.length || ((this.length - RegExp.$1.length) < iMessLen))){ alert(tWarnMessage); return false; } else { return true; } } if(location.href.match(/(action=(post|quote|modify)|index.cgi$)/i)){ document.postForm.onsubmit = function(){ if(document.postForm.nextaction.value == "post" && !/user=admin/.exec(document.cookie)){ if(!document.postForm.message.value.Q_Spammer()){ return false; } } } } //--> </script> Footers
|
|