[pmwiki-users] How can I set up a private area?
Hans
design at softflow.co.uk
Wed Jan 18 09:48:01 CST 2006
Sunday, January 15, 2006, 9:49:32 PM, H. wrote:
> Better yet, leave Site/AllRecentChanges alone, read-protect that page,
> and create a Main/AllRecentChanges expressly for non-private users.
> Here's some code to do that in config.php:
> $thisgroup = FmtPageName('$Group', $pagename);
> if ($thisgroup != 'MyPrivateGroup') {
> $RecentChangesFmt['Main.AllRecentChanges'] =
> '* [[$Group.$Name]] . . . $CurrentTime $[by] '
> .'$AuthorLink: [=$ChangeSummary=]';
> }
unfortunately i could not get this to work, ALL recent changes get
posted to the page despite this code. But when i created a new page
for it (SiteRecentChanges)(saved a new page with just a single space
in it), it worked:
$thisgroup = FmtPageName('$Group', $pagename);
if ($thisgroup != 'MyPrivateGroup') {
$RecentChangesFmt['Main.SiteRecentChanges'] =
'* [[$Group.$Name]] . . . $CurrentTime $[by] '
.'$AuthorLink: [=$ChangeSummary=]';
}
I wonder if Main.AllRecentChanges is being specially treated.
Best,
~Hans
More information about the pmwiki-users
mailing list