Brewsterware

February 22, 2007

Affiliate link cloaking with drupal

Filed under: Marketing — Joe Brewer @ 4:00 pm

So here is my nearly infamous affiliate link cloaker rewritten for Drupal. Usage is pretty much the same as the other link cloakers, but I’ll explain again here anyway as there are a few differences, and a few things you’ll need to bear in mind when using it.

Installation:

Install by putting the two files (alc.module and alc.info) into a directory called alc in your modules directory. Enable the module by clicking the check box next to “Affiliate Link Cloaker” in the module admin page.

If you are not using a WYSIWYG editor, follow these instructions for cloaking your links:

In the link that you want to cloak put the word affiliate. For example, with this link:

<a href=”http://www.netprofitstoday.com/cbae/?a=GmPNICPmNz”>Rosalind Gardners Super Affiliate Handbook</a>

change it to:

<a affiliate href=”http://www.netprofitstoday.com/cbae/?a=GmPNICPmNz”>Rosalind Gardners Super Affiliate Handbook</a>

If you are using a WYSIWYG editor, change it to:

{cloakurl href=”http://www.netprofitstoday.com/cbae/?a=GmPNICPmNz”}Rosalind Gardners Super Affiliate Handbook{/cloakurl}

That’s all there is to it!

If you want to make the text in the status bar change when the user puts their mouse over the link, use the “statustext” tag in the link. For example:

<a affiliate statustext=”Rosalind Gardners Super Affiliate Handbook” href=”http://www.netprofitstoday.com/cbae/?a=GmPNICPmNz”>Rosalind Gardners Super Affiliate Handbook</a>

or if you are using a WYSIWYG editor:

{cloakurl statustext=”Rosalind Gardners Super Affiliate Handbook” href=”http://www.netprofitstoday.com/cbae/?a=GmPNICPmNz”}Rosalind Gardners Super Affiliate Handbook{/cloakurl}

If you find that it doesn’t cloak you links, it is probably because you have HTML filtering turned on. This is found in Administer->Input formats then clicking on Filtered HTML. Turn the filter off by unchecking HTML filter and pressing Save configuration.

I’ve currently only tested with non WYSIWYG editors, but I will get on and do some more testing in the coming week. If you like it or use it, please leave some feedback 🙂

Download it here

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress