inherit
155191
0
Apr 23, 2013 14:09:16 GMT -8
frm
194
June 2010
frm
|
Post by frm on Mar 27, 2013 8:41:31 GMT -8
northernireland.boards.net V5 version
On V4 of my board I used to have the script (below) which meant than when someone quoted they HAD put a comment with it.
On V5 version of my Forum this is not so.
Is it possible to have this as PLUG-IN please or if it already exists could someone point me in the direction of the ready made plug-in please??
<script type="text/javascript"> <!--[/p][p]// Created by PopThosePringles[/p][p]// Change this if you wish the message to be a certain length as well. var iMessLen = 0;[/p][p]// Change the message displayed here. var tWarnMessage = "Make sure your message contains more than just a quote please.";[/p][p]String.prototype.Q_Spammer = function(){ var re = /(\[/p][quote author=".+\d+\"](\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; } }[/quote][p][/p][p]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; } } } }[/p][p]//--> </script>
Thank you
Frm
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 27, 2013 13:31:03 GMT -8
yeah that got all messed up because it had ubbc stuff in it and you didnt put the code IN a code tag for it to be ignored.
can you recopy that back in there please?
|
|
inherit
155191
0
Apr 23, 2013 14:09:16 GMT -8
frm
194
June 2010
frm
|
Post by frm on Mar 27, 2013 13:43:22 GMT -8
Hi Wormopolis
Code Tags? How do I go about putting the script into CODE TAGS please.?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 27, 2013 13:58:28 GMT -8
in the ubbc editor, surround the code you are trying to paste with [code] [/code]
|
|
inherit
155191
0
Apr 23, 2013 14:09:16 GMT -8
frm
194
June 2010
frm
|
Post by frm on Mar 27, 2013 14:19:37 GMT -8
Like this?
<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 than just a quote please.";
String.prototype.Q_Spammer = function(){ var re = /(\[quote author=.+\d+\](\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>
|
|