Quote:
Originally Posted by Dismounted
In the plugin 'Anonymizer Function', find:
PHP Code:
if (preg_match_all("/(\<a href=\")(.[^\"]*)/i", $text, $matches))
Replace With:
PHP Code:
if (preg_match_all("/(\<a href=YOURDOMAIN.COM\")(.[^\"]*)/i", $text, $matches))
Replace YOURDOMAIN.COM with a domain, for each domain you want to anonymize, add an 'OR'. For example:
PHP Code:
if (preg_match_all("/(\<a href=YOURDOMAIN.COM\")(.[^\"]*)/i", $text, $matches) OR preg_match_all("/(\<a href=DOMAIN2.COM\")(.[^\"]*)/i", $text, $matches))
|
Thanks for the info, Dismounted.
I have applied what you suggested but for some reason it won't anonymize the link at all - it doesn't acess the "referrers.php" file and just acts like a normal link.
BTW, I don't know if it makes a difference or not but if you try to enter:
http://www.YOURDOMAIN.COM you'll get errors like this:
Code:
Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '/' in /includes/init.php(319) : eval()'d code on line 32
So I can only do it as you mentioned above, but again, it won't anonymize the link.
Any other suggestions? ty