Version: 1.05, by felxi
Developer Last Online: Dec 2010
Category: Miscellaneous Hacks -
Version: 3.6.x
Rating:
Released: 11-21-2007
Last Update: 11-24-2007
Installs: 92
Uses Plugins
Additional Files Is in Beta Stage
No support by the author.
Description
This Hack will easily rewrite all amazon links whitin the posts to your associate id. You can add your amazon.de and amazon.com associate id, links to both amazon stores will be replaced with the right id, it works fine with multilanguage boards.
vBulletin
vB 3.6.x working
vB 3.5.x working
updating
just upload the functions_amazon_links.php from the zip and don't forget to insert your amazon ids.
Change Log
25/11/2007 v1.05
- support for [ url=xxx]yyy[ /url]
- replacement for tag=xxx and ref=xxx in non asin links
- small fix for /preview/ links
24/11/2007 v1.04
- [url]amazon-link[ /url] long amazon links will be shorten vb like
23/11/2007 v1.03
- [url] and [url="xxx"] will be repleaced
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
This appears to be working good for us thus far on version 3.8.5... with the co.uk modification.
New links to Amazon.com, Amazon.ca and Amazon.co.uk are rewriting with our associate ID, but old links are not. In order for old links to work, we are having to edit and save with no actual edit being made.
Of course this is our initial findings... and we will have to verify that there are no other conflicts.
I just got this installed and running on 3.8.x and it seems to work great
one concern though... I'm new to the whole affiliate linking thing and I noticed it's adding "ref=nosim" to some of the links.
I didn't know what this was so I looked it up, people used to add it because it would take users directly to the desired products as opposed to a similar product's page.
Amazon has depreciated this tag a few years ago (hence why I'd never seen it) and they state that link that include it should still work but they don't recommend anyone use it anymore.
there is concern among some that the "ref=nosim" tag will at some point stop working and invalidate existing links.
it'd be nice if there were an updated version of this plugin that takes newer link protocol into account... or if someone with a good knowledge of amazon affiliate links could point out what needs to be changed in the code to get rid of that tag.
it looks like it's used in 2 places with the following line:
Version 4.0.8 has caused me some problems (this is my first try so I don't know if it worked in previous versions of VB4).
Firstly I had to manually create the plugin - the XML upload throws an error. This was no problem - just look at the XML file and it is very obvious what to enter when you do 'Add new plugin'. However....
The function only worked for a new post. I believe this is to do with cache. Therefore after this initial posting is made, this line in the plugin no longer does anything:
Secondly the regex seems to be case sensitive when searching for URL, despite the /i at the end. Therefore as given it will not find
Code:
URL=
and (sod's law) the post I was testing on had it in upper case. I assume the user typed it in manually. I haven't been able to fix that yet, hence this post. Can a regex expert please help and make the function search for both URL and url?
This appears to be working good for us thus far on version 3.8.5... with the co.uk modification.
New links to Amazon.com, Amazon.ca and Amazon.co.uk are rewriting with our associate ID, but old links are not. In order for old links to work, we are having to edit and save with no actual edit being made.
Of course this is our initial findings... and we will have to verify that there are no other conflicts.
do you have the full code of this working, i still cantget .com and .co.uk to work together