WordPress.org

Ready to get started?Download WordPress

Forums

CG-Amazon ready for primetime! (116 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    would be nice to have the look n' feel integrate into the existing css file. I'm not css wiz, any thoughts on what this would take?

  2. Beel
    Member
    Posted 10 years ago #

    How does it not? Maybe a link to your implementation would help. I think it looks pretty darn integrated on my site. Whatever issues you have I am sure you will find plenty of help here.

  3. davidchait
    Member
    Posted 10 years ago #

    Yes, post a link to your site. I've tried very hard to make it integrate with default WP-stylings, and also the type of usage/ordering/layout I've seen across the web on other blogs (and other blog systems). Beel's has looked pretty good, and my test WP1.2 default styling the cgaindex.php page even looks like it's part of the site (as it does on Beel's site).
    Always looking to help look into, and fix, potential issues!
    I'll go add the MyISAM thing right now. I don't know why I left that out, since I should have copied it direct from a dump of the DB. Weird.
    -d
    http://www.chait.net

  4. davidchait
    Member
    Posted 10 years ago #

    Umm, anon who posted the MyISAM thing (not sure if those were different people):
    What's the problem with the code? The linebreak before the closing quotation mark for the string? I thought the MyISAM was actually MISSING... now that I see it's not, I'm consfused as to the error here. Want to make sure I fix it correctly! ;)
    -d

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    (different anon) I had same trouble with MyISAM section.
    I simply took out the line break and the function work fine then.

  6. davidchait
    Member
    Posted 10 years ago #

    So, I'm guessing there's now at least a few dozen users playing around with CG-Amazon, and I've finally gotten one pingback (yay!) from a user who wrote up a post about it.
    Would LOVE to hear any positive or negative feedback about installation or use, setup, configuration, styling, etc.
    Also looking to hear what's missing. More control over output? Template-type output? More search options? No detailed caching, just the simple data in the database? More template-tag functions? Lemme know!
    -d

  7. davidchait
    Member
    Posted 10 years ago #

    I'm looking toward locking in on the .93 release, want to check if there's any minor tweaks to features, docs, tagging, etc., people would like to see get in there. I'll probably continue to revise the version with next incremental feature changes (and only use sub-sub numbering for bugfixes), hoping I'll reach a stable 1.0 release once I have a few dozen people actively using CG-Amazon and seem to have all major basic features covered, stability in place, all answers in docs, etc.
    Thanks everyone! (And welcome to all the MT-Converts! :) Try away!)
    -d
    CHAITGEAR

  8. davidchait
    Member
    Posted 10 years ago #

    Okay, when I get around to building and putting up 0.93, it'll have full support for Wishlist lookups. Asin, Similar, Upc, Keyword, Author, Actor, Artist, Power, and Wishlist should all work at that time, though many of them are 'hidden' through the more complex lookup function(s) at the moment.
    -d

  9. davidchait
    Member
    Posted 10 years ago #

    Well, after birthing 0.93 last night, I got a simple request to be able to pass a requested image size to the quick tag functions, so I threw that in and uploaded 0.931 a minute ago. Lemme know how it works! ;)
    CG-Amazon Download
    -d

  10. davidchait
    Member
    Posted 10 years ago #

    Looks fine by me... lemme know if you fixed it, or if it's just coming and going...
    -d

  11. davidchait
    Member
    Posted 10 years ago #

    Well, tell me where the conflicts are occurring.. I'll start mixing up my token names maybe prefixing cga or something to make things more unique.
    -d

  12. Beel
    Member
    Posted 10 years ago #

    Ah, it is over my head (way over) but my guess is it is not an issue with cg-amazon. It appears word-image-counts applies its own filter to the_content and attempts to access wp_posts to do a word count so of course in cgaindex that will return database errors each time (does that make any sense, let alone is my logic correct?? Who knows, I know I don't!). You will just have to look at the plugin and I will just have to turn it off (but I will leave it on awhile so you can take a look at the errors returned).

  13. davidchait
    Member
    Posted 10 years ago #

    EEEEEK. Yeah, it looks like it is trying to do a database access at that moment. Not a hack that I'd like, for certain! I don't want anything introducing more DB accesses, especially not during a transformation like that.. weird.
    So yes, the issue is that >I< try to use some of the filtering methods in order to best process the blocks of text -- maybe I shouldn't use what I am using (use one of the_excerpt or some other filter), but it seemed a rational reasoning originally... still does. ;)
    You can turn it off -- I now know what's going on. Just evil. ;)
    -d
    CHAITGEAR

  14. Daisyhead
    Member
    Posted 10 years ago #

    David,
    I 've implemented the hack and LOVE it! I had a few simple requests, which I'm playing around with right now, so hopefully I won't figure them out before you spend time trying to help! Okay, here goes:
    1. Is there any way to add more variables, such as product price, the rating of the product on Amazon, complete with their little stars?
    2. Is there any way to use Amazon's smaller product image, rather than the default size that's included now?
    3. And this one may require a little tweaking on my part. Here's my vision of how I'd like AMM to work on my site. I want to list the current book I am reading, complete with the Amazon image of the book and product info. Then below, I'd like to add a section for what's "Up Next," but I'd like to just use a text link to the book. And the last section would be previous reads with text link to the last 3 books I've read.
    Too complicated? I would really appreciate any help on these issues. I've already gotten a few fellow bloggers to switch to your hack. They love it too. Thanks so much for all your hard work on this and for making it available to the rest of us WP users. :-)

  15. davidchait
    Member
    Posted 10 years ago #

    Daisyhead:
    1. yes, there are ways to add more variables. It just gets a bit more tricky. You can already do things like price and ranking, as you'll see if you look at my site. Let me see if I can come up with some simplified ways to access that stuff. Do you want it on a global basis, per list, just in cgaindex pages??
    2. default should be Small. If you're getting Medium or Large, let me know, as it shouldn't be! ;)
    3. You meant CGA, not AMM, right? (That'd explain not getting small pix! :) ) You could implement this as 3 custom categories (at least, that's how I'd likely do it for ease of implementation), and then three calls requesting the three cats, first call with icon, second and third call without. That you can do right now, no hacking, just categorize the books using the custom category field in the CGA admin interface.
    Not at all complicated requests, should all be there pretty much already, but I'll look at how to expose more of the fields in a simple manner (well, there IS a way, but it depends on when/where you want them to show up...).
    -d
    CG-Amazon Download

  16. davidchait
    Member
    Posted 10 years ago #

    0.932 is up -- fixed the new image-size parameter.. wasn't working properly in 0.931.
    -d

  17. Beel
    Member
    Posted 10 years ago #

    You have done some impressive work on this. Looks very nice.

  18. davidchait
    Member
    Posted 10 years ago #

    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

  19. Beel
    Member
    Posted 10 years ago #

    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.

  20. davidchait
    Member
    Posted 10 years ago #

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

  21. davidchait
    Member
    Posted 10 years ago #

    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

  22. davidchait
    Member
    Posted 10 years ago #

    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

  23. davidchait
    Member
    Posted 10 years ago #

    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

  24. davidchait
    Member
    Posted 10 years ago #

    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

  25. gbarber
    Member
    Posted 10 years ago #

    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

  26. davidchait
    Member
    Posted 10 years ago #

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

  27. david
    Member
    Posted 10 years ago #

    I would really like to use this plugin, and have followed all of the setup and install instructions. However on pressing the “add� 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(http://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 don’t use my browsers back button it would eventually bring down my server. Any ideas? any clues as to what might be wrong?

  28. davidchait
    Member
    Posted 10 years ago #

    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

  29. TechGnome
    Moderator
    Posted 10 years ago #

    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

  30. davidchait
    Member
    Posted 10 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic