{"id":2258,"date":"2007-11-27T11:31:26","date_gmt":"2007-11-27T11:31:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/amazon-machine-tags\/"},"modified":"2010-01-28T10:24:14","modified_gmt":"2010-01-28T10:24:14","slug":"amazon-machine-tags","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/amazon-machine-tags\/","author":283207,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0.2","stable_tag":"3.0.2","tested":"2.9.2","requires":"2.3","requires_php":"","requires_plugins":"","header_name":"Amazon Machine Tags","header_author":"Martin Kliehm","header_description":"","assets_banners_color":"","last_updated":"2010-01-28 10:24:14","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.amazon.de\/gp\/registry\/wishlist\/18XSF4H22J4L8\/","header_plugin_uri":"http:\/\/learningtheworld.eu\/2009\/amazon-authorization\/","header_author_uri":"http:\/\/learningtheworld.eu\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":16751,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.1.0","1.1.1","1.1.2","1.1.3","2.0","3.0","3.0.1","3.0.2"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1539080","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539080","resolution":"1","location":"plugin"}},"screenshots":{"1":"Admin interface","2":"The plugin in a sidebar"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[209,1556,86,166,6895],"plugin_category":[43,48,57],"plugin_contributors":[88535],"plugin_business_model":[],"class_list":["post-2258","plugin","type-plugin","status-publish","hentry","plugin_tags-amazon","plugin_tags-api","plugin_tags-post","plugin_tags-posts","plugin_tags-web-services","plugin_category-customization","plugin_category-language-tools","plugin_category-taxonomy","plugin_contributors-kliehm","plugin_committers-kliehm"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/amazon-machine-tags.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/amazon-machine-tags\/trunk\/screenshot-1.png?rev=1539080","caption":"Admin interface"},{"src":"https:\/\/ps.w.org\/amazon-machine-tags\/trunk\/screenshot-2.jpg?rev=1539080","caption":"The plugin in a sidebar"}],"raw_content":"<!--section=description-->\n<p>Simple inclusion of Amazon items through machine tags.<\/p>\n\n<ol>\n<li>Identifies any tag in the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Machine_tag#Triple_tags\">machine or triple tag<\/a> form <code>book:isbn=1234567890<\/code> or <code>amazon:asin=1234567890<\/code>. Works with native tags from WordPress 2.3 and later, Bunny\u2019s Technorati Tags, and Jerome\u2019s Keywords.<\/li>\n<li>Gets the item information and a thumbnail image from the <strong>Amazon Web Services API<\/strong>.<\/li>\n<li>Displays the item(s) in the sidebar or in a blog article with a link to the visitor\u2019s best match (if the <a href=\"http:\/\/priyadi.net\/archives\/2005\/02\/25\/wordpress-ip-to-country-plugin\/\">ip2country<\/a> plugin is installed) or a default Amazon shop of your choice.<\/li>\n<li>If you are an Amazon Associate for that locale, your Associate ID is included automatically.<\/li>\n<\/ol>\n\n<p>You can edit the server-side, semantic and valid XHTML output via XSLT, change the CSS, or translate the admin interface through PO-files.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the whole <code>amazon-machine-tags<\/code> folder into the <code>wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress. Make sure that you don\u2019t run it on <code>localhost<\/code> as XML files on the server need to be reached from the outside.<\/li>\n<li>Get your own Amazon Web Services <a href=\"http:\/\/aws-portal.amazon.com\/gp\/aws\/developer\/account\/index.html?action=access-key\">Access Key Identifyers<\/a>.<\/li>\n<li>Create a <code>wp-content\/cache\/<\/code> directory with permissions set to 755, or 777 if you create the directory as <code>root<\/code> user.<\/li>\n<li>Put <code>&lt;?php AMTAP::get_items(); ?&gt;<\/code> in your sidebar and start using machine tags.<\/li>\n<li>Edit <code>amtap-blog.css<\/code> if you like.<\/li>\n<li>If you want to use tags in a blog article, write <code>[amtap book:isbn=1234567890]<\/code> or <code>[amtap amazon:asin=1234567890]<\/code>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does it work in the sidebar on Pages, too?<\/dt>\n<dd><p>Posts have tags, pages don\u2019t, so it doesn\u2019t work on those by default. But there\u2019s a plugin called <a href=\"http:\/\/wordpress.org\/extend\/plugins\/tags4page\/\">tags4page<\/a> that enables tags for pages. Works like a charm.<\/p><\/dd>\n<dt>Is there a limit of how many items can be requested?<\/dt>\n<dd><p>Yes, Amazon has a limit of 10 items per request. Since they are separate requests, you can use a maximum of 10 items in the content plus a maximum of 10 in the sidebar.<\/p><\/dd>\n<dt>Would it be possible to cache the images?<\/dt>\n<dd><p>Technically it wouldn\u2019t be a problem, but the <a href=\"https:\/\/affiliate-program.amazon.com\/gp\/advertising\/api\/detail\/agreement.html\">Amazon Product Advertising API license<\/a> explicitly forbids caching of images (see 5.1.10). Sorry.<\/p><\/dd>\n<dt>I need to a larger thumbnail (medium), but can\u2019t seem to find a place to edit the size of the image being requested.<\/dt>\n<dd><p>The image size can be edited in the XSLT. The original result is a XML file that is transformed by Amazon using your local copy of <code>amtap-html-sidebar.xsl<\/code> and <code>amtap-html-content.xsl<\/code>, respectively. Replacing every occurance of <code>.\/\/aws:TinyImage<\/code> with <code>.\/\/aws:MediumImage<\/code> in lines 73-83 should do the trick.<\/p>\n\n<p>You can view the original XML when you activate the \u201cdebug\u201d option in the admin interface so that the request string is printed as a comment in the sidebar\u2019s source code. XSLT is a very powerful tool, and there\u2019s a lot more in the XML, for example customer reviews.<\/p><\/dd>\n<dt>Getting an error about \u201cprivate IP address space\u201d?<\/dt>\n<dd><p>The error message means you are running the blog on something like <code>localhost<\/code>. Amazon Web Services needs to get an XML file from your server, obviously that is impossible when it\u2019s not located on a server that can be accessed with a public IP address from the outside.<\/p><\/dd>\n<dt>Are all options really required?<\/dt>\n<dd><p>No. The only required fields are the Amazon Web Services Access Key ID and your Secret Access Key. You can leave the others, they are set to defaults then.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>3.0.2: Bugfix in SHA256 calculation.<\/li>\n<li>3.0.1: Fixed a bug in setting the timestamp that caused the key validation to fail. The included SHA256 encryption now has a GNU Lesser GPL.<\/li>\n<li>3.0: Added signed requests for the new Amazon authorization requirement. Updated the API version to 2009-07-01 (please note: if you use your own XSL files, you must update the version in the XML namespace URL). Updated links.<\/li>\n<li>2.0: Added fields for editing the sidebar headline, link target, and displaying rating stars. Added an error message if the plugin is run from a private IP address space. Changed priorities for price selection, they are now: <code>LowestNewPrice<\/code>, <code>ListPrice<\/code>, first offer, <code>LowestUsedPrice<\/code>. Added support for the display of an artist name. Added rating stars. Fixed EAN numbers with a dash. Fixed cutting of titles after a period. Changed CSS and XSL files.  <\/li>\n<li>1.1.3: Changed <code>amtap-admin.css<\/code> and <code>amtap-admin.inc.php<\/code> to make the admin interface look prettier with WordPress 2.5.<\/li>\n<li>1.1.2: Fixed a bug in <code>amtap.php<\/code> when there are no other tags but default tags.<\/li>\n<li>1.1.1: Fixed the sort order of inline items, a bug for returning an error message when the cache file is not writable, and added Amazon\u2019s limit of 10 items per request.<\/li>\n<li>1.1.0: Fixed the display of inline tags on the home page. Improved regular expression for filtering inline tags.<\/li>\n<li>1.0.6: Fixed a bug introduced through the new function when there were no items to be displayed in the sidebar.<\/li>\n<li>1.0.5: Added an option for default items on every page. Changed <code>amtap-html-sidebar.xsl<\/code> to sort items in the order of the request.<\/li>\n<li>1.0.4: Bugfix for replacement of dollar characters in content. Also content items are now cached separately.<\/li>\n<li>1.0.3: Fixed the display of inline tags on category pages.<\/li>\n<li>1.0.2: Changed the plugin path from <code>amtap<\/code> to <code>amazon-machine-tags<\/code> for consistency with the file structure in the zipped file.<\/li>\n<li>1.0.1: Bugfix for native WordPress tags.<\/li>\n<\/ul>","raw_excerpt":"The plugin checks for machine tags with ISBN or ASIN numbers, gets the product data from Amazon, and displays it in the sidebar or in a blog article.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2258"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kliehm"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2258"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2258"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2258"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2258"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2258"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}