Posts RSS Comments RSS 60 Posts and 104 Comments till now

WP-Affiliate PHP Blog Affiliate Marketing Wordpress Plugin

Wordpress 2.5 Required

1. Download the plugin EDIT: Now in Wordpress.org, get it here

2. Unzip it into your Wordpress plugins directory

3. Enable it in your plugins tab

4. Add a base category for your links. This will be used to create the base of your redirect url.

5. Once the category is created, click add link and add a link! Link is the affiliate link and Anchor Text is the text that should be used to create the tail of the redirect url.

Example:

Add Base Category: Cake

Add Link:

Link: http://allrecipes.com/Recipes/Desserts/Cakes/Main.aspx

Anchor Text: White Cream Cake

Result Url: http://www.seoadventures.com/cake/white-cream-cake

Make sense? I hope so! Otherwise post here :)

This plugin allows you to mask affiliate links with urls of your choosing. Simple categorization is available with more to come!

Post bugs, questions, suggestions in the comments or write me at jstroh at gmail dot com.

If you want the copy to clipboard link to work in firefox follow these intstructions:

How To Enable Firefox Copy To Clipboard

Change Log

0.6 - Commission Junction Integration v1

0.5 - Click Tracking v1

0.4 - IE Fixes

0.3 - Much faster.

0.2 - Dynamic collapsible lists, jQuery support, animation, bug fixes.

0.1 - Initial release.

76 Responses to “WP-Affiliate PHP Blog Affiliate Marketing Wordpress Plugin”

  1. on 02 Apr 2008 at 6:11 amnoname

    I do not much understand what is it for - it will just mask some external links as my internal ones? Or it also monitors clicks etc.? Or it allow me to make my web to have and monitor affilates?

  2. on 02 Apr 2008 at 6:41 amSpitkicker

    Hmm.. Enabled it but cant see it in admin area? Did i miss something?

  3. on 02 Apr 2008 at 10:21 amseodude

    @noname

    It turns something like:
    http://www.anrdoezrs.net/click-2535247-10383572

    to this:
    http://www.gemaga.com/web-hosts/omnis-1700-gb-of-space-cheap-hosting

  4. on 02 Apr 2008 at 10:25 amseodude

    @Spitkicker

    It requires Wordpress 2.5.

    I just installed it on this blog and it worked.
    http://www.dpbolvw.net/click-2535247-10542583
    http://www.seoadventures.com/skin-store/save-10-on-all-skinstore-products

  5. on 02 Apr 2008 at 6:06 pmRodney

    After you enable it (in Wordpress 2.5), where in the wordpress admin area do I find the place where you add new links?

    I can’t find the area of the dashboard where I would see a screen like your screenshot above.

  6. on 02 Apr 2008 at 6:20 pmseodude

    @Rodney

    It’s right under the “Categories” drop-down on the “Write->Post” page.

    Click to open it up ;o

  7. on 02 Apr 2008 at 6:53 pmJon

    Thanks!
    I installed it and figured out how to use it. I love the idea.

    A couple things:
    •Copy to clipboard doesn’t work on a Mac with Firefox or Safari.
    •It would be nice if the resulting links had quotes around the url and the _blank

  8. on 02 Apr 2008 at 8:53 pmseodude

    @Jon

    1. Sorry, I have no idea how to fix that in Javascript it was hard enough to get it to kinda work in FF in windows. If anyone has a clue how to enable this for MAC let me know.

    2. Yeah I was just having trouble with escaping multiple quotes in php and javascript and ajax lol. If you are in the wysiwyg editor and you send to editor it will automatically put in the quotes but I’ll be sure to fix that in the next release.

    Glad you’re enjoying it, the interface will get much more clean in the near future.

  9. on 06 Apr 2008 at 8:50 pmJeff

    Hi,

    I bet I’d love your plugin too. However, I’m very stupid. The ‘Base Category’…is this just where the masking link is stored ?

    Link: I put my affiliate link that I need to mask here, right ?

    Anchor Text: I put what I want to be displayed on MouseOver here, right ?

    Told you I was stoopid!! :)

    Thanks…cool plugin

  10. on 07 Apr 2008 at 1:04 amJeff

    I can’t get it to work for the life of me. Had to revert back to using php redirect. ;(

    Everything installed fine, copy to clipboard worked. But when the link is clicked I get an web page error. Its like its not finding the local file that it writes for itself.

    Any ideas?

    Oh 2.5 is installed

  11. on 07 Apr 2008 at 10:49 amj.s.

    Does this work with ebay rover links? I use their rss feeds and wonder how it works with that.

    I haven’t upgraded to 2.5 yet, but when i do i’ll definitely give it a try.

  12. on 07 Apr 2008 at 2:16 pmseodude

    @Jeff

    Base Category is something you need. It’s the base “directory” of your redirect.

    So if your base dir was “Pie and Cake” then the base of your redir url would contain “pie-and-cake/”

    Link is the actual affiliate link you want to mask

    Anchor Text is the text you want to be in your url.
    If you put “20% off a dog and a pie” in category “Pie and Cake” your url would be:
    (baseurl)/pie-and-cake/20-off-a-dog-and-a-pie

  13. on 07 Apr 2008 at 5:12 pmChris

    Well I’m not sure if I want to upgrade to 2.5 just yet… too many plugins I use haven’t been updated yet.

    In WP 3.3 I get an error :(

  14. on 07 Apr 2008 at 10:13 pmseodude

    @Chris

    Sorry but I don’t have time to downgrade it.

  15. on 08 Apr 2008 at 2:11 amEmmanuel

    Firebug shows me an error when activating the plugin :

    jQuery(”#wpanav”).treeview is not a function
    [Break on this error] jQuery(”#wpanav”).treeview(jtree_settings);

    Any idea ?

  16. on 08 Apr 2008 at 2:41 amnoname

    If I could ask for some easy to do features, i would recommend settings for follow/no-follow, 301/302 for each link and also click monitoring (the best would be internal, but now we can use Google Analytics outbound links hack)

  17. on 08 Apr 2008 at 3:10 amseodude

    @Emmanuel

    I’m so sorry, I forgot to add the new files!

    Updated!

    God I can’t believe I did that…

    15mins from now wordpress.org will update with the new zip.

    Sorry again for all those who had errors.

  18. on 08 Apr 2008 at 3:11 amseodude

    @noname

    Excellent ideas!

    I will put all these on the todo list.

  19. on 08 Apr 2008 at 5:37 amEmmanuel

    Thanks seodude :)

  20. on 08 Apr 2008 at 7:46 amhanjra

    I just installed it, but whenever i try to create the base directory, it doesnt happen anything.. i used different browsers, but no result, I click on “Add Base Directory”, but no further action…. I hope you will help me.

  21. on 08 Apr 2008 at 9:13 amseodude

    @hanjra

    Hm. I’ll try installing it on a new WP install today and see if it works.

  22. on 08 Apr 2008 at 9:26 amseodude

    @hanjra

    Blah! I forgot to test the new menus without any categories. Fixed now.

    Wordpress.org updated in 15 mins.

    Refresh your write page for it to work on yours.

  23. on 08 Apr 2008 at 10:03 amhanjra

    It is still not working dear,,, i cant create base directory…

  24. on 08 Apr 2008 at 2:46 pmseodude

    @hanjra

    I just upgraded a blog to WP 2.5, installed the plugin and it worked fine.

    Do you have Javascript enabled and WP 2.5 installed?

  25. on 08 Apr 2008 at 9:34 pmhanjra

    Yes I have wp 2.5 and javascript is on. Still not working.

  26. on 09 Apr 2008 at 2:41 pmRodney

    Does it track the number of clicks on the link at all?

  27. on 09 Apr 2008 at 3:17 pmRodney

    Does this just “mask” the links with a javascript hover, or does it create a “redirect”. If it’s a redirect, is it a 302 or a 301 redirect?

    Does it count the number of clicks on the link?

  28. on 10 Apr 2008 at 4:17 amseodude

    @hanjra

    If you could give me access I can fix it.

  29. on 10 Apr 2008 at 4:18 amseodude

    @Rodney

    Real redirect.

    # of clicks and option to choose 301 or 302 will be in the next update.

    302 at the moment.

  30. on 11 Apr 2008 at 2:47 pmDavid

    Thanks,i had bookmarked your page,this is the best pugin that i had searching for.

  31. on 12 Apr 2008 at 1:24 amTony

    Hey. Just trying out the plugin and really like it so far.
    But one question, when activated i see twice as many queries to the database? Is it just get_num_queries(); thats messing with me or does WP-Affiliate use ~20-30 queries?

  32. on 12 Apr 2008 at 7:35 amseodude

    @Tony

    Do you mean on the Write->Post page or when you’re actually viewing a post?

    It does absolutely nothing when viewing a published post.

  33. on 12 Apr 2008 at 12:21 pmTony

    Well im tying it out on a local server and if i deactivate all plugins i have ~20 queries, and with only WP-Affiliate acivated i got 44 queries viewing the main paga or a post. Sorry for my english :)

  34. on 12 Apr 2008 at 6:19 pmFranca Richard

    Great plugin, if u can add some functions such as aff. counting there ll be better… for a aff. system, :) Good Job!

  35. on 12 Apr 2008 at 8:59 pmseodude

    @Tony

    Yeah you’re completely right. I’ll eliminate that on next release.

  36. on 12 Apr 2008 at 8:59 pmseodude

    @Franca Richard

    Thanks! And yes many more functions are in the pipeline.

  37. on 12 Apr 2008 at 10:20 pmmr.eims

    owh ok i got it..its because i use wp 2.3
    haiyo..dissapointed.. i dont have time to upgrade wp yet.
    you dont keep the previous version that support wp2.3?

  38. on 13 Apr 2008 at 6:45 pmkB

    Hi

    i got it working but, when i click on the cloaked link, it acctually takes me to the result url… what am i doing wrong?

    thx

  39. on 13 Apr 2008 at 8:14 pmseodude

    Posted a tutorial video but obviously it’s too small to see much of anything lol. If you click through to youtube you can watch it fullscreen though.

    I’ll make another easier to read one soon.

  40. on 13 Apr 2008 at 9:58 pmseodude

    Ok posted a better tutorial video :)

  41. on 14 Apr 2008 at 2:31 amTony

    Thanks for the fast update!
    From what i have seen it works great now.

    Any plans on some sort of admin page for editing the links? Would love to se something like the edit page of “Shortcut Macros” plugin :)

    And btw thanks for a nice plugin!

  42. on 14 Apr 2008 at 3:43 amseodude

    @Tony

    Yeah I just have to find time to get it all done :)

  43. on 14 Apr 2008 at 5:25 amFranca Richard

    @36 Tony, Glad there’s a new version coming out, looking forward to your new work!

  44. on 15 Apr 2008 at 4:55 pmArc

    Hi seodude

    i got the same problem as hanjra…

    did you come up with a solution?

    thx

  45. on 15 Apr 2008 at 5:22 pmseodude

    @ Arc

    What browser are you using?

  46. on 15 Apr 2008 at 6:40 pmseodude

    @Arc

    It was broken in IE.

    I fixed it.

    Try it now.

  47. on 15 Apr 2008 at 7:20 pmMicheal

    I’m currently having an issue with the plugin, but it maybe “by design”. I currently use the permalinks structure, but since I use a Windows hosts, I have to have the index.php tagged on. The plugin does not pick this up.

    I was just now writing a post, and decided to try a link first, and that’s when I noticed the problem. I’ll show the link i created that doesn’t work, and the one that does.

    Doesn’t: http://www.moverton.com/plugins/akismet
    Does: http://www.moverton.com/index.php/plugins/akismet

    I would love to start using this plugin, but am I out of luck by using a Windows host and not being able to use true permalinks? A fix would be great!

  48. on 16 Apr 2008 at 2:37 amhanjra

    thanks a lot dear, now it worked,,, today i installed your latest release and it has created base category. I try it and tell you further if i find any error :) cheers

  49. on 16 Apr 2008 at 9:09 amEmmanuel

    Big error in version 0.5 :

    Warning: require_once(wp-affiliate-admin-functions.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web14/web/wp-content/plugins/wp-affiliate/wp-affiliate.php on line 203

    Some files are missing !

  50. on 16 Apr 2008 at 10:16 amVikki

    Hi Everytime I load this it gives me a blank page when I try to access wp-admin?? Can someone let me know what I’m doing wrong cheers

  51. on 16 Apr 2008 at 10:27 amBryan

    Help:

    Using IE 7 and get the following errors when I try to install WP - Affiliate 0.5.

    Warning: require_once(wp-affiliate-admin-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/j3yp2bra/public_html/profitmart101_blog/wp-content/plugins/wp-affiliate/wp-affiliate.php on line 203

    Fatal error: require_once() [function.require]: Failed opening required ‘wp-affiliate-admin-functions.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/j3yp2bra/public_html/profitmart101_blog/wp-content/plugins/wp-affiliate/wp-affiliate.php on line 203

    Am I missing something?

  52. on 16 Apr 2008 at 11:26 amBryan

    Looks like the file wp-affiliate-admin-functions.php is missing.

  53. on 16 Apr 2008 at 1:06 pmseodude

    Wow I suck. I forgot to add that file.

    Added now.

    zip on wordpress.org updated in 15 mins.

  54. on 17 Apr 2008 at 12:12 amhanjra

    hi dear i have this error

    Not Found
    The requested URL /wordpress/pimp/download was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    “Does it support external links for masking??”

  55. on 17 Apr 2008 at 1:01 amTony

    Damn you work hard! :)
    So im sorry i have to report some db querie problems..
    I get well over 120 extra queries when i activate the click statistics, and im on a slow shared host so i gotta watch my queries hehe.
    Keep up the good work mate!

  56. on 17 Apr 2008 at 7:10 amseodude

    @hanjra

    You need to use a full url.
    /wordpress/pimp/download needs a http://www.blahblah.com before it

    @Tony

    Well I’m sorry about that. It’s just in the admin panel yes?

  57. on 17 Apr 2008 at 8:24 amTony

    @seodude
    I guess i was to fast on my reply.. It was only WP Super Cache playing trix on me hehe.

  58. on 17 Apr 2008 at 3:41 pmChad

    Drove me nuts but you MUST update your .htaccess to support permalinking redirects to get this to work (or at least I had to)… great plugin, might add this to your web page to clear up confusion. Jeff this is what prevented you from linking properly:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Looking forward to seeing more great plugins!

  59. on 18 Apr 2008 at 8:04 pmMicheal

    Any ideas on a fix for my issue or should I just fix it by hand?
    http://www.seoadventures.com/wp-affiliate#comment-4081

  60. on 19 Apr 2008 at 7:18 pmseodude

    @Michael

    I have no idea how to fix it for you. I’m sorry.

  61. on 21 Apr 2008 at 9:07 amhanjra

    @Chad what do you mean in fact??

  62. on 21 Apr 2008 at 10:08 amBryan

    Hello:

    I really, really want this to work on my blog but am having a problem redirecting the link.

    Everything looks good I can add a category then add a link and then add it into the editor but when I try to go to the link that is generated I get an error page up. My link looks like: http://profitmart101.com/profitmart101_blog/profitmart/secret-to-getting-google-ads-free-just-67 as an example.

    Any suggestions?

    Sincerely,
    Bryan

  63. on 21 Apr 2008 at 10:09 amBryan

    Opps forgot when I tried Chad’s fix:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    It just redirected me to my home page

    Sincerely,
    Bryan

  64. on 05 May 2008 at 2:04 pmgery

    I get the following errors! I checked, and every file is in the folder:

    */ require_once(”wp-affiliate-start.php”); function wp_affiliate_post_menu() { global $wpdb,$wp_affiliate_prefix; $category_form = ”

    “; $category_list = get_category_list(); if($category_list) echo get_category_list(); else echo ”
    “;//”No categories! Add at least one in order to add links!”; echo ”
    “; } function wp_affiliate_create_menus() { add_meta_box(”wp_affiliate_link_div”,”WP-Affiliate Links”, “wp_affiliate_post_menu”,”post”,”normal”); } if (is_admin()) add_action(’admin_menu’, ‘wp_affiliate_create_menus’); /** * All functionality for adding a category. * */ require_once(”wp-affiliate-category-functions.php”); /** * All functionality for adding a link. * */ require_once(”wp-affiliate-link-functions.php”); function wp_affiliate_rewrite_rules($rules) { global $wp_rewrite,$wpdb,$wp_affiliate_prefix; $table_name = $wpdb->prefix . $wp_affiliate_prefix.”_links”; $results = $wpdb->get_results(”SELECT * FROM “.$table_name,OBJECT); $new_rules=Array(); if($results) { foreach($results as $result){ $the_slug = substr(get_category_slug($result->category).”/”.$result->slug,1); $new_rules[$the_slug.”$”]=’index.php?wpaaction=wp_affiliate_redirect&wpaslug=……………………….

    Can anybody help?

  65. on 08 May 2008 at 3:11 amJohan

    Hi Thanks for the wp-affiliate plugin. It’s just what I wanted but I am getting a 404 error from this link it created:
    http://helpmetoblog.com/writeabook/write-a-book-under-28-days
    Any ideas on what I am doing wrong.
    I had a look at my htaccess and it looks like Chad’s.
    Do I need to make any changes to the htaccess

  66. on 08 May 2008 at 6:36 amwizman

    I tried Chad’s fix also
    and it just directs me to my homepage also

    Help

  67. Pingbacks/Trackbacks

  68. […] http://www.seoadventures.com/wp-affiliate […]

  69. […] menunjukkan “keikhlasan”. Ye lah tu. Oleh itu, guna lah affiliate link masking seperti Wp Affiliate ini. Download dulu dan ikuti langkah2 yang diberikan. Untuk yang tak paham Bahasa Inggeris, ini aku […]

  70. […] http://www.seoadventures.com/wp-affiliate […]

  71. on 15 Apr 2008 at 11:45 pmwordpressdaddy.com

    WP-Affiliate Plugins…

    This plugin allows you to mask affiliate links with urls of your choosing. Simple categorization is available with more to come!…

  72. […] http://www.seoadventures.com/wp-affiliate […]

  73. […] WP-Affiliate - Allows bloggers to monetize their links using a friendlier format.  Compatible with WordPress 2.5+, available here. […]

  74. […] WP-Affiliate - if you want to start promoting affiliate products right from the start than you need this plugin to mask the affiliate links. […]

  75. […] static redirects easy, there’s a relatively new plugin currently  in development called the WP-Affiliate plugin that it is even more powerful. It requires WordPress 2.5 or later, but it allows for multiple […]

  76. on 03 May 2008 at 10:00 amSEO News 4 » Seokratie

    […] Dazu habe ich auch eine kurze, aber knackige Geschichte: Ich habe auf einem meiner neuen Projekte WP Affiliate installiert. Es macht aus partners.webmaster…-Links schöne Links wie […]

  77. […] wasting time, and not a reliable links. And, with the little help of Wordpress plugin, called WP Affiliate, you can easily create your own affiliate […]

Trackback this post | Feed on Comments to this post

Leave a Reply

Close
E-mail It