Quote:
Originally Posted by jca2112
The default Amazon.com link definition seems to have trouble parsing certain Amazon links.
The preferred (and shortest) url to link to an Amazon product page for affiliates is:
Code:
http://www.amazon.com/dp/ASIN/?tag=yourID
(where ASIN is the 10 digit Amazon product ASIN number and yourID would be the Amazon Affiliate ID)
An example of a working url would be:
Code:
http://www.amazon.com/dp/B00005QGAT/?tag=yourID
Unfortunately AME's Amazon definition parses and rewrites this url as:
Code:
http://www.amazon.com/d/p/B00005QGAT/?tag=yourID
An extra / (slash) is being added between the d and p which breaks the link.
I assume this can be corrected with a different regular expression setting? Does anyone know what the fix would be?
|
AME is designed to accept the URL formats that users will copy and paste from Amazon itself (which I suspect wouldnt normally be this example). You can however customize the replae code how you see fit. Though I have no idea the correct format you need, I suspect something like:
PHP Code:
<a href="http://www.amazon.$p1/dp/$p3/?tag=yourid" target="_blank" title="$ameinfo[title]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" /></a> <a href="http://www.amazon.$p1/dp/$p3/?tag=yourid" target="_blank" title="$ameinfo[title]">$ameinfo[title]</a>
Note that in the above change, I changed:
http://www.amazon.$p1/$p2/$p3/
to
http://www.amazon.$p1/dp/$p3/?tag=yourid
HTHs