|
Post by Nightwalker on Jul 1, 2010 22:39:42 GMT -6
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; } } var ubc = document.getElementsByTagName("td"); for(c = 0; c < ubc.length; c ++){ if(ubc.item(c).className == "windowbg2" && ubc.item(c).innerHTML.match(/>Add Tags:</)){ ubc.item(c).parentNode.style.display = "none"; } } } // --> </script>
Edited: 12/21/10 ~ To remove UBBC from post page
|
|