This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.
Excerpt: MTAmazon is a Movable Type plugin that displays products from Amazon.com on your site. It allows flexible searching and display of products from any of Amazon’s product categories. New in version 2.0 is caching, related products searching, and more tags for Amazon product information. Read the whole article…
devtoken is required in the template unless you have set a default developer's token in amazon.pl I'll work up some more examples and post them.
Adam, the package looks really nice, but I can't get it to work! When I include an MTAmazon container in an entry or template, I get a bunch of errors: plugins/amazon.pl did not return a true value at /usr/www/users/robichau/cgi-bin/lib/MT.pm line 79 ConfigMgr.pm is OK; I don't have a plugins dir defined in my mt.cfg file, but I can load another (dead-simple) plugin in the plugins dir, so I don't think that's the problem. Any suggestions?
can i use this wonderful plugin with www.amazon.co.jp? i am Japanese actualy.
Try putting the line: 1; at the end of amazon.pl.
I don't think that Amazon offers their Web services interface for their non-US sites. You could ask them when they plan on supporting Web services outside the US.
I added the "1;", but no dice. Maybe I'm doing the wrong thing-- can I use the tag within an entry, or only within templates?
Movable Type doesn't process tags inside entries, so there's no way to use MTAmazon tags in an entry.
I'm getting this error on rebuild: MT::App::CMS=HASH(0x82101c0) print on closed filehandle MT::CACHE at plugins/amazon.pl line 335. What is it, and how do I fix?
I solved the prob. $cachdir in amazon.pl needs to be "plugins/cache" and not "./cache". I added a use CGI::Carp and then carp'ed the `pwd`, and it's the root MT dir, and not plugin. Once I added plugins/ to the dir, it works. :)
It sounds like you put the "cache" directory in the wrong place. The cache directory should be directly under the mt directory, not inside the plugins directory. I reread the installation instructions and they were ambiguous, so I altered them to better explain where the cache directory goes. Sorry for any grief this caused.
I'm getting the same error: Build error in template 'Main Index': Error in tag: Error in tag: close go back MT::App::CMS=HASH(0x81eb094) print() on closed filehandle MT::CACHE at plugins/amazon.pl line 335. MT::App::CMS=HASH(0x81eb094) print() on closed filehandle MT::CACHE at plugins/amazon.pl line 335. MT::App::CMS=HASH(0x81eb094) print() on closed filehandle MT::CACHE at plugins/amazon.pl line 335. MT::App::CMS=HASH(0x81eb094) Use of uninitialized value in concatenation (.) at [..]/lib/MT/Builder.pm line 76. I have the cache in the right directory (directly under the MT dir). My template contains the following array: random amazon list " target="_top">, , " target="_top">, " target="_top">, , " target="_top">, , Can you help me out here?
*sigh* I see all kinds of brackets were converted. Oh well, I fixed one thing: By setting the permissions of the cache to 776, I got rid of the "MT::App::CMS=HASH(0x81eb094) print() on closed filehandle MT::CACHE at plugins/amazon.pl line 335.", but I'm still getting the "MT::App::CMS=HASH(0x81eb094) Use of uninitialized value in concatenation (.) at [..]/lib/MT/Builder.pm line 76." error. I use a repetition of 4 tags, each with a different search string. I notice it is saved ok in the cache folder. (Btw, this did work well in the first version of MTAmazon.)
My apologies! I didn't see that the newest version is hosted somewhere else. Version 2.0.2 solved my problem. So, please ignore or delete my previous comments.
Could you please give some functional examples, with their output?
I've posted three sample templates along with the output they produce at http://kalsey.com/blog/2002/08/mtamazon_sample_templates.stm
It is probably my faulty understanding of MT plugin functionality, but... is there a way to use MTAmazon tags in the text of posts, and not in the templates? Judging by the existence of text formatting plugins, it seems that processing of actual entry contents is possible...
MT does not process tags inside entry text. It doesn't even look to see if any are there. Text formatting plugins work differently. The MT engine passes the text through the foratting plugin before writing it to the page. The only way to get MT to process tags is through the use of my process tags plugin: http://kalsey.com/2002/08/process_tags_plugin/ Make sure you read the security concerns with the plugin at http://kalsey.com/2002/08/process_tags_security_update/
Thanks! I really appreciate the advice and the effort gone into your plugins. By the way, there is a typo on the process_tags plugin page ( http://kalsey.com/2002/08/process_tags_plugin/ ), where it names process_plugins attribute instead of the correct (shown just below) process_tags. Perhaps this can deconfuse someone when fixed :)
Is there a similar tool for blogger?
Excerpt: I'm having a bit of a play around with the MTAmazon plugin....
Is 3.0 ever going to come out?
Excerpt: A massive thanks to heyblog for a most elegant MT-Amazon workaround that has finally allowed me to start updating my...
Hi ... trying to install MTAmazon for the first time and MT isn't picking up the plugin. I have BookQueueToo installed which appears in the plugin list fine. When I click on that plugin I get the error: "An error occurred: Your server does not have MTPlugins::MTAmazon installed, or MTPlugins::MTAmazon requires another module that is not installed. MTPlugins::MTAmazon is required. Please consult the installation instructions for help in installing MTPlugins::MTAmazon" XML::Simple (v2.14) and LWP::UserAgent (v2.001) are both installed. amazon.pl and .mtamazon.config are in the plugins folder and MTAmazon.pm is in the extlib folder. Am I missing something? Thanks. GC.
hi, would it be possible to use this plugin to get all the product reviews for a particular REVIEWER at amazon, not by product?
Can i know the "Suggested Tags from Similar Products" Xml FIeld Name for Amazon AWs API.
This discussion has been closed.
Kenneth Hunt
July 27, 2002 12:51 PM
Could you post a few more examples? I haven't gotten it working yet. Also is MTAmazonDevToken need in the template?