===================================================================
===================================================================
ORIGINAL README AT THE END OF THE FILE
===================================================================
===================================================================
Q&D EXPLANATION:
I modified an old version of Rich Manalangfs WP-Amazon WordPress Plugin to work with WP2.1-2.2.

===================================================================
DISCLAIMER:

I didnft write this plugin (that would be Rich Manalang in case you missed it above) and take no credit for creating it. I just modified it very, very slightly so that it will work with WordPress 2.1 and 2.2. I only grudgingly changed the author information and URI in the plugin so that people wouldnft go and bother the already swamped Mr. Managlang with questions related to stupid mistakes I made in this version. Same reason for the different version number (ttb1.0, ttancm branch 1.0, clever huh =P Doesnft really need a version number as such, since I really doubt I will ever update it beyond the current state. If you would like to make donations or anything of the sort, please direct them to Rich Manalang.

I know very little PHP (I tinker, not create) and I havenft tested this beyond what I myself need it for, donft plan to test for anything else, and canft offer support of any kind.

Support includes stuff like: "this doesnft work in so and so version of so and so browser", "Could you add this/tweak that/change those/remove them", "I tried your modified version of this plugin and WordPress actually physically exploded and took out half the data center where my server is, killing 15 people and more importantly losing all my website data!", etc.

I take NO RESPONSIBILITY for any problems, and neither impose nor imply any responsibility on the part of the original plugin author, Rich Manalang for this shoddy, hacked up version of his plugin. In other words, USE AT YOUR OWN RISK! If something bad happens, I feel for you, but canft do anything about it.

===================================================================
Now that thatfs all out of the way =)

SLIGHTLY LONGER EXPLANATION:

This is just a very simply modified version of Version: 1.3.2 of Rich Manalangfs WP-Amazon plugin.

This is the original version of the plugin I used and I was awed right from the beginning at how well it worked. It did exactly what it needed to, quickly, simply and well.

Mr. Manalang has released a newer version of the plugin, however it seems to have some problems with WordPress 2.1 and 2.2, and it has never worked with the non-visual WP editor (e.g. the only one I use =) and he has now decided to switch to a Greasemonkey script (which is a great idea I think, since it will make the plugin useable with any website, not just WP-powered ones), but hasnft yet released it, and I needed a stopgap working plugin for the time being, without having to maintain a WP2.1 version install somewhere just to use the new version of the plugin with the visual editor on and copy and paste the code to whatever site I actually wanted the Amazon links on =P

===================================================================
INSTALLATION

From the original README file by Mr. Manalang

Installation
* Copy the following files to the appropriate locations:
/wp-content/plugins/
|
+- wp-amazon-plugin.php
+- wp-amazon.php

* Go to the WordPress plugins admin panel then activate the
WP-Amazon plugin.
* The post edit page should now have a button called "Amazon"
in the Quicktags region

Differences here are

   1. Remove any other version of WP-Amazon you have installed first.
   2. There is no quicktag button, but an "Insert content from Amazon" link at the bottom of the post box.
  
===================================================================
NOTE (also known as Disclaimer part 2, the REVENGE!):

Some other caveats on using this hacky, hacky version of the plugin:

    * I have only tested it on Firefox 2.0.0.3. As mentioned above, I donft plan on testing it in, modifying it to work in other browsers/versions.
    * I have tested it in WP 2.1 and 2.2, again I donft plan on testing it in, modifying it to work in other versions.
    * I have tested it on PHP 5, again I donft plan on testing it in, modifying it to work in other versions.
    * This is only intended as a stopgap measure until Mr. Manalang releases his new Greasemonkey script. I figured there might be people out there who would find it useful (since the lack of a working WP-Amazon is such a loss to the WP community) and so I released this version that I have been using. No updates, no support, no service. If it works, great! Ifm glad to have been of some tiny service to you. If it doesnft, Ifm sorry, wish I could help, but I canft.
    * I have been using this without problem or incident on several WP installs for awhile. Nothing has exploded yet, but your mileage may vary! Use at your own risk!
    * And did I mention the original plugin is by Rich Manalang?

===================================================================
===================================================================
ORIGINAL README FOLLOWS
===================================================================
===================================================================
WP-Amazon plugin for Wordpress 1.5+
Version 1.3.2 2005.09.29
Author: Rich Manalang
http://manalang.com/archives/2004/06/23/wordpress-plugin-wp-amazon/

Copyright (C) 2005 Rich Manalang

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
===================================================================

Version History
---------------
1.3.2 - Reverted to using a hyperlink below the post textarea to launch
        WP-Amazon... too many people complained about it not working
        when a WYSIWYG plugin was enabled.
