1. Locking forum by hiding all content.
<script type="text/javascript">
var scriptType="forumSmLock/scriptest";
if(UserLogin!="YOUR_LOGIN")
{
document.getElementById('pun-main').innerHTML('<center>Forum has been locked</center>');
//
}
</script>
2. Locking forum by hiding all forum.
<script type="text/javascript">
var scriptType="forumLock/scriptest";
if(UserLogin!="YOUR_LOGIN")
{
document.write('<center>Forum has been locked</center>');
//
}
</script>
Instead of red we put our login. Instead of blue we put our message, HTML accessible.
PS In these scripts you can find two slashes (//). Instead of these slashes we can put string location.href="http://mybb.ru/";. Instead of mybb.ru in this string we can put other url. Script will redirect to this url all users except you.