Extension talk:Amazon

Latest comment: 9 years ago by Sakshale in topic US Version working with 1.24 on my site
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Would it be possible to see an example of this extension at work??

I need to see how one would do this with the english Amazon site as well as a better walkthrough, for the extension doesn't work. Also, how would Project:Booksources lead to Special:Booksources regardless of the content placed in the edited article? It's impossible to get this extension to work...Please message me

Author

edit

I couldn't figure out the author of this extension when adding the template. Bouncingmolar 02:22, 15 July 2007 (UTC)Reply

Outdated

edit

I also couldn't make this extension work on MediaWiki 1.10.1; IMHO, the special pages used by this extension are not used/available anymore, and the texts have moved to MessagesNN.php. However, I can't find any up-to-date documention for this anywhere :-/ Someone with more luck out there? --asb 00:55, 6 August 2007 (UTC)Reply

Fixed it!

edit

I had some problems with this as well - it was returning a 'file not found' error. The basic issue is the type of apostrophes used in the $output= string. If you paste it from this website they come in slightly angled. Overtype them with straight ones in a text editor (or other code editor such as Dreamweaver) and it works fine.

I also didn't bother with the Booksource page - I just use the <AMAZON> tags directly on the page - no issue.

English Amazon

edit

Does anyone know how to use this with an English Amazon URL? Not sure how far to lay the English url over the German, there. In Amazon.php, I tried http://amazon.com before the first slash ("http://amazon.com/e/cm..."), but that isn't working. Ergo, I'm not sure if that's where the problem is, or if it's in one of the following digits in the URL. The author neglected to cover that aspect. Perhaps someone can expand/clarify the usage on the extension page. --Sasoriza 11:45, 3 September 2007 (UTC)Reply

Drop in this code to for the English url.

$output = "<iframe src=\"http://rcm-uk.amazon.co.uk/e/cm?t=".$partner."&o=2&p=8&l=as1&asins=".$input."&fc1=000000&IS2=1&lt1=_blank&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr\" style=\"width:120px;height:240px;\" scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>";

--Neilkt 23:17, 19 September 2007 (UTC)Reply

Iframe not showing up

edit

Can't see the iframe in firefox? I spent hours upon hours looking at encoding html with php and decoding with javascript; putting in a hack to go around the parser. The problem... ADBLOCK!!!! -- Neilkt 23:17, 19 September 2007 (UTC)Reply

edit

This extension works great for me except that for my pages, I want "image only" links. I figured out the output line would be something like:

$output = "<a href=\"http://www.amazon.com/gp/product/".$input."?ie=UTF8&tag=".$partner."&linkCode=as2&camp=1789&creative=9325&creativeASIN=".$input."\"><img border=\"0\" src=\"http://ecx.images-amazon.com/images/I/31iZjYFOLgL._AA_SL160_.jpg\"></a><img src=\"http://www.assoc-amazon.com/e/ir?t=".$partner."&l=as2&o=1&a=".$input."\" width=:1;height:1;border:0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" />";

That works except for the image. Amazon has weird names for images that have nothing to do with the ISBN of the book. So, my question is how can I change this so that on my Wiki page I can use an uploaded image instead of Amazon's image? I'm looking for something like being able to, on the Wiki page, enter:

<amazon; image.jpg> MAGICNUMBER</amazon>

Anyone have any ideas? Thanks!

Got it to work with v1.14 in USA

edit

I have been trying to get this extension to work for over an hour, and have managed to get it to half work. As you can see on my site A link to Amazon is rendered, but not an image of the book with the ISBN I typed in. Does anyone have any ideas?

This is what I changed the output line in the extensions php to;

$output = "<iframe src=\"http://rcm.amazon.com/e/cm?t=".$partner."&o=1&p=8&l=as1&asins=".$input."&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr\" style=\"width:120px;height:240px;\" scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>";

I am an idiot! I had misspelled $input as $imput, I fixed the one typo and now it is working great. If anyone needs help with let me know. --Jake4d 21:49, 20 June 2009 (UTC)Reply

Upgrade to v1.15.3 broke the extension

edit

I had this extension working on v1.14 but after upgrading it no longer works. Is anyone maintaining this extension any more? Jake4d 18:58, 26 April 2010 (UTC)Reply

Oops! I had to disable another amazon extension. It is working fine now. --Jake4d 17:02, 27 April 2010 (UTC)Reply

US Version working with 1.24 on my site

edit

It took a bit of playing around, but I have a working version working on my 1.24 mediawiki site.

A page with working links can be see at: http://sysadm.equoria.com/index.php/MediaWiki_Web_Links_and_References#MediaWiki_Related_Web_Links

A page with source code sample and notes can be found on the same site at: http://sysadm.equoria.com/index.php/Mediawiki_Amazon_Extension

Sakshale (talk) 01:40, 2 September 2015 (UTC)Reply

Return to "Amazon" page.