1.3.1 - Amazon changed their XML format which prevented WP-Amazon from
        displaying images returned from results.  Thanks go to Nick Walton
        (http://www.nickwalton.com/) for finding and reporting the problem.
1.3   - Added plugin options page so users can update the default country, 
        associate ID, and subscription ID without modifying the plugin source.
      - Added a "check for update" feature that allows users to easily see if 
        their plugin is up-to-date.
      - Dropped support for 1.2.x
1.2.8 - Changed the Amazon Link on the edit page to be a button in the
        Quicktags region.  Allows for WP-Amazon to work with the Tiger
        Style Administration plugin.
1.2.7 - Added some inline CSS to hide the admin header
1.2.6 - Added Added Michiel Maandag's enhancements 
        (http://wordpress.org/support/topic/32412)
1.2.5 - Fixed code that checks if curl is installed.  By default,
        curl is preferred, but if your host doesn't have it installed,
        it downgrades to using fopen.
1.2.4 - Added support for WordPress 1.5.  Still supports 1.2.x.
      - Relocated wp-amazon.php to the plugins directory.
1.2.3 - Added support for Amazon ECS 4.0 France and Canada
1.2.2 - Added check to see if magic quotes is turned on or off.  This was
        causing a JavaScript problem with servers that had magic quotes turned
        off.
1.2.1 - Replaced htmlentities to htmlspecialchars to support special characters
        in Japanese and German
1.2   - Upgraded to Amazon E-Commerce Service 4.0
      - Removed dependency on NuSOAP and moved to using standard PHP XML support
      - Added ability to change the Amazon country site to search form
1.1   - Cleanup
1.0   - David Schlosnagle's blended search has been included (thanks David!)
0.92  - Removed target="_blank" and properly encodes entities to preserve
        XHTML compliance.
0.91  - Reworked search features. Removed search by and replaced with product
        line search field.  All searches are now by product.
      - Added support for Amazon UK, Amazon Germany, and Amazon Japan. Needs
        to be thoroughly tested still.       
0.9   - Initial release

About
-----
WP-Amazon adds the ability to search and include items from 
Amazon.com to your WordPress post entries.  This plugin adds a link
called "Insert content from Amazon" on the post, page, and comment edit pages.  This button 
launches a search window which allows an author to search for items 
from Amazon.com to be included on the author's post entry.


Features
--------
* Uses Amazon E-Commerce Service 4.0
* Supports the following countries:
  - United States
  - Great Britain
  - Germany
  - Japan
  - France
  - Canada
* Support for Amazon Associates IDs.  For more information about
  the Amazon Associates Program, visit this site:
  http://www.amazon.com/gp/browse.html/104-9918661-1983944?node=3435371.
  To change the default Amazon Associates ID, change the Associates ID option
  under Options > Amazon.
* Allows search by keyword in the following product search indices:
  
  Search Index Name 	US	UK	DE	JP	FR	CA
  ================================================
  Apparel 				X 	  	  	 
  Baby 					X 	  	  	 
  Beauty	 			X 	  	  	 
  Blended	 			X	X	X	X	X	X
  Books 				X	X	X	X	X	X
  Classical	 			X	X	X	X	X	X
  DigitalMusic 			X 	  	  	 
  DVD 					X	X	X	X	X	X
  Electronics		 	X 	X 	X 	X
  ForeignBooks 			  	  	X 	X	X	X
  GourmetFood 			X 	  	  	 
  HealthPersonalCare 	X	X	X 
  HomeGarden 	 	 	X	X
  Jewelry 				X  	  	 
  Kitchen 				X	X	X	X
  Magazines 			X		X 
  Miscellaneous			X
  Music 				X	X	X	X	X	X
  MusicalInstruments 	X
  MusicTracks 			X	X	X	X	X
  OfficeProducts 		X
  OutdoorLiving 		X	X	X
  PCHardware 			X		X 	 
  Photo 				X		X
  Restaurants 			X
  Software 				X	X	X	X	X	X
  SoftwareVideoGames 		X	X		X	X
  SportingGoods 		X  	  	 
  Tools 				X		X
  Toys 					X	X		X
  VHS 					X	X	X	X	X	X
  Video				 	X	X	X	X		X
  VideoGames 			X	X	X	X		X
  Wireless 				X
  WirelessAccessories 	X
  
* Results display a thumbnail image of the product and the product
  name.  
* Allows author to add generated HTML to a post.
* Supports the following HTML formats for display:
  - Link to item with product name
  - Link to item with small size product image
  - Link to item with medium size product image
  - Link to item with large size product image  
* Supports search across all Amazon product search indices
* Supports searching across multiple Amazon country sites


Installation
------------
* Copy the following files to the appropriate locations:
  /wp-content/plugins/
    |
    +- wp-amazon-plugin.php
    +- wp-amazon.php

* Go to the WordPress plugins admin panel then activate the
  WP-Amazon plugin.
* The post edit page should now have a button called "Amazon"
  in the Quicktags region


Upgrade from prior to WP-Amazon 1.2
-----------------------------------
* Deactivate the plugin
* Remove the following files from your server:
  /wp-content/plugins/
    |
    +- wp-amazon-plugin.php
    
  /wp-admin/
    |
    +- /wp-amazon/
    |    |
    |    +- AmazonSearch.php
    |    +- nusoap.php
    |
    +- wp-amazon.php

* Follow the installation instructions above


Configuration
-------------
There's really no configuration needed after installation.  If
you have an Amazon Associates Program account and would like to
use it, go to Options > Amazon to add your Associate ID.


Questions/Suggestions/Bugs
--------------------------
Please go to http://manalang.com/archives/2004/06/23/wordpress-plugin-wp-amazon/
