Hej allesammen.
Jeg har også selv en affiliate side, så jeg vil da lige hjælpe lidt til her. Jeg googlede mig frem til et plugin der fjernede Wikipedia links, og tænkte det da let kunne ændres.
Det er til Wordpress.
Download pluginnet her: http://whatjapanthinks.com/wikipedia-nofollow/
Og gå ind i Plugin -> Editor og find Wikipedia Nofollow i listen oppe i højre hjørne.
Du vælger den ene fil og gør ned i den og retter dette:
function parse_wikipedia_nofollow($matches){ if ( wp_get_domain_name_from_uri($matches[3]) == "wikipedia.org" && wp_has_no_rel_nofollow( $matches[1] ) && wp_has_no_rel_nofollow( $matches[4] ) ) { return '<a rel="nofollow" href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>'; } else { // Do nothing return '<a href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>'; }}
til dette:
function parse_wikipedia_nofollow($matches){ if ( wp_get_domain_name_from_uri($matches[3]) == "DIT AFFILIATE LINK" && wp_has_no_rel_nofollow( $matches[1] ) && wp_has_no_rel_nofollow( $matches[4] ) ) { return '<a rel="nofollow" href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>'; } else { // Do nothing return '<a href="' . $matches[2] . '//' . $matches[3] . '"' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>'; }}
Husk at rette DIT AFFILIATE LINK til din udbyders. F.eks hvis du bruger tradedoubler vil det være tradedoubler.com osv.
Mvh.
Frederik Storm