[Pmwiki-users] RE: pmwiki-0.6.beta1 released

Patrick R. Michaud pmichaud
Thu Jan 22 10:50:52 CST 2004


On Thu, Jan 22, 2004 at 11:42:01AM -0600, Jonathan Scott Duff wrote:
> 
> 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 :-)

Yes, because the rest of the PmWiki code expects $LinkPatterns[800] to
be an array, not a scalar.

> 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.

Good point.  It's probably syntactically easier to unset 
$LinkPatterns[700] and add a new entry than to try to modify 
the entry itself.


BTW, I have the [[nowikiwords]] directive enabled at 
http://www.pmichaud.com/wiki/Development/NoWikiWords, if anyone
wants to try it out.

Pm



More information about the pmwiki-users mailing list