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 Sept 4, 2010 13:39:02 GMT -8
This code makes it so that if your name is on the list and you click "Post Message" on the posting page it will give you an alert saying that you don't have permission to post. It also removes the quick reply for the people on the list.
Global or Board Footer:
<script type="text/javascript"> /* Disable certain Members from Posting by Nightwalker May repost if header stays intact Global Footers */
var noposters = /^(user 1|user 2)$/;
if(noposters.test(pb_username)) { if(pb_action == "post"){ document.postForm.onsubmit=function(){ alert("You do not have permission to post."); return false; } } if(!document.postForm && document.getElementsByName("message")[0]){ var e = document.getElementsByName("message")[0]; while(e.className != "bordercolor") e = e.parentNode; e.style.display = "none"; } } </script>
|
|