Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

Affiliatize Me

Skildring

This plugin searches links on your site for the domain that you specify in the settings, adds your affiliate ID, and makes those links open in a new tab when clicked.

The plugin produces XHTML Strict compliant code and is search engine optimized (SEO).
This is done using JavaScript’s window.open()-function. It adds only a few lines of vanilla JavaScript to the page, and does not require any external libraries like jQuery.

Most other plugins perform a hack by altering the target parameter (i.e. <a href="http://somewhere.example" target="_blank">). That method is not XHTML Strict compliant.

This plugin handles the links client-side, which lets search engines follow the links properly. Also, if a browser does not support JavaScript, the plugin is simply inactive, and does not result in any errors.

Credits
Inspired by the External Links in New Window / New Tab plugin.

Known bugs
The plugin conflicts with other plugins that change the links» `onClick´ attribute.

Skjermbilete

  • Affiliatize Me settings

Installasjon

  1. Copy the plugin to /wp-content/plugins/
  2. Activate the plugin.
  3. Change the settings in Settings->Affiliatize Me.

Omtalar

There are no reviews for this plugin.

Bidragsytarar og utviklarar

“Affiliatize Me” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

1.0

Ready for production.