WordPress.org

Ready to get started?Download WordPress

Forums

Introducing WP-Amazon Plugin (53 posts)

  1. rmanalan
    Member
    Posted 10 years ago #

    Hi all. Just wanted to announce the availability of a new plugin I wrote, WP-Amazon. WP-Amazon brings the Amazon.com product catalog right into WordPress. This is the initial release, so, I'm interested in comments, suggestions, or any bugs you may find. Take a look:
    http://manalang.com/archives/2004/06/23/wordpress-plugin-wp-amazon
    - Rich

  2. tcervo
    Member
    Posted 10 years ago #

    Can you post an example on your site (or just point to one that already exists) that shows what the result will be once an item is added?
    Also, is there a way to embed your Amazon Associates ID?
    Thanks...

  3. davidchait
    Member
    Posted 10 years ago #

    Rich -
    Interesting approach -- much different from what CG-Amazon does (sidebar lists of products, product database, associates-linked), but still should find a lot of users who just want a product in a post, quickly, and your search function makes that easy.
    Cool idea, nice integration steps.
    -d
    http://www.chait.net

  4. rmanalan
    Member
    Posted 10 years ago #

    tcervo, the output is one of the following:
    * 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
    The link is a standard hyperlink tag with a title attribute. If you choose a link with an image, the img tag is hyperlinked. Very basic. It's just a quick and easy tool to allow you to embed amazon links to your entries.
    Yes, the plugin supports Amazon Associates IDs... you can read about how to change the ID in the README.txt.

  5. Tek
    Member
    Posted 10 years ago #

    THANK YOU!
    This was exactly what I was looking for and SO EASY TO INSTALL!!!
    Thanks!

  6. dss
    Member
    Posted 10 years ago #

    i'm having some trouble installing this plug.
    well, not really trouble installing it. it's quite easy. i followed the instructions and get the following error:
    Warning: file(/home/login/folder/dss//wp-content/plugins/wp-amazon-plugin.php): failed to open stream: Permission denied in /home/imperial/public_html/dss/wp-admin/plugins.php on line 94
    Warning: implode(): Bad arguments. in /home/login/folder/dss/wp-admin/plugins.php on line 94
    one thing i noticed is the double slash above...
    otherwise, it's not working and i can't see why.
    i have david chiat's amazon plungin installed and that's all.
    i'd like to get this working to see if i like it.
    any idea why it wouldn't work?
    dss.

  7. somefool
    Member
    Posted 10 years ago #

    Cheers, I like this.

  8. david
    Member
    Posted 10 years ago #

    I get the following errors when searching.

    Warning: Invalid argument supplied for foreach() in /var/www/wordpress/wp-admin/wp-amazon/nusoap.php on line 5489
    Fatal error: Call to undefined function: keywordsearchrequest() in /var/www/wordpress/wp-admin/wp-amazon/AmazonSearch.php on line 98

    Anyone got any ideas on how to fixy?

  9. rmanalan
    Member
    Posted 10 years ago #

    dss,
    Make sure the files you uploaded are readable (i.e., 644 at least).
    - Rich

  10. rmanalan
    Member
    Posted 10 years ago #

    david,
    Are you getting that error all the time or only sometimes? What is your $Country variable set to (look in wp-amazon.php)?
    - Rich

  11. dss
    Member
    Posted 10 years ago #

    I'll try it again. but i thought everything was R,W, X (777) for testing purposes.
    stranger...
    dss

  12. davidchait
    Member
    Posted 10 years ago #

    Rich -
    Just FYI - I used nusoap for a while for , until Amazon did their V3 upgrade... at which point it stopped working for me (all the undefined function stuff, as it couldn't find the function decls). That's when I went and rolled my own XML solution (and just rewrote the low-level parser to be my code instead of the PHP code, so I can control timeouts and actually deal with error codes!).
    -d

  13. david
    Member
    Posted 10 years ago #

    $Country = 'US';
    Hey Rich. Yes, it does seem to be set. And I double checked all the permissions on installed files, set them all to 755. Funny that I can't get this plugin or David Chaits up and running. I have a very well equipped, up to date debian install on my server, and don't *usually* miss the libraries I might need to make these plugins work. Still, it's possible.
    Any idea what I am missing?

  14. Anonymous
    Unregistered
    Posted 10 years ago #

    Wow! This is absolutely perfect -- precisely what I needed! Thank you so much!

  15. rmanalan
    Member
    Posted 10 years ago #

    david, what version of php are you running on and on what platform? I haven't tested on anything by linux running PHP 4.2+. It's very possible that the nusoap library that I include with WP-Amazon is looking for something that's not there.
    davidchiat, yeah... I hesitated to use the nusoap library, but in most cases, it seems to work fine. My plugin only makes uses the KeywordSearchRequest for all of its calls so, it's not as complicated as CG-Amazon. If I more people report problems with it, I'll switch over and write my own low level soap calls.
    - Rich

  16. Anonymous
    Unregistered
    Posted 10 years ago #

    This plugin breaks XHTML compliance currently on several points:
    1) target="_blank" bad.
    2) it does not encode ampersands in titles into &

  17. david
    Member
    Posted 10 years ago #

    PHP Version 4.3.3 , debian linux, Apache/1.3.29
    I tried downloading and temporarily replacing your included version of nusoap with a more recent one, with the same result.

    Warning: Invalid argument supplied for foreach() in /var/www/wordpress/wp-admin/wp-amazon/nusoap.php on line 5678
    Fatal error: Call to undefined function: keywordsearchrequest() in /var/www/wordpress/wp-admin/wp-amazon/AmazonSearch.php on line 98

    Maybe I actually need an older version. (?)

  18. rmanalan
    Member
    Posted 10 years ago #

    david, I've emailed the main developer of NuSOAP for help. In the meantime, I'm going to try a more hard-wired approach to the Amazon Web Service which will hopefully solve your problem.
    BTW, I just downloaded v1.76 of NuSOAP and it still works for me. What version are you using? Also, when you search with the plugin, what parameters are you using?
    - Rich

  19. freelancer
    Member
    Posted 10 years ago #

    I really enjoy this plugin but have a bit of an odd request/question. Is it possible that I could use this plugin to search both amazon.com and amazon.co.jp? Some sort of drop down tab that decides which one is searched or something of the sort? I end to frequent both sites for different reasons and would love to link from both.

  20. rmanalan
    Member
    Posted 10 years ago #

    freelancer, yes it's possible. I'll add this ability in my next release.

  21. david
    Member
    Posted 10 years ago #

    Hey Rich- Thanks for your help. I am sure we can get it running *somehow*. Let me know what to do next.

  22. Anonymous
    Unregistered
    Posted 9 years ago #

    Has a soultion been found for the Warning: Invalid argument supplied for foreach()?

  23. rmanalan
    Member
    Posted 9 years ago #

    Someone noted (in my blog) that if you blank out the dev token variable, it works. Give it a try and let me know so I can post an official work-around.
    - Rich

  24. reevo
    Member
    Posted 9 years ago #

    Anyone else having trouble with getting this to work with 1.5? Any quick-fix?

  25. lbessant

    Posted 9 years ago #

    Yup. There is an update out now.

    See this post from earlier today.

  26. Lorelle
    Member
    Posted 9 years ago #

    Is this fixed and ready for 1.5 yet?

  27. lbessant

    Posted 9 years ago #

    The fixed version available from the Plugin Repository works in 1.5 for me....

  28. Guymauve
    Member
    Posted 9 years ago #

    How do I download that plugin from there? Sorry for the silly question, but I'm a bit lost on that page.

  29. Jinsan
    Member
    Posted 9 years ago #

    Guymauve:

    Click the plugin linkand copy everything between <?php and php?> (or whatever it is I don't code), paste it into notepad. Make sure the end has no extra spaces, and there are no spaces at the start. The first character of the line should be < and the last > (don't add these, this as extra!).

    Now click on file, save as and enter the following: "nameogpluginasin your browser.php" include the quotes. Save the file, upload to your plugin dir and activate. Read the file, however for any instructions.

  30. lbessant

    Posted 9 years ago #

    The part you want lives here. Scroll to the bottom of the page and you'll see this:

    Download in other formats:

    * Original Format
    * Plain Text

    Click on "original format" and you'll be prompted to save the PHP file in the usual way. Avoids any issues with whitespace in copied PHP code....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags