Amazon BBcode Media Site [Deleted]

Will this work only with amazon.com or also with .uk .de or else?

Would a rewrite be possible for working with amazon.de as well?
 
Without seeing what I need I would guess yes that it can work...if you put together a list of .de .uk or whatever they have as links in a code block here I will give it a whirl.

The only reason I didn't include them in the first place is that I am in the US and don't often come across links to other TLDs when the site in question also has .com.
 
Much appreciate your kind feedback :)

Would be glad to see it working with .de as well. Cause this would bring me much closer to migrating my current vB to xenForo :)
 
Much appreciate your kind feedback :)

Would be glad to see it working with .de as well. Cause this would bring me much closer to migrating my current vB to xenForo :)
Not a problem at all.

Cool cool, well then gimme some links so that we can get you on XF and make your server happy :-)
 
What exactly would you need to get this working with the .co.uk?

Here's an example of a link to a Kindle.

Image only:

Code:
<a href="http://www.amazon.co.uk/gp/product/B007OZO03M/ref=as_li_ss_il?ie=UTF8&camp=1634&creative=19450&creativeASIN=B007OZO03M&linkCode=as2&tag=spurscommunit-21"><img border="0" src="http://ws.assoc-amazon.co.uk/widgets/q?_encoding=UTF8&ASIN=B007OZO03M&Format=_SL110_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=spurscommunit-21" ></a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B007OZO03M" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Image and text

Code:
<iframe src="http://rcm-uk.amazon.co.uk/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=spurscommunit-21&o=2&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=B007OZO03M" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
 
What exactly would you need to get this working with the .co.uk?

Here's an example of a link to a Kindle.

Image only:

Code:
<a href="http://www.amazon.co.uk/gp/product/B007OZO03M/ref=as_li_ss_il?ie=UTF8&camp=1634&creative=19450&creativeASIN=B007OZO03M&linkCode=as2&tag=spurscommunit-21"><img border="0" src="http://ws.assoc-amazon.co.uk/widgets/q?_encoding=UTF8&ASIN=B007OZO03M&Format=_SL110_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=spurscommunit-21" ></a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B007OZO03M" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Image and text

Code:
<iframe src="http://rcm-uk.amazon.co.uk/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=spurscommunit-21&o=2&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=B007OZO03M" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>


That helps out a bunch, the only other thing that would help a lot is a list of a few direct links to products since those are used to build the embed and since amazon has a lot of variation and I already see one variation in your example that the regex doesn't cover it

#amazon\.com\/(gp\/offer\-listing|[a-z0-9-]+\/dp)/(?P<id>[a-z0-9]+)/([^\s]+)?#i

It would be best to have as many different structured links as possible so we don't have to do a bunch of updates to catch them all.

#amazon\.(com|co\.uk)\/(gp\/offer\-listing|[a-z0-9-]+\/dp|gp\/product)/(?P<id>[a-z0-9]+)/([^\s]+)?#siu

Once those are all caught I need to update the callback to allow for these different TLD options so that we can hopefully iron everything out first before the update.
 
Here's a link to a Canon DSLR

Code:
<a href="http://www.amazon.co.uk/gp/product/B002LSI1LO/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1634&creative=6738&creativeASIN=B002LSI1LO&linkCode=as2&tag=spurscommunit-21">Canon EOS 7D Digital SLR Camera (Body Only)</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B002LSI1LO" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

and a GoT DVD

Code:
<a href="http://www.amazon.co.uk/gp/product/B004LRO176/ref=as_li_tf_tl?ie=UTF8&camp=1634&creative=6738&creativeASIN=B004LRO176&linkCode=as2&tag=spurscommunit-21">Game of Thrones - Season 1 [DVD]</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B004LRO176" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
 
Here's a link to a Canon DSLR

