basicauth

NP_BasicAuth.php

Make individual blog items private.

General Plugin info
Author: Andy Matsubara
Current Version: 0.1
Download: np_basicauth_v0.1.zip
Code: NP_BasicAuth_Code
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?t=6240

Works only for the extend body of an item (only to view the full item on the item page is protected by this plugin)! Please check also NP_AccessControl.

Installing

  1. Copy the code from NP_BasicAuth_Code and save as NP_BasicAuth.php
  2. Upload the file to your plugin directory
  3. Install the plugin...

How to use the plugin

Install the plugin, then set default username/password at the plugin option. At the item option you can set 1), if you use authentication for the item, 2) specific username/password for the item if you would like to make them different from the default.

Note:

  1. This plugin requires Nucleus v3.2+, because it uses item options.
  2. This code is based on http://www.php.net/manual/en/features.http-auth.php. According to this page, it will not work at PHP‘s IIS version or CGI version.
  3. It works only at the Item Page skin part, not the Main Index skin part. If you want to make entire item private, you should write put item contents in the “Extended Body” section.
  4. Usernames/passwords for this plugin have no relation to Nucleus’ usenames/passwords.

Available SkinVars and/or TemplateVars

  • not needed

Options

  • Default User Name
  • Default Password

Tips and Tricks

Wishlist

Bugs

History

  • Version 0.1, released 13 March 2005

Plugin review

NP_BasicAuth version 0.1 works with Nucleus CMS 3.31 - 2007-10-30 kg

 
basicauth.txt · Last modified: 2007/10/30 00:28 by kg