NATS Code Wordpress Plugin

From TMM Wiki
Revision as of 14:25, 8 December 2008 by TMMJoe (talk | contribs) (Added download link, added warning about deactivating plugin.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


The NATS Code Wordpress Plugin lets you use NATS codes in your Wordpress posts. The plugin will replace [nats] in your posts with your NATS code.

Installing on Wordpress

Download the plugin and extract it into your wordpress installation's wp-content/plugins/ directory. In Wordpress, go to the Plugins page, look for "NATS Code" in your Inactive Plugins list, and Activate it.

For more information on Wordpress plugin installation, please see the Managing Plugins page.

Removal

In Wordpress, go to the Plugins page. Look for "NATS Code" in your Active Plugins list, and Deactivate it.

Note: If you deactivate this plugin, you will probably want to go back and change all the links that use it; otherwise, they will have [nats] in the url instead of a NATS code.

Configuring the Plugin

On your Settings page, click the "NATS Code" tab. Fill in the default NATS code and click Save.

Using the Plugin

When you write a link that should pass a NATS Code, insert [nats] as a place holder. For example:

<a href="http://join.example.com/track/[nats]">Click Here</a>

The plugin replaces [nats] with the referring affiliate's linkcode when surfers referred by affiliates visit this page. The plugin replaces [nats] with the NATS code you set in the configuration step when surfers find this page on their own. The plugin can also replace [nats] with a custom NATS code when surfers find this page on their own; place the custom NATS code in [nats] separated from nats by a pipe character. For example:

<a href="http://join.example.com/track/[nats|Custom_NATS_Code]">Click Here</a>

Wordpress Caching

We tested this plugin with both wp-cache and wp-super-cache. It creates a separate cache file for each NATS code it receives from surfers; if you get traffic from a lot of different affliates, generating a cache file for each NATS code may undermine your caching system. Also, if you change the default NATS code, you must clear your caching plugin's cache.

Wordpress Multiuser

We did not test this plugin with Wordpress Multiuser and it may not work. If you use Wordpress Multiuser and you're willing to help us test an improved version of this plugin, please submit a feature request ticket.