User management & permissions

How can I allow other people to register on my site?

Scenario:
"I want to let people register as members on my site, but I can't find out how to do this. Where's the registration link?"

Solution:
On a default Nucleus install, this functionality has been disabled (for security reasons). But everything has been set up in a way that allows you to easily enable member registration.

Method:

Adding a registration link to a skin part:

  • From the admin area, go to 'Global Settings'. On the next page, scroll down to 'Member Settings'. There you need to enable the 'Allow Visitors to Create a Member Account'. Inspect the other settings under the Member Settings header, because changing those may be important on your install, too.
    Allow visitors to create a member account?  Yes
  • Next, go to "Skins" in your admin area.
    Click on "Skins" in your admin area
    You need to add a link to the createaccount.html file that came with the Nucleus install package. It should be residing in the directory where you installed Nucleus.
    createaccount.html in the directory where you installed Nucleus
    If you don't have the createaccount.html file, please download a new copy of Nucleus to get it.
  • Click on the skin part of the skin you want to edit. In our case, it is the Main Index skin part of the default skin.
    Click on the "Main Index" skin part of the default skin to edit it.
  • Just put the following code somewhere in your skin part to create the registration link and you're done:
    <a href="./createaccount.html" title="Create an account on this site">Register as a site member!</a>

    Put the above code somewhere in your skin part to create a registration link

The advantages of being a member are:

  • Your member name is protected: Noone else can use that name to comment
  • Only members can e-mail other site members via the mail form on Nucleus member pages, except if you enable the 'Allow non-members to send messages' option in the Global Settings.
  • As a site administrator, you can later add self-registered members to blog teams so they can post articles to your Nucleus blogs

Adding a registration link to a login form:

  • Open the file /nucleus/forms/loginform-notloggedin.template and scroll to the bottom.
  • To make the link appear below the form, add a <br /> and the following code in just before the </div> line:
    <a href="./createaccount.html" title="Create an account on this site">Register as a site member!</a>
  • In the default skin, to make the link appear like all the other sidebar links, place the above code as the very first line of the /nucleus/forms/loginform-notloggedin.template file.
  • Save the /nucleus/forms/loginform-notloggedin.template file and if using FTP, reupload to your server.

Note 1:
People that register to be member don't immediately have right to post entries to weblogs. You can even restrict access to the admin area for them. You need to give them those rights by adding them to the team of a blog.

Note 2:
For later versions of Nucleus CMS v3.3x onwards, createaccount.php should be used instead of createaccount.html.

section: User management & permissions | submitted by roel on 2004.Nov.17 | 27617 views

item rate
Total votes: 109 - Rating: 8.08

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10