[pmwiki-users] UserAuth question
H. Fox
haganfox at users.sourceforge.net
Thu Jan 19 19:19:04 CST 2006
On 1/19/06, rene beekman <r at raakvlak.net> wrote:
> i'm setting up a website where i don't want regular visitors to be able
> to, or even see the edit, page history, etc links
Like this?
http://www.pmwiki.org/wiki/?skin=light&?view=site
I'll be uploading a new version (0.15.0) of the Light Skin shortly.
Once it's there, give it a try and set
$EnableCMSMode = 1;
in your config.php.
There's code to do the following unless you're logged in:
* Switch to the "site" view. See above link. If you're at all
handy with CSS you can modify the appearance, even drastically.
The demo views provide some examples to get you started.
* Allow only website-related actions. ('browse','print', 'search',
'edit','login', 'loginadmin','loginupload','rss', 'atom'). All
other actions are ignored.
* Exclude PmWiki-oriented pages from searches.
* Remove the rel='nofollow' attribute so search engines will
index your links to external sites.
* Eliminate the time-of-day from date-formatted strings.
* Create a Main.AllRecentChanges page. It is particularly useful for
RSS and Atom web feeds. PmWiki-Oriented changes are excluded.
(They're in Site.AllRecentChanges when you're logged in.)
I'm working lots of other CMS-related stuff into the Light Skin. For
example there's an "Admin Bar" with some admin-related links
(Reference Count, Manage Users, Clear History, Delete Page, Change
Attributes, Rename Page) and various built-in Login/Logout links.
If you don't want to use the Light Skin you can at least see some code
that does what you're looking for.
Hagan
More information about the pmwiki-users
mailing list