|
Post by Nick on Aug 27, 2008 22:04:00 GMT -8
I have made a code that only allows certain users into a board that you specify. So please enjoy! Preview: Clicky here!BOARD HEADERS!!!<script type="text/javascript"> <!-- var accessm = " admin|Guest" var falseRedirect = " index.cgi" if(pb_username.match(accessm)) { alert(" You have permission to access this board"); } else { alert(" I am sorry, but you do not have permission to access this board."); location.href= falseRedirect; } // --> </script> Editing:This is who you would like to have access to the board. You separate names with the | symbol. And if you allow guest access, REMEMBER TO CAPITALIZE THE G in the beginning. Also remember these are NOT display names. They are log in names. This is where you would like the user to redirect if they have been denied access to the board. It is set to go to the home page. But you can put "index.cgi?board=general" to divert them to the general board. Just put "board=boardid" after "index.cgi?"If the user has been granted access to the board, this is the message they will get.If the user has been denied access to the board, this is the message they will get.
|
|