Content last modified Tuesday 22 July 2008
hop to #bottom
Categories:
Author:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 3 No
Flag it:
Contact Reason [ ? ]

jgp_authpass

there is already a password protection tag inside textpattern, but you can only have on user with it. so i desided to write a plugin for mulitple user support (get inspired from alice_c).

Usage

<txp:jgp_authpass parameter />

Parameters

These parameters are required:

user
A comma-separated list of users.

pass
A comma-separated list of passwords (must corespondent with userlist).

These parameters are optional:

realm
Welcome message of your protectionscreen. If not set it will print out ‘Private’.

msg
Message of the unauthorized site. If not set it will print out ‘auth_required’.

Examples

<txp:jgp_authpass user="tester" pass="secret" /> <txp:jgp_authpass user="tester,tester2" pass="secret,secret2" /> <txp:jgp_authpass realm="Who are you?" msg="Go away!" user="tester" pass="secret" />

Exclude Article from RSS-Feed

  1. Open /publish/rss.php
  2. Go to Line #65 $Body = htmlspecialchars($Body,ENT_NOQUOTES);
  3. After add: if (preg_match(”/jgp_authpass/i”,$Body)) continue;
  4. Save

Download Old plugin syntax
Download New plugin syntax

German Support

Update
Fixed a bug that opens the password dialog at article listing. now the dialog will be displayed only at the individual article site.

ToDo
Exclude search results as well.

Article Request Count:

Archived [?]: orphaned

Initially released:
2005-02-03
Posted here:
22 Mar 2005
Article modified:
15 Feb 2008

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (2)

Could this be achieved using a separate user/pass db-table? I’m looking for somethin akin to this but database-driven, with 1000+ users/readers (like subscribers to an online newspaper).
Chris Mann:

You can’t download the file!!!!

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site. Get a Gravatar.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
TxP · TxD · GG