Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 26, 2010 1:40:27 GMT
This is a code I quickly wrote which hides the nav-bar from guests, and you can make it do it to a member as well. This is to go into the global headers or any the board you want this to affect. <script type="text/javascript"> <!-- //Created by Luke Mansell copyright. // coderCommunity.proboards.com// This next bit is to stop guests from seeing the nav-bar if(pb_username=="Guest"){ document.getElementsByTagName("td")[3].style.display = "none"; document.write("<center>To view our nav-bar please login or register</center>"); } //You can ban a member from seeing the nav bar if(pb_username==" markl"){ document.getElementsByTagName("td")[3].style.display = "none"; } //--> </script> Change the red to the username you want banned from seeing the nav-bar. The rest shouldn't be touched.
|
|