Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Aug 16, 2010 13:49:29 GMT -8
This code will not allow users to use things like bold Size or most of the other things people use to make their posts hard to read. If they put any of it in the post they will get an alert.
CB: Yes
Editing: You can edit what the code lets you do. Edit this line. If you want to add something put it were the red H is. Remember to add a | after it.
\[(center|right|blockquote|move|b|left|H(glow|size|color|shadow)[^\]]+)\]/i)){
Footer: <script type="text/javascript"> <!-- /* Alert If Not using Default Posting Template by Nightwalker */
if(document.postForm){ document.postForm.onsubmit=function(){ if(document.postForm.message.value.match(/\[(center|right|blockquote|move|b|left|(glow|size|color|shadow)[^\]]+)\]/i)){ alert("please use the default posting template when you post on this board."); return false; }}} //--> </script>
|
|
|
Post by Wormopolis on Oct 3, 2010 16:31:02 GMT -8
Note to users of this code:
This code will overwrite the submit function of the posting form. if you have other codes that attachevent to the submit function, this code will overwrite their attach. If you want to use this code, it will need to go above any other code that attaches to the submit.
at least until Night changes it to use the attach event routines.
|
|