I did it again: Another Wordpress Plugin.
This one is very small and simple:
Amazon Book Picture allows you to include a simple tag with a books asin or isbn in your posts which is replaced by an image of that book from amazon.
History
Version: 1.0 – initial
“Version: 1.1 – xhtml”: This is an alternate version suggested and modified by Thomas Weiße that uses < and > (<>) instead of the [] brackets.
Compatibility
Tested with WordPress 2.1.3 up to 2.9.1.
Installation
Just upload to your wp-content/plugins folder or any subfolder and activate in plugins menue.
Usage
The tag to be used looks like this:
[abp:SIZE:ASIN:w:IMG-WIDTH:h:IMG-HEIGHT:i:IMG-ID:c:IMG-CLASS]
With:
The definition of SIZE, IMG-WIDTH, IMG-HEIGHT, IMG-ID and IMG-CLASS are optional. SIZE defaults to M (medium). Be aware: which size the picture really has depends on what amazon defines. For some books amazon returns the same size picture for medium and large (the medium one). If you want to have a fixed-size image, use the IMG-attributes.
The whole tag is case-INsensitive
Examples
[abp:3492246885]
Only ISBN defined (size defaults to medium)

<img src=”http://images.amazon.com/images/P/3492246885.03.MZZZZZZZ.jpg” />
[abp:S:3492246885]
Only SIZE (small) and ISBN defined
![]()
<img src=”http://images.amazon.com/images/P/3492246885.03.THUMBZZZ.jpg” />
[abp:l:3492246885]
Only SIZE (large) and ISBN defined

<img src=”http://images.amazon.com/images/P/3492246885.03.LZZZZZZZ.jpg” />
[abp:l:3492246885:w:123:h:123:i:1:c:book]
With all possible attributes (width=123, heigth=123, an id and a class)

<img src=”http://images.amazon.com/images/P/3492246885.03.LZZZZZZZ.jpg” width=”123″ height=”123″ id=”1″ class=”book” />
Download
Donate
If you like this plugin and it helps so much, that you would like to donate (no matter how much), please do it here.
Seen at
(Missing your page? Notify me!)

