![]() |
Dynamic Amazon Links
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 |
Thank you for taking this up. I've been trying to get the previous one to work, but unless the parsings perfect (in that it doesn't break in any scenario) then I'm reluctant to deploy it on my site.
downloading/testing. edit: It's not working for me. links are not getting processed at all. Looks like lower case [url] aren't processed. thanks arn |
Great - but does it work with vbAnonymizer installed?
|
Quote:
i made a little update and tested it. now the script will also replace [url] and [url="xxx"] instead of [URL] and [URL="xxx"]. @redlabour: i'll test it this evening to get it working. Best regards, Felxi |
Quote:
example: [url="http://www.amazon.com/Logitech-970155-0403-V20-Notebook-Speakers/dp/B0009WKBGC"]these[/url] arn |
Quote:
PHP Code:
|
Quote:
arn |
Seems to work dude, good job!
|
Great release. I assume this works with the 3.6-series?
|
Quote:
|
[high]* projectego clicks install :)[/high]
|
Another issue.
It seems that using this hack removes vbulletin's auto truncate feature in long urls. For example: Without the hack, long urls are shortened. Example: h_ttp://www.amazon.com/Microsoft-Offi...5878848&sr=8-1 Once you install the hack, the url ends up being very long, and not auto truncated. h_ttp://www.amazon.com/Microsoft-Office-2004-Student-Teacher/dp/B0001WN16M/ref=pd_bbs_1?ie=UTF8&s=software&qid=1195878848&sr= 8-1 |
Reserved
|
Quote:
Hey weeno, thanks for the report. the truncate feature is now added to the script. In general the displayed link e.g. [url ] amazon-link [ /url] will get [url="new-amazon-link" ] amazon-link [ /url], so the displayed post-text isn't changed :). Greetz, felxi |
Wow!
I've tried a few of these before, both for vBulletin and WordPress. This is the first one that actually WORKS for me. Well done! :) I made a slight modification to the plug-in that might be useful to others... In functions_amaxzon_links.php, find at lines 6-7: Code:
/* Code:
/* Code:
amazon.(de|com) Code:
amazon.(ca|com) |
two more "issues"
1. It breaks this link: http://www.amazon.com/review/product...owViewpoints=1 since it has an ABIN number but is not meant to go to the product itself 2. It doesn't handle [url=http://www.link.com]text[/url] (without quotes) Regarding #1, in a related note, I might even prefer the urls all to be redirect urls via Amazon rather than any in the more abbreviated ABIN version... since that way the final url is as intended by the origanal poster, and your referal code is no longer embedded in the final destination url. But that might be a personal preference. thanks arn |
hi weeno,
the issues are been solved. thank you for reporting. regards, felxi |
Quote:
Do you forsee any problems if I modify it to use the redirect code on all links, even those with ABINs in them? arn |
reserved
|
Quote:
|
Hey wenno,
I think the best conversion you can get is using ref=nosim, because the link will be a direct product link in this case. Greets, Felxi |
Quote:
I think you'll find many members do such a thing. |
Quote:
Code:
amazon.(ca|com) Code:
amazon.(co.uk|com) |
Quote:
Code:
amazon.(ca|com) Code:
amazon.(co.uk|com) |
It seems this mod isn't compatible with the vbanonymizer or vbseo or something lol. When I installed it - it stopped my viewtopic pages from being displayed.
uninstalled. |
I'm guessing it's this line I'd have to edit to get it to work....
Code:
if(preg_match_all("/\[url\=(?:\")?(http:\/\/(?:[A-z0-9\.]+)?amazon\.(de|com|ca|co.uk)\/(?:.+))(?:\")?](.+)\[\/url\]/iU", $text, $out)) { |
it's working together with vbseo without any problemes. i gonna check it this evening.
|
working for .com (albeit without truncation of links) but can't get it going for .co.uk at all.
|
Quote:
Does anybody use this with VBSEO? I also need it for .co.uk :) VinylJunky |
anyone had any joy with co.uk?
|
as well as .co.uk for amazon, i'm wondering would it be possible to add in support for other affiliate networks, either in this or a separate product?
For example, www.buy.at use their own standardised URLS to track affiliate referrals, so it should be straightforward enough(?) to add the appropriate prefix to any www.game.co.uk or www.play.com links: Game.co.uk: http://game-online.at/AFFILIATEID?DU...4/Mass-Effect/ Play.com: http://playcom.at/AFFILIATEID?DURL=h...2&title=135786 other affiliate networks just need a variable appended to the URL... |
anybody?
|
I'm interested in the same kind of mod. Something simple that will append affiliate ID's to selected URLs.
|
I'd be interested in using it if
|
Me too, i have been looking around for a plugin for play.com but no look so far. I will also be installing vbseo soon so it would be great if it worked with that.
|
Quote:
|
I am on vb 3,7 and it is not working for me. Please port this to vb 3.7
Also; I have a book review section where the amazon link is posted in a custom field. Can you please add a function to make this work for custom GARS fields? |
this works well for the usa - i'd really like to do amazon.co.uk too though (i tried to change the .ca support to .co.uk but it doesn't work) It shouldn't be too hard to get it going though for someone with some php skills (i'm really no good and this stuff!)
also is their a way to get this to work on all the amazon links on my forum? as i understand it this only adds the code to newly posted links as opposed to links that have been posted in the past. |
Anyone got the code hacks to swap out .de for co.uk?
|
Would it help if some cash was offered to get this coded up?
|
All times are GMT. The time now is 06:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|