[Pmwiki-users] RE: pmwiki-0.6.beta1 released
Jonathan Scott Duff
duff
Thu Jan 22 10:42:07 CST 2004
On Thu, Jan 22, 2004 at 10:34:43AM -0700, Patrick R. Michaud wrote:
> On Thu, Jan 22, 2004 at 04:36:03PM -0000, dave.jackson wrote:
> >
> > To add to the first post, I thought maybe replacing the [[NoWikiWord]]
> > with a bit of script that sets the $WikiWord variable to something
> > unlikely on Entry to the page, and resets it on Exit.
> >
> > Beyond my skill set unfortunately.
>
> ...another solution that adds a "[[nowikiwords]]" directive to wiki pages:
> place the following in local.php:
>
> $BrowseDirectives['[[nowikiwords]]'] =
> 'unset($GLOBALS["LinkPatterns"][800]);';
Grr. I was trying this same thing but was stymied by my lack of
familiarity with PHP syntax:
$BrowseDirectives['[[nowikiwords]]'] =
'$GLOBALS["LinkPatterns"][800] = "";';
didn't quite work :-)
Oh, and since he's doing SQL, he may have instances of
TableName.ColumnName that he wouldn't want to become links. If that's
the case, it would be:
$BrowseDirectives['[[nowikiwords]]'] = '
unset($GLOBALS["LinkPatterns"][700]);
unset($GLOBALS["LinkPatterns"][800]);
';
Or perhaps he'd need to modify $GLOBALS["LinkPatterns"][700]
so that Group/WikiPage would continue to work.
-Scott
--
Jonathan Scott Duff
duff at lighthouse.tamucc.edu
More information about the pmwiki-users
mailing list