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 doesn't seem to be working for me in 3.7.4, and I've tried the hack to get Amazon UK links added, and those won't work either. Maybe I'm doing something wrong?
Hey, I installed the script and its working so far... but when editing a post and clicking on the submit button it turns into the loading symbol for infinite time... but the post already got edited. I contacted the the vB support and they told me its because of this hack
Can somebody confirm that he is having the same problems? Or a fix for this? Please help, I need this working asap!
Regards,
rmd1
Quote:
Originally Posted by Hidden_Gamma
This doesn't seem to be working for me in 3.7.4, and I've tried the hack to get Amazon UK links added, and those won't work either. Maybe I'm doing something wrong?
try out the code that was posted a page ago. that one worked for me with co.uk
Okay, this wasn't working for me in 3.7.4 PL1, and now I've gone to 3.8.0 -- do I have any hope of getting it to work in that version?
Also, I have one further question about the hack on the last page to get it to work with Amazon.co.uk, what exactly do you mean by 'add the bit in the preg_match to work with this'? I'd like to give it one last go before I throw my hands up on this entirely.
You can easily add .ca, .de or any two level .tld like .co.uk to this by adding:
$associate_id_ and then the .tld with the . replaced by _
$associate_id_co_uk is the UK one.
And of course add the bit in the preg_match to work with this.
Code for the file is thus:
PHP Code:
<?php function amazon_links($text) { $associate_id_co_uk = 'buro9-21'; // or leave empty $associate_id_com = 'buro9-20'; // or leave empty
Can someone tell me what exactly I am supposed to write into the preg_match section to get this hack to work for my multilevel domain affiliate links if I am using more than one? I have affiliate IDs for .co.uk and .co.jp, but I don't really understand how to write in more than one according to this example, I also can't seem to figure out where I am supposed to put my .de domain in the preg_match section.
Also, I seemed to have discoveed that on my forum (running 3.8.1 PL1) that this plugin will only add the affiliate ID to URLs if they are added raw, but if an Amazon URL is added to text, like this, for example: I Love Lucy, it won't add the Afilliate ID.
Thanks for any help. I really hope this plugin can be updated.