1- Edit the template "registeradult" and insert an HTML form field like this into somewhere before </form>:
PHP Code:
<normalfont>Password to register:<input type="text" name="specialpassword"></normalfont>
(You can spice up the design)
2-Then edit register.php, find:
PHP Code:
if (!$allowregistration) {
eval("standarderror(\"".gettemplate("error_noregister")."\");");
exit;
}
after that add:
PHP Code:
if ($specialpassword!='XXX') {
eval("standarderror(\"".gettemplate("error_inviteonly")."\");");
exit;
}
(Replace X with your special password)
Create a templated named "error_inviteonly" and enter your error message there. This will be displayed if the member didnt enter the correct password for registering.. Notice the password is case sensitive..
Enjoy..