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.
seodude :: Apr.01.2008 :: Uncategorized ::
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?
Hmm.. Enabled it but cant see it in admin area? Did i miss something?
@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
@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
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.
@Rodney
It’s right under the “Categories” drop-down on the “Write->Post” page.
Click to open it up ;o
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
@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.
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
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
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.
@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
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
@Chris
Sorry but I don’t have time to downgrade it.
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 ?
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)
@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.
@noname
Excellent ideas!
I will put all these on the todo list.
Thanks seodude
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.
@hanjra
Hm. I’ll try installing it on a new WP install today and see if it works.
@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.
It is still not working dear,,, i cant create base directory…
@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?
Yes I have wp 2.5 and javascript is on. Still not working.
Does it track the number of clicks on the link at all?
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?
@hanjra
If you could give me access I can fix it.
@Rodney
Real redirect.
# of clicks and option to choose 301 or 302 will be in the next update.
302 at the moment.
Thanks,i had bookmarked your page,this is the best pugin that i had searching for.
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?
@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.
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
Great plugin, if u can add some functions such as aff. counting there ll be better… for a aff. system,
Good Job!
@Tony
Yeah you’re completely right. I’ll eliminate that on next release.
@Franca Richard
Thanks! And yes many more functions are in the pipeline.
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?
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
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.
Ok posted a better tutorial video
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!
@Tony
Yeah I just have to find time to get it all done
@36 Tony, Glad there’s a new version coming out, looking forward to your new work!
Hi seodude
i got the same problem as hanjra…
did you come up with a solution?
thx
@ Arc
What browser are you using?
@Arc
It was broken in IE.
I fixed it.
Try it now.
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!
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
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 !
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
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?
Looks like the file wp-affiliate-admin-functions.php is missing.
Wow I suck. I forgot to add that file.
Added now.
zip on wordpress.org updated in 15 mins.
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??”
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!
@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?
@seodude
I guess i was to fast on my reply.. It was only WP Super Cache playing trix on me hehe.
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!
Any ideas on a fix for my issue or should I just fix it by hand?
http://www.seoadventures.com/wp-affiliate#comment-4081
@Michael
I have no idea how to fix it for you. I’m sorry.
@Chad what do you mean in fact??
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
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
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?
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
I tried Chad’s fix also
and it just directs me to my homepage also
Help
Pingbacks/Trackbacks
[…] http://www.seoadventures.com/wp-affiliate […]
[…] 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 […]
[…] http://www.seoadventures.com/wp-affiliate […]
WP-Affiliate Plugins…
This plugin allows you to mask affiliate links with urls of your choosing. Simple categorization is available with more to come!…
[…] http://www.seoadventures.com/wp-affiliate […]
[…] WP-Affiliate - Allows bloggers to monetize their links using a friendlier format. Compatible with WordPress 2.5+, available here. […]
[…] WP-Affiliate - if you want to start promoting affiliate products right from the start than you need this plugin to mask the affiliate links. […]
[…] 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 […]
[…] 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 […]
[…] 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 […]