Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Sept 22, 2005 19:42:34 GMT
Global Footer This will stop anyone from modifying certain members posts except for the member themselves. List the usernames in the red, seperate each one with a comma as shown.
<script type="text/javascript"> <!-- var blocked = ['admin','user1','user2'];
obj = document.getElementsByTagName('a'); for(i=0; i<obj.length; i++) { for(j=0; j<blocked.length; j++) { if(obj.href.match(/action=modifypost/) && obj.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.previousSibling.getElementsByTagName('a')[1].href.match(blocked[j]) && !document.cookie.match(new RegExp('user='+blocked[j], 'gi'))) { obj.style.display = 'none'; } } } //--> </script>
|
|