Well, my search fu may be weak, but I have not been able to find in this thread any info about how to modify the replacement code for amazon links so that they include an affiliate ID. I have the mod installed and it seems to be working fine, taking the link showing in the address bar of any amazon product page and adding the little amazon icon with a link and the product description with a link.
For instance, here is a page I would like to link to,
Code:
http://www.amazon.com/RAM-Universal-X-Grip-Holder-1-Inch/dp/B0055PH0XA/ref=pd_bxgy_e_img_y
Here is the regular expression given in the definition,
Code:
http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)
and here is the replacement expression,
Code:
<a href="http://www.amazon.$p1/$p2/$p3/" target="_blank" title="$ameinfo[title]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" /></a> <a href="http://www.amazon.$p1/$p2/$p3/" target="_blank" title="$ameinfo[title]">$ameinfo[title]</a>
The associate id has this format "&tag=XXXXX-20" in links that work with Amazon. I can't figure out how to modify that replacement expression to include the id... I am sure it is something simple, but I don't know how all this RegEx stuff works. I would very much appreciate any help!