[Pmwiki-users] cookbook: obfuscate external links

Jonathan Scott Duff duff
Fri Jun 18 12:26:00 CDT 2004


On Fri, Jun 18, 2004 at 08:04:36PM +0200, Gregory Watts wrote:
> The only thing is: I had to modify a function (FmtWikiLink) in 
> pmwiki.php to make this work.

I believe that the function used in pmwiki is configurable via a
variable $FmtWikiLink that you can set to whatever you desire.  Just
copy the existing FmtWikiLink function to config.php and make the
modifications to the copy, then set $FmtWikiLink to be the name of
that function.

In general, if you think you need to modify pmwiki.php, you're wrong.
If you can't figure a way to do what you want without modifying
pmwiki.php, I bet if you asked the list, someone would have an answer.
(and I bet if pmwiki.php needed modification to do it, Pm would make
the mods and release them in the next version of pmwiki :-)

-Scott
-- 
Jonathan Scott Duff
duff at pobox.com



More information about the pmwiki-users mailing list