<div class="gmail_quote">On Tue, Aug 25, 2009 at 11:38 PM, adam overton <span dir="ltr">&lt;<a href="mailto:a@plus1plus1plus.org">a@plus1plus1plus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br>
i would like to have pmwiki convert certain commonly appearing names<br>
(or terms, or orgs) into a links to the respective person&#39;s external<br>
website.<br>
</blockquote><div><br>If there is something in common between the people&#39;s external web-sites then it could be more elegant than this, but a simple set of rules sounds like what you&#39;re looking for...<br><br>$foo = array(&#39;John&#39; =&gt; &#39;<a href="http://www.abc.com">http://www.abc.com</a>&#39;, &#39;Sally&#39; =&gt; &#39;<a href="http://www.def.com">http://www.def.com</a>&#39;);<br>
foreach ($foo as $name =&gt; $site) {<br>   Markup(&#39;/\b&#39;.$name.&#39;\b/&#39;, &#39;%newwin%&#39;.$site.&#39;%%&#39;, ...);<br>}<br><br>Does that work?  Obviously this requires it all to be set up in config.php and I don&#39;t know if that&#39;s what you&#39;re looking for, but maybe it&#39;ll be a start...<br>
<br>-Peter<br></div></div>