Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:22:56 GMT
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"> <!-- /* Prevent people just posting quotes
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times. */
// 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
|
|
|
Post by Potter Fans Rock on May 17, 2006 0:40:43 GMT
Which footers does this go in? I tried global and it didn't work, so I assume it must be main footers.....?
|
|
ME!
Moderator
~Remanifesting-Eternal.~
Posts: 778
|
Post by ME! on May 17, 2006 9:20:22 GMT
it doesnt work for the admin..try as a guest or a member.
global footers, or the board footers.
|
|