[Pmwiki-users] Preventing "comment spam"

Hans design at flutesong.net
Mon Jan 31 09:27:00 CST 2005


Monday, January 31, 2005, 2:55:52 PM, Patrick wrote:
> Another policy (#2 above) would be to have unapproved links displayed as
> links with the rel='nofollow' attribute, and approved links displayed as links
> without rel='nofollow'.  Thus:

>   include_once('scripts/urlapprove.php');
>   $UnapprovedLinkFmt = "<a rel='nofollow' class='unapprovedlink' 
>     href='\$LinkUrl'>\$LinkText</a>";
>   $UrlLinkFmt = "<a class='urllink' href='\$LinkUrl'>\$LinkText</a>";

There is a bug in this formula somewhere.
using it i get for links whch i have not approved:
the site displays as a link, but the link goes to
   "siteurl/$Group/$LinkUrl" It actually reads $LinkUrl,
like http://mydummysite.com/pmwiki/Main/$LinkUrl
if there is a url link before in the page, $LinkUrl gets replaced with
that link.

I tried to set this up to demonstrate on
http://www.pmwiki.org/wiki/Test/UrlApproveTest
but all sites are approved automatically!!


Best, 
~Hans                           




More information about the pmwiki-users mailing list