User Access Control

From ZebraDots Support

Jump to: navigation, search

Contents

[edit] Overview

In some cases, you may want to restrict access to certain pages or areas of your website to registered users. This is an advanced configuration that can be completed in a few steps.

[edit] How to Enable User Logins

First, we will need to make it possible for users to log in.

  1. First, log in to The Website Manager
  2. Second, click the Edit Website icon
  3. Click the Settings tab and locate the "Login" option under "General Settings"
  4. Set the "Login" option to Enabled
  5. Set the "Signup" option to Disabled (so that users cannot create accounts by themselves)
  6. Click "Save" to save your changes
  7. Click "View" to see your website − you should see a form for users to log in
  8. If you do NOT see the login form, then you will need to edit your template file using these steps:
    1. Determine the name of the current template (e.g. "simple")
    2. Return to the The Website Manager main menu
    3. Click the File Explorer icon
    4. Navigate to the "public_html/templates/" folder, then open the folder of your active template (e.g. "public_html/templates/simple")
    5. Locate index.php and click the pencil icon to edit it
    6. A window will open; click the Text tab to edit the contents of your template's index file
    7. Paste this PHP code into the template file where you want your login box to appear:
      require_once("templates/greenery/login.php");
      (The path to the file "login.php" may need to be altered depending on the location of your template folder)
    8. Refresh your window to confirm that the login appears in the correct location; if not, try again
    9. Please note that corrupted template files can disable your website until corrected, so be careful when editing and make a backup of the file before you edit if you aren't an experienced PHP/HTML user

[edit] How to Restrict Access to Certain Pages

  1. First, log in to The Website Manager
  2. Second, click the Edit Website icon
  3. Go to the Pages tab and locate the page you wish to hide from public view
  4. Under "Actions", click the Settings icon (which looks like a notepad)
  5. Change "Visibility" to Private
  6. On the right side, indicate which users or groups are allowed to view this page
  7. Save your changes

[edit] Creating User Accounts

  1. First, log in to The Website Manager
  2. Second, click the Edit Website icon
  3. Go to the Access tab
  4. Create a new user by filling out at least these fields:
    • Username
    • Password
  5. You can also assign the user to a group -- this is optional, but grouping your users together may be easier than granting access to individual accounts
  6. Save your changes and notify the user of his or her account information so they can log in to your website using the form on the home page
Views
Personal tools