[pmwiki-users] Discuss/talk link help
H. Fox
haganfox at users.sourceforge.net
Thu Jul 26 00:08:34 CDT 2007
On 7/25/07, Ian MacGregor <lists at imacgregor.com> wrote:
> I'm going to go with Hagan on this as he made some good points and it works
> fine as is:
Now refined and improved, with its own recipe page at
http://www.pmwiki.org/wiki/Cookbook/SimpleDiscussLink
There's also a new section for CMS-type installations, since -Talk
pages should probably be kept private.
... you can largely ensure your -Talk pages are inaccessible with
if (! CondAuth($pagename, 'edit')) {
$SearchPatterns['default'][] = '!-Talk$!';
if (preg_match('/-Talk$/', $pagename)) {
$basename = preg_replace("/-.*\$/", '', $pagename);
Redirect($basename); }
}
Hagan
More information about the pmwiki-users
mailing list