WordPress.org

Ready to get started?Download WordPress

Forums

Introducing WP-Amazon Plugin (53 posts)

  1. Tree
    Member
    Posted 9 years ago #

    Maybe I'm missing something, but why does the URL generated do a redirect so that the website owner's Amazon ID disappears and only the developer's Amazon ID remains? Is there any benefit for the website owner?

  2. adb
    Member
    Posted 9 years ago #

    How can I have the text wrap around the amazon image?

  3. AndWat
    Member
    Posted 9 years ago #

    I'm also interested in the answers to these last couple of questions (although I suspect that my problem with the wrapping is something silly in my CSS).

  4. davidchait
    Member
    Posted 9 years ago #

    1. Use CG-Amazon, because then I can >really< help you. ;)

    2. wrapper the current block that WP-Amazon inserts in a div, and float the div (which is what I do with CG-Amazon by default):

    <div class="float-amazon"><a> ..... wp amazon stuff ...
    </a></div>

    Then, in your CSS, you want something like:
    .float-amazon {
    float:left;
    padding: 4px;
    }

    Drop me a line at cgcode at chait dot net if you need more help or want to try out CG-Amazon.

    -d

  5. adb
    Member
    Posted 9 years ago #

    That worked. Thanks!

  6. davidchait
    Member
    Posted 9 years ago #

    no prob, glad to help!

    -d

  7. eyetag
    Member
    Posted 9 years ago #

    i get the following error message:
    Fatal error: Call to undefined function: curl_init() in /uneu/dumberg/subwww/eyetag/htdocs/weblog/wp-content/plugins/wp-amazon.php on line 101

    how can i fix that?
    thx!

  8. www.onlinecasinoselite.com
    Member
    Posted 8 years ago #

    can you fix the problem with german umlauts? they are not shown right.

  9. Michelle
    Member
    Posted 8 years ago #

    After spending a lot of time trying to install this, I have to chime in for newbies who want to use this with WP 1.5.

    To install this plugin, download this zip:
    http://manalang.com/wp-content/wp-amazon-1.2.5.zip

    The trick with this plugin is there are TWO files you need to upload into your plugins directory: wp-amazon.php and wp-amazon-plugin.php. Neither works without the other - believe me, I spent a lot of time trying to make that happen after downloading first one, then the other, from the WordPress subversion plugins directory which has no readme or instructions attached. :)

    To add your own Amazon Associates ID, go into wp-amazon.php and change line 55. I don't know what the subscription ID is so I just left that alone.

    I love this plugin because I don't have to mess with CG and getting permissions on my 1and1 server; but I would love to be able to put "Currently Reading" info in the sidebar and on Pages so maybe I'll have to go there after all. I have to say, the instructions for CG-amazon are daunting. It looks like a ton of work for someone not comfortable in MySQL. Hmmm....

  10. Michelle
    Member
    Posted 8 years ago #

    ... and the Amazon Subscription ID you should officially leave alone, according to Amazon's preference that the ID be associated with the original creator of a plugin, not the user:

    http://www.amazon.com/gp/browse.html/002-1061869-0091257?node=3434651#subscription-plugin

  11. Katrina
    Member
    Posted 8 years ago #

    can you possibly tell me how to hack the code so the html output would be <table>
    <tr>
    <td><img src="IMAGE URL/></td>
    <th>&nbsp;</th>
    <td><b>Currently Reading</b><br><a href="Product URL">PRODUCT NAME</a></td></tr></table>

    instead of the original one

  12. davidchait
    Member
    Posted 8 years ago #

    What do you find 'daunting' about cg-amazon? Especially as there is nothing you have to do related to MySQL! Where did that come from?

    All you do is unzip CG-PowerPack, copy the contents of the plugins folder into your wp-content/plugins folder, set the wp-content/plugins/cg-plugins/cache_amazon folder to be writeable, and activate the plugins (at least CG-Amazon, probably CG-Inline as well). You're running at that point. The admin screen is active, you can add products to you library (by asin or by search), and you can immediately add code to print out your wishlisht, or a 'now reading' list.

    Then, you can go into cg-plugins/cga-config.php and set your associates ID and other preferences for how things are output. You can grab cgaindex.php and put it in your wordpress root for a favorite-products catalog.

    CG-Amazon's power is that it is much more configurable, doesn't embed static-HTML (fully dynamic), and can do both post-inlined amazon links (graphical, floating, and inline-text) and sidebar lists with ease.

    If you try CG-Amazon, feel free to start up a new thread and ask away wherever you're having problems/issues. I'm trying to improve it, but if people don't give me direct/targeted feedback, it's hard to make it easier and 'less daunting'. ;)

    -d

  13. eyetag
    Member
    Posted 8 years ago #

    hi!

    is there a modification to wp-amazon that makes it possible to use it in the sidebar? need my actual readings etc to be displayed there...

    thanks, et

  14. Michael Bishop

    Posted 8 years ago #

    @eyetag, I think david chaits amazon plugin is designed to work exactly like you are describing.

  15. davidchait
    Member
    Posted 8 years ago #

    Yes, CG-Amazon can do both in-post dynamic item links (inline text or floated graphics+text+button) and sidebar lists equally well. Sidebar lists can be of the 'now reading' variety, keyword lookups, or standard Wishlists.

    Drop a line to cgcode at chait dot net if you need help. Oh, and you can get it along with the rest of the CG-PowerPack.

    -d

  16. thepete
    Member
    Posted 8 years ago #

    Well, I've been using WP-amazon for a while now and would like to stick with it if possible in 1.5.1.1 My problem are these errors:

    Warning: main(admin.php): failed to open stream: No such file or directory in /home2/www/thepete/theblog/wp-admin/admin-header.php on line 3

    Fatal error: main(): Failed opening required 'admin.php' (include_path='') in /home2/www/thepete/theblog/wp-admin/admin-header.php on line 3

    I get them after I click on "Insert Content from Amazon.com".

    Any ideas? In the mean time, I just might give Chait's plugin a try.

  17. thepete
    Member
    Posted 8 years ago #

    Well, I had a look at Chait's plugin and it seems to do everything except what I need it to. Nice plugin, in theory, but all it claims to do is let you put stuff in your sidebar--lists of Amazon products. Cool, but all I need is what WP-Amazon did which was insert individual product listings into posts.

    Fingers crossed for an updated WP-amazon for 1.5.1.1 :)

  18. davidchait
    Member
    Posted 8 years ago #

    thepete -

    I >did< give my email out for help for a reason y'know. ;)

    Step 1: Activate CG-Amazon AND CG-Inline.
    Step 2: Add to your post <!--amazon:SOMEASIN:Medium-->, where SOMEASIN is an actual asin, wherever you want the resulting embedding to occur.
    Step 3: Save the post.
    Step 4: Tweak the inline params (change size for example), and tweak cg-amazon.css, to get the desired result. Generally once tweaked, you don't need to tweak again...

    And the bonus is that it's dynamic, so things like prices will update automatically when the caching refreshes...

    Yes, it's more complex. I admit that! But it's also more flexible. For example, you can now use CG-Inline to embed a wishlist, or a 'now playing' list, directly into a post. And as the list changes, the post dynamically updates (well, assuming you aren't running WP-Cache!). :)

    Let's start a new 'How to get the most out of CG-Amazon' thread if this needs more discussion -- so it is easier to find for other users.

    -d

  19. thepete
    Member
    Posted 8 years ago #

    Thanks for the info and I hate to say this again because it's obvious that you've got a lot of enthusiasm for your plugins which are very impressive, but they're just not what I need. WP-amazon did exactly what I needed it to do. I could do a search of Amazon without having to know the AISN/ISBN or even use it once. It was very hands off--granted, it couldn't do as much as yours can, to be sure.

    Sorry, man--but thanks, anyway! I'm sure other people use and enjoy your plugins. :)

  20. davidchait
    Member
    Posted 8 years ago #

    No problem. It's really easy to use the CG-Amazon Admin interface, search for a product, add it to your local database, then copy and paste the ASIN. The advantages of using CG-Inline and being 100% dynamic (pulling up pricing, etc.) in my mind outweighs the copy-and-paste. But that's just me! ;)

    When you find that you can't get in-post embedded Amazon links quite the way you want them, drop me a line and we'll talk again.. ;)

    -d

  21. PaulChapman
    Member
    Posted 8 years ago #

    Has anyone updated wp-Amazon to return links in the new Amazon AJAX popup format, i.e.

    http://www.amazon.com/exec/obidos/ASIN/%the_ASIN%/%your_id%

    Much appreciated!

  22. davidchait
    Member
    Posted 8 years ago #

    I had tried CG-Amazon with the popup stuff, and didn't like what the JS was doing (it gave zero styling control, and didn't 'clean up' properly, causing visual headaches in the layout...).

    oh, now I remember (after reading my code, and trying it again! ;))... their JS adds wacky underlining to all Amazon links, which while it might 'enhance clickthroughs' or 'visibility', I say it 'makes my theme look gross'. ;)

    my 'work in progress' version of CG-Amazon does have a flag to rewrite any >outgoing< amazon links (CG-Amazon has 'internal' linking as well, showing product info within the context of your site...). I just tested it again on my latest codebase and new chaitgear layout, and it works, but the underlining is truly ass-ugly.

  23. Moodles
    Member
    Posted 7 years ago #

    Tree, it would be fair to note that this page

    http://tatumweb.com/blog/about/wordpress-plugins-used/

    states that 20% of the tags generated by CG-Amazon have the developer's Amazon ID and not the user's.

    I haven't used it so can't say if it does work that way, but if so, seems as if that piece of info should be in some of these threads. Just so people know ahead of time.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags