• I’ve made the 0.91 BETA release available:
    https://www.chait.net/index.php?p=147
    It provides easy populating of a database full of your favorite Amazon products, and quick adding to your template for displaying recent and random items.
    Supports pretty much any product listed on Amazon (at least first-party items — anything with an ASIN), in every catalog — games, toys, music, dvds, books, electronics, apparel, you name it!
    Basic locale support, though I’ve only ever tested US (people wanting to try outside of US should talk to me).
    Any Qs, fire away!
    -d

Viewing 15 replies - 46 through 60 (of 115 total)
  • You have done some impressive work on this. Looks very nice.

    Thread Starter davidchait

    (@davidchait)

    Thanks Beel! It is coming along, for certain. There is still a TON of powerful functionality under the covers that I can’t expose in simple cases yet, so I need to build more access to all of that. People are really only scratching the surface of what the system can do.
    I’m hoping to add some kind of templating support in, so that people can really determine how the data will be output/styled. Haven’t figured out the best approach, open to suggestions.
    Oh, and uploaded 0.933 to the site, in case people missed my other post. The new Wishlist function wasn’t caching the results, so it did the full lookup EVERY time the page loaded. Fixed that!
    CG-Amazon Download
    -d

    David, just tried out the wishlist – sweet. Seems that I get an image “small’ ‘medium’ or ‘large’ but (the other shoe drops) false still returns the default imagesize.

    Thread Starter davidchait

    (@davidchait)

    URK!?
    Sheesh, maybe I missed something adding in the size support. I’ll check…. This is why I used sub-sub-versioning! ??
    -d

    Thread Starter davidchait

    (@davidchait)

    Okay, 0.934 is up, fixes the new image size support so that null or empty string or false gives you no images. HOPEFULLY, with this in place, the Wishlist and Imagesize enhancements are now all working ‘properly’. Let me know if you find other issues.
    CG-Amazon 0.934 Download
    -d

    Thread Starter davidchait

    (@davidchait)

    Jumping forward, 0.935 updated to new XML parsing code (more ‘compatible’ results), and NOW we’re up to 0.936 which fixes malformed URLs to cgaindex.php from product listings.
    CG-Amazon 0.936 Download
    Let me know if other issues. If all continues cleanly, I’ll bump to 0.94 when I can get in more formatting control. ??
    -d

    Thread Starter davidchait

    (@davidchait)

    Version 0.94 was just posted up. It resolves multiple calls to show_amazon_items, as well as some warning messages (some related to the first issue) — I think the line 1220 was one of them. Had to do with null results coming back and still trying to process them…
    CG-Amazon 0.94 Download
    -d

    Thread Starter davidchait

    (@davidchait)

    Two days later, another MAJOR bugfix, so another major increment in version number. CG-Amazon 0.95 is up, and ALL USERS should really upgrade (and upgrade any other CG hacks/plugins at the same time…).
    Timestamps were being accidentally ‘slammed’ every time someone viewed an item, which invalidated them completely. MY BAD. ??
    To ‘clean up’, go into the CGA Admin page, and then edit the end of the URL in your browser — add onto the URL:
    ?action=flushtimes
    … and then hit enter or Go. That action (a hidden one) will reset ALL timestamps in the table to ‘fake’ times on Jan 1, on second incrementing for each product ID. So basically, this will reset the timestamps to the ‘raw order of entry’ into the database. You can then go and hit the “Time” link in the admin page to pop certain timestamps up to the current date/time.
    All functions have been cleaned up so they should now properly deal with the timestamps, AND in addition I’ve further cleaned up the code so it ALL goes through the db_helper.php access functions for future improvements/stability.
    Thanks goes to Mark Thomas for noting how wacky this was (I’ve seen it for months, and never realized what was occurring), so that my brain could get jumpstarted and see the issue underlying the system.
    Any further bugs, issues, feature requests, post a comment on the site or here.
    -d

    I keep getting this error when trying to add an ASIN number:
    Fatal error: Call to undefined function: stream_set_timeout() in /Users/xxx/Sites/pwwo/wp/cg-plugins/XMLParser.php on line 61
    my WP install is in the folder /wp
    my index.php is in the folder /pwwo

    Thread Starter davidchait

    (@davidchait)

    now fixed in 0.952 release:
    CG-Amazon Download
    Also fixed CG-Feedread at the same time, same problem possible.
    Thanks!
    -d

    I would really like to use this plugin, and have followed all of the setup and install instructions. However on pressing the a€?adda€? button I come to a page which looks like this.

    Warning: fopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/wordpress/cg-plugins/XMLParser.php on line 61
    Warning: fopen(https://xml.amazon.com/onca/xml3?t=chaitgear-20&dev-t=D1YTAYQUFY4QNO&AsinSearch=test&sort=+salesrank&offer=&type=heavy&page=1&f=xml): failed to open stream: Address family not supported by protocol in /var/www/wordpress/cg-plugins/XMLParser.php on line 61
    Warning: stream_set_timeout(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 63
    Warning: feof(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 67
    Warning: fread(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 68
    Warning: feof(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 67
    Warning: fread(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 68
    Warning: feof(): supplied argument is not a valid stream resource in /var/www/wordpress/cg-plugins/XMLParser.php on line 67

    The errors continue forever, and I guess if I dona€?t use my browsers back button it would eventually bring down my server. Any ideas? any clues as to what might be wrong?

    Thread Starter davidchait

    (@davidchait)

    Yeah, that’s most likely a failure on Amazon’s part, though my code isn’t necesarily handling it well (well… or PHP isn’t handling it well!).
    They had massive periods of 503 Temporarily Unavailable messages coming back, I wonder if they took stuff down for a while yesterday.
    In any case, I now have an alternate implementation of HTTP reading (fun) which I’ll be seeding out today and tomorrow.
    -d

    Geeeze! I need to stop by your site more offten David, looks shaweet! At anyrate, I have a couple of questions.
    1) I take it that it’s fairly easy to customize. Yes, no?
    2) What I’d like to do is display books from a keyword search using the new user meta keywords (where the key could be AmazonKW) that are part of the post – did that make sense?
    3) I’m not sure I’m clear on the use of the database. Could you elaborate?
    4) Is it necessary to ise the cgaindex.php file? Can I set the link to go straight to Amazon?
    TG

    Thread Starter davidchait

    (@davidchait)

    Hey TG. Thanks!
    In reverse order:
    4. No, not necessary. In fact, it was supposed to default off — I copied the wrong stuff from CHAITGEAR. The next release will have it default off AND I will be making announcements as to changing the default pref. Most sites DO NOT WANT to run cgaindex, would rather link out immediately. ??
    3. The database is when/if you want to do your own lists. Say what you’re reading, what you’re listening to, etc. Favorite books. Whatever. It lets you build up a list of products you like/want/own/recommend, and show them in a variety of ways. Also, the database allows you to add custom ‘reader’ notes for any Amazon products that might get displayed via ANY of the call methods (keyword, wishlist, or db-listing). Even with the keyword stuff, the DB is still very useful. Also, I may add some search capabilities to the DB, so that you can do direct searchs of JUST your DB items, and not all of freakin Amazon… ??
    2. Yes. It’ll be one call like the current stuff, you specify the keyword(s), it does the rest. Of course, the more you can specify, the better. If I add internal keyword searches, you’ll be able to specify to search Amazon or just the local DB items…
    1. Very easy to customize. Though, I have a wishlist of things like ‘templated output’ for simple output formatting (and field usage..). But it blends into WP sites easily.
    And,
    0. With the new CG-Inline system (coming soon), you’ll be able to embed Amazon links into your posts just like I do on CHAITGEAR, and have the data all updated live (good if you want to show prices, ratings, etc.).
    -d

    Check the cache folder – are files being saved there?

Viewing 15 replies - 46 through 60 (of 115 total)
  • The topic ‘CG-Amazon ready for primetime!’ is closed to new replies.