Commission Junction Module for ALinks

September 13, 2007 by martin  
Filed under afffiliate, make money

ALinks is a very useful plugin for Wordpress that allows the blog owner to define keywords and assign links to those keywords. The plugin then adds those links in realtime to the blog post which has several advantages. The first is that you do not have to edit several posts if a link to a website has changed. The same holds true if you want to change the advertisement.

Lets assume you promoted an iPod summer special which recently ran out. Instead of editing the links in your blog posts you simply change the url of the keyword once from within your Wordpress admin panel.

We all know that context related advertisement works much better than banners that are placed somewhere on the outside of the article. Let me give you another example to explain what Alinks really does.

The first step is to select a keyword which can be one word or a phrase and use one of the modules available to add a link. Modules are tiny forms that are used to create special links. There is one module for general links which would mean that you can enter a url and the keyword would automatically be converted to a link to that url.

Other possibilities are Clickbank, Linkshare and Amazon links that can be added as easily. One thing that was missing though was a module for Commission Junction links which I created and added to my list of modules.

Commission Junction uses a combination of links and images that have to be added to be valid and earn for you. My Alinks Commission Junction module lets you add the image url and the link url so that both are added when you add new keywords.

alinks commission junction module

I’m using this Alinks module to create specific links to keyword phrases and it is working very fine. The only problem is that there is some whitespace after the link because of the image that is added afterwards. The image is only 1 pixel in size but the space is visible.

Read More:

Download Alinks Commission Junction Module
Download Alinks Plugin

Comments

11 Comments on "Commission Junction Module for ALinks"

  1. david on Fri, 14th Sep 2007 4:51 pm 

    I tried installing this plugin, and got the following error:

    Fatal error: Cannot redeclare cjKeyphrases::$requiredDefines in /home/chicanon/public_html/dealfark/wp-content/plugins/alinks/modules/cj/mod.php on line 15

    I’m using:
    Apache version 2.2.4 (Unix)
    PHP version 5.2.3
    MySQL version 5.0.27-standard-log
    wordpress: 2.2.2

    Please let me know if you have a solution.

  2. Sridhar Katakam on Mon, 24th Dec 2007 10:00 am 

    I get the same.

    Fatal error: Cannot redeclare cjKeyphrases::$requiredDefines in /home/.flossie/srikat/scriptful.com/sri-addons/scripts/wordpress/wp-content/plugins/alinks/modules/cj/mod.php on line 15

  3. Sean on Mon, 31st Dec 2007 5:23 pm 

    I took a look at the mod.php code, and it needs to be changed a bit to fix the fatal error. In the /cj/mod.php script, you will see this:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’);
    var $requiredDefines = array(’url’);

    It needs to be changed to:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’, ‘url’);

  4. Sean on Mon, 31st Dec 2007 5:27 pm 

    I took a look at the mod.php code, and it needs to be changed a bit to fix the fatal error. In the /cj/mod.php script, you will see this:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’);
    var $requiredDefines = array(’url’);

    It needs to be changed to:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’, ‘url’);

  5. linking, alinks on Wed, 27th Feb 2008 5:26 pm 

    [...] are other aLinks modules available, including a module that allows you to link to your Commission Junction merchants. If you are a savvy programmer, you might be able to come up with your own module. If you do so, [...]

  6. kch on Sun, 6th Apr 2008 10:21 pm 

    I’m having the same problem…other modules install correctly, but not this one.

  7. ChuckMcB on Wed, 14th May 2008 1:36 pm 

    Got the same error myself. The fix seems to be to open the .zip file and edit the file mod.php with a text editor.

    Change these lines:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’);
    var $requiredDefines = array(’url’);

    To read:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’,'url’);

    Then all seems fine.

    HTH

  8. ChuckMcB on Wed, 14th May 2008 1:39 pm 

    Got the same error myself. The fix seems to be to open the .zip file and edit the file mod.php with a text editor.

    Change these lines:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’);
    var $requiredDefines = array(’url’);

    To read:

    var $name = ‘cj’;
    var $requiredDefines = array(’img’,'url’);

    Then all seems fine.

    HTH

    (ps. couldn’t press the “Sumbit Comment” button here in firefox, IE worked fine)

  9. Jon on Fri, 27th Jun 2008 2:41 pm 

    To fix:
    open mod.php in WordPad

    change the two lines:
    var $requiredDefines = array(’img’);
    var $requiredDefines = array(’url’);

    to:
    var $requiredDefines = array(’img’, ‘url’);

    upload mod.php and mod.xml to your directory, …./alinks/modules/cj/

  10. alinks modules on Wed, 13th Aug 2008 10:21 pm 

    [...] Comm&#105ss&#105on &#74unct&#105on [...]

  11. Sheryl on Tue, 11th Nov 2008 10:33 pm 

    Did you ever figure out the fix to the white space after the links?

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!