Code:
<a href="http://www.amazon.co.uk/gp/product/B002LSI1LO/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1634&creative=6738&creativeASIN=B002LSI1LO&linkCode=as2&tag=spurscommunit-21">Canon EOS 7D Digital SLR Camera (Body Only)</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B002LSI1LO" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

and a GoT DVD

Code:
<a href="http://www.amazon.co.uk/gp/product/B004LRO176/ref=as_li_tf_tl?ie=UTF8&camp=1634&creative=6738&creativeASIN=B004LRO176&linkCode=as2&tag=spurscommunit-21">Game of Thrones - Season 1 [DVD]</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=spurscommunit-21&l=as2&o=2&a=B004LRO176" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Where ever you got the links from, could you check and make sure that the URL in the browser url bar matches that?...what is really important is the url as most people will be pasting links from their browser's url bar. I have seen the embeds and have noted that and the only thing we need for the uk ones now is a list of urls like this...

Code:
http://www.amazon.com/gp/offer-listing/0671529366/ref=dp_olp_new/176-2953314-1967504?ie=UTF8&condition=new

....but in your case for uk links.
 
Here we go with some amazon.de product links. If you need any further just let me know :)

Code:
http://www.amazon.de/Top-Gear-Best--Jeremy-Clarkson/dp/B003VDC0M4/ref=sr_1_2?s=dvd&ie=UTF8&qid=1369808905&sr=1-2&keywords=top+gear

Code:
http://www.amazon.de/gp/product/B00APVW06G/ref=s9_dnav_bw_g74_ir02b1_a?pf_rd_m=A3JWKAKR8XB7XF&pf_rd_s=center-2&pf_rd_r=0AHSQXK9E9F21K21KW3A&pf_rd_t=101&pf_rd_p=402515947&pf_rd_i=554850


The following two links already include the affiliate id-code (marked as xxxxx-21):
Code:
http://www.amazon.de/gp/product/3942270307/ref=as_li_tf_tl?ie=UTF8&tag=xxxxx-21&linkCode=as2&camp=1638&creative=6742&creativeASIN=3942270307

And a quite simple one
Code:
http://www.amazon.de/exec/obidos/ASIN/B004K6LJ3M/xxxxx-21
 
Where ever you got the links from, could you check and make sure that the URL in the browser url bar matches that?

Ah ok. Those were links from my Amazon Associates page which generates the links for a product for you with your affiliate ID included.

If I search for the camera above and click on it, the address is:

Code:
http://www.amazon.co.uk/Canon-Digital-Camera-Body-Only/dp/B002LSI1LO/ref=sr_1_1?s=electronics&ie=UTF8&qid=1369822321&sr=1-1&keywords=Canon+EOS+7D+Digital+SLR+Camera+%28Body+Only%29

Some different links from the address bar are in this format:

Code:
http://www.amazon.co.uk/Canon-Digital-Camera-18-55mm-3-5-5-6/dp/B0014IK7QO/ref=cm_lmf_tit_1
http://www.amazon.co.uk/Hama-Star-Tripod-Carry-Case/dp/B0000WXD16/ref=cm_lmf_tit_7
http://www.amazon.co.uk/Game-Thrones-Song-Fire-ebook/dp/B004GJXQ20/ref=cm_srch_res_rpli_1

but obviously those don't have the affiliate id in.
 
Alright I have this updated on my end and am testing it currently and provided the 25 links I have for each UK and DE I will publish the update.


Remember that when you install this/ update this...go into the media sites manager and edit the embed code by replacing 'bbcodes-20' with your affiliate id.
 
Link will be generated. But it redirects me still to amazon.com instead of amazon.de when I click the links :(
Thank you for catching that...I uploaded the one that first updated the match urls and deleted the one that updated the code to use a callback which this one needs.

I have to rebuild the callback and the match url field again and update.
 
Ok I have it rebuilt and am testing it...i rebuilt it differently so that anyone using this bbcode already wont have to replace any of the bbcodes in posts already.

One more round of testing and I will upload the new definition.
 
Back
Top Bottom