Adding rel=dofollow to RSS imported articles
From Adult Web Scripts Wiki
- Edit your RSS Feed settings by going to Settings > Articles > List Feeds > Edit
- Enter make_links_dofollow in the setting for "PHP Callback Function"
- This will then call the function make_links_dofollow() from your zestoi/libu/articles.php file which you can edit if needed
- If you are using an older version than 1.3.3 then you will need to put this code in zestoi/libu/rssfeeder.php:
<?php require_once(ZLIBX . 'simplehtmldom' . DIR_SEP . 'simple_html_dom.php'); function make_links_dofollow(&$body, &$attribs, $f) { // using code from http://sourceforge.net/projects/simplehtmldom/ // zestoi/libx/simplehtmldom/ $html = str_get_html($body); foreach ($html->find('a') as $link) { $link->rel = 'nofollow'; } $body = (string)$html; } ?>
and then extract the contents of http://downloads.sourceforge.net/project/simplehtmldom/simplehtmldom/1.11/simplehtmldom_1_11.zip to zestoi/libx/simplehtmldom
