Gabriel Dobersch
Forum Replies Created
-
Of course, it’s just a workaround until the plugin developer provides such an option – less-than-ideal but working.
No I didn’t want to hack the plugin because then I’d have to patch it everytime a new version comes out. My request was more of a feature suggestion to to programmer of the plugin. Maybe I’ll put my hands on this if I get around to it – but it’s not a prio 1 for me at the moment.
It seems that there are already some lines of code that aim towards this issue – but as yet they are commented out. So I hardcoded the nofollow attribute into the source.
In file “ad.class.php” (main plugin directory) around the lines 100 and 500 there are lines where the actual banner link gets build:
$aStart = "<a $outId href='{$ad['ad_target']}' target='$target' ".">";to which I just added the nofollow attribute like so:
$aStart = "<a $outId href='{$ad['ad_target']}' rel='nofollow' target='$target' ".">";That does the trick for me as I do not need the option to activate and deactivate rel=nofollow on a per banner basis.
If you are using a permalink structure without a trailing slash, like:
/%category%/%postname%
a trailing slash will be added to the first-page-link of the pagination, like:
/category/catname/
regardless of the chosen permalink structure, when it should be just:
/category/catname
hope that helps,
Gabriel