=== Affiliate Hide v1.2 ===
Contributors: Balakrishnan
Donate link: http://corpocrat.com/2009/12/23/affiliate-hide/
Tags: hide affiliate link, wordpress redirect plugin
Requires at least: 2.0
Tested up to: 2.1
Stable tag: 2.9

== Description ==

Affiliate hide is wordpress plugin to hide and redirects affiliate links using custom fields. It automatically generates the mask url and you need not enter affiliate links manually.

== Installation ==


1. Download the plugin, upload to wordpress/wp-content/plugins/ folder and activate the plugin.

2. Go to your blog post, create custom field `redirect_url`(can be any name) and place your affiliate url in the value box.

3:  Go to Admin > Settings > Affiliate Hide, enter the options you want

(i) URL trigger -> Enter what trigger you want. eg. link, jump, go

If you enter `go` then your destination url will be hidden and show like http://yourblog.com/go/273. Once you click this the plugin will redirect to destination site

http://yourblog.com/go/273 -------------> http://example.com

assuming that your blog post has http://example.com setup under custom field with name 'redirect_url`

(ii) Custom Field Name

Enter `redirect_url` assuming the redirect_url is the custom field you have created in your blog post, holding the destination url. 

(iii) Link Text

Indicate what anchor link text you want. eg. Visit website, Download, Visit Author etc. 

Another trick is, if you want to show a image instead of text, place html img tag like <img src="http://example.com/images/download.gif">. No other html codes allowed except img tag.

For more information visit the authors site.

(iv) Trailing slash

If you want trailing slash in the url, select `yes` else `no`

yes -------> http://yourblog.com/go/273/ (with trailing slash)
no --------> http://yourblog.com/go/273 (no trailing slash)

default is no.

Save settings! 

4. Finally open your template files (single.php, archive.php or index.php)

and place the code ......

`<?php
if(function_exists('affiliate_hide')) {
affiliate_hide_print();
}

?>`

Just make sure it is in the loop.
