- Create Account

Members only posting forum

Forums > Forum Help > Members only posting forum
Author
Message

1) Jon Lloyd Group: Guests
IP: 216.209.--.--
In order to create a "members only" forum, I would need to restrict who can create an account.

Accounts would be set up by administrators only. Is there an option to show the "Create Account" link to administrators only?

i.e. Display "Create Account" when
   - no accounts (forum initialization)
   - an administrator is logged in

Jon Lloyd

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
Hmm, I never thought of that :).

You  could definitely remove the create account link from the logged-out interface (just edit the template), however this won't stop anyone from typing in the URL or posting the form manually. So, you'd also have to edit the account creation section of the forum script to quit if the current user is not an admin. Which means learning a little Perl ;).

I'll  add this to a future revision, but that might be a little while off as I have some major architectural changes in the works.

- Angus.

3) Jon Lloyd Group: Guests
IP: 216.209.--.--
Angus,
   Probably a good chance for me to learn, as you said.
   Since the script already does some conditional things based upon whether a user is logged in or not and whether they are administrators or not, I figured that I could just examine that code and control the "Create Account" link accordingly.

Wish me luck!

Jon Lloyd

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
OK, good luck in that case :).

-  Angus.

5) Jon Lloyd Group: Members
Posts: 60 Joined: 26 Dec 2003 Location: Canada IP: 64.228.--.--
I'll keep you informed... "sharp curves ahead" :-)
Jon Lloyd

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.