spaceace wrote:will this work with a hook session handler? this is how i make one of my forums private and i have to add every user manually when someone gets invited. when you go to the site, all you see is a login prompt. i just don't want to go through all the edits to find that it won't work
If I'm right, you hook out the session setup to a new function to disable everyone who is not logged in.
I don't understand why have you hooked up the start of session,
but in any case the way is not gonna work, because not the registration form but the login screen will come.
You should make an exception with the registration page, and allow the registration only by invitation.
ps.: If your site is by invitation only to register the mod turns off the register, and activate the registration form only for invitations.