Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gabriel Dobersch

    (@dobersch)

    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.

    Michael Shinosky

    (@michael-shinosky)

    That’s works until the plugin needs updating….

    Thread Starter Gabriel Dobersch

    (@dobersch)

    Of course, it’s just a workaround until the plugin developer provides such an option – less-than-ideal but working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Simple Ads Manager] Optionally add rel="nofollow" to ad links’ is closed to new replies.