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
- Open /publish/rss.php
- Go to Line #65 $Body = htmlspecialchars($Body,ENT_NOQUOTES);
- After add: if (preg_match(”/jgp_authpass/i”,$Body)) continue;
- Save
Download Old plugin syntax
Download New plugin syntax
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.
Archived [?]: orphaned









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:
Commented (2)
You can’t download the file!!!!
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.