|
Post by Nightwalker on Sept 4, 2010 12:02:00 GMT -6
This code removes the reply, quote, and new thread buttons. If you type in the url to the post page it will give you an error message.
Edit this line /^(user 1|user 2)$/ Make sure there is a | in between each username.
<script type="text/javascript"> /* Disable certain Members from Posting by Nightwalker Do not repost or edit except for in the places specified Global Footers */
var noposters = /^(admin|joemaggio)$/;
// No more editing if(noposters.test(pb_username) && pb_action != "modifypost") { if(document.getElementsByName("message")[0]) { var e = document.getElementsByName("message")[0]; while(e.className != "bordercolor") e = e.parentNode; e.style.display = "none"; if(pb_action == "post") { e=e.parentNode.insertBefore(document.createElement('div'),e); e.innerHTML = '<table width="100%" cellpadding="4" cellspacing="1" align="center" class="bordercolor"><tr><td class="titlebg" width="100%" align="left"><strong>An Error Has Occurred</strong></td></tr><tr><td width="100%" class="windowbg2" vAlign="top" align="left">You do not have permission to post.</td></tr></table>'; } } if(pb_action.match(/^(boardindex|display|search2)$/)) { var i=document.links; for(var x=0;x<i.length;x++){ if(i[x].href.match(/action=(post|createpoll)/)){ i[x].parentNode.removeChild(i[x].nextSibling); i[x].style.display = "none"; } } } } </script>
Edited: May 19, 2011 ~ To remove the "create poll" button.
|
|