inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jul 7, 2010 20:52:42 GMT -8
Disable Posting of Smilies (Emotes) by SubDevoTested in IE, FF, Opera, Safari and Chrome. This code prevents users from using smilies in posts (and the quick reply). This includes typing smilie (Emote) text too. On the posting page... The code checks the "Disable Smilies" box and removes it. The smilie row is also removed. In the Quick Reply... A hidden value is added to prevent the smilies from even being used! NOTE: Smilies are only disabled in posts made AFTER this code is installed. Any posts made previously, will still have smilies in them (if they were there). Enjoy!!! SubDevo Location: Global Footer<script type="text/javascript"> /* Disable Posting of Smilies (Emotes) by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
var n=document.postForm,m=document.getElementsByName("message"); if(n&&n.nosmiles){ n=n.nosmiles; n.checked=true;n.parentNode.parentNode.style.display="none"; n=m[0].parentNode.parentNode.parentNode; while(n.innerHTML.indexOf("Add Smilies:")==-1){n=n.previousSibling;} n.style.display="none"; }else if(pb_action=="display"&&m[0]){ m[0].parentNode.innerHTML+='<input type="hidden" name="nosmiles" value="1" />'; } </script>EDIT (6/15/2011):Small edit to prevent code error if the Quick Reply is disabled in General Settings.
|
|