inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Dec 23, 2010 17:53:52 GMT -8
I totally re-wrote this code. It does things way different. If you want the old one go here. 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.
|
|