WordPress.org

Ready to get started?Download WordPress

Forums

Beta: The CG-PowerPack of WordPress plugins (146 posts)

  1. davidchait
    Member
    Posted 9 years ago #

    @apakuni:
    Inside {cg-amazon extra stuff} is the CGAREADME.htm doc. That's the steps 3/4/5 he was referring to. CG-Amazon definitely has the most detailed docs at the moment. Read that doc, THEN let us know if you still have questions. ;)
    @Beel:
    Will go look now. Not all of my posts have inline comment tags, certainly. I'll try to take a look.
    @Anon:
    Sounds from your comments on the site that it was just you and you got it downloaded properly. Let me know if you have any probs.
    -d

  2. davidchait
    Member
    Posted 9 years ago #

    Hi everyone:
    Just FYI, version 1.0b9 of the CG-PowerPack is now up on CHAITGEAR.
    Minor fix (well, major in some cases) for CG-Inline basically 'eating' posts that had zero comments whatsoever. That's now fixed, should be working as expected.
    Let me know if you run into further issues! ;)
    -d

  3. davidchait
    Member
    Posted 9 years ago #

    Okay, due to a request, 1.0b10 has been quickly posted. The only difference from b9 is a one-line fix in feedread.php, to support feeds with only a single item.
    The fix helps, but a related issue might come up elsewhere... has to do with tricky games I play with collapsing arrays with only a single element up into their parent, which is needed due to XML structuring.
    -d

  4. davidchait
    Member
    Posted 9 years ago #

    Gee, fun.
    Due to the BAD fix I added to 1.0b10 for singular-entries in a feed, I've put up 1.0b11 just now to FIX it so that CG-Feedread now works again. Also minor fixes to other systems.
    If you're using CG-Feedread, GET THIS VERSION.
    -d

  5. Beel
    Member
    Posted 9 years ago #

    Dang, I just updated to b10 an hour ago. Is b12 due out in the next hour or two?

  6. Beel
    Member
    Posted 9 years ago #

    well, i added a $showtheTime = false variable.

  7. davidchait
    Member
    Posted 9 years ago #

    Yeah, sorry about that. I actually commented it out completely for the next version -- I only really wanted it for the table-styled output for admin usage.
    And I'm having a bad day, as I JUST figured out that CG-Feedread still isn't working properly. UGH. Yes, b12 is due out real-soon-now. ;)
    BTW, after you've used Referer for a while, you can do fun things as an admin, like {path-to}refererLib.php?searches=100&match={some-word}
    Great for whittling down what searches have been done.
    Will post in a bit.
    -d

  8. Beel
    Member
    Posted 9 years ago #

    How about whittling out?

  9. Vohiyaar
    Member
    Posted 9 years ago #

    Could someone post a link to where I could see cg-feedread in action? I couldnt find it on the Chaitgear website...
    BTW, David, neat work on chaitgear... I will be recommending it to friends who are looking for gadget reviews....

  10. Vohiyaar
    Member
    Posted 9 years ago #

    Beel, your website is timing out...

  11. Beel
    Member
    Posted 9 years ago #

    Yeah, computer crashed.

  12. davidchait
    Member
    Posted 9 years ago #

    Vohiyaar -
    Thanks -- been a lot of work.
    On the front page, there are two feeds at the top of the right sidebar -- cnet and the register. But that's only one approach. You can also go with a 'posts-styled' feed output, that shows the body of each entry as well as the title. Beyond that, it's pretty flexible... I'm looking at a template-style system for more customization.
    -d

  13. apakuni
    Member
    Posted 9 years ago #

    David .. FYI. Naming the one folder ...
    cg-amazon extra stuff
    is a pain on *nix which does not like the spaces. You might consider ...
    cg-amazon-extra-stuff
    Just a thought.

  14. apakuni
    Member
    Posted 9 years ago #

    David,
    I took some time to put everything in it's final place and update the docs in CG-PowerPack. The download link is available with the related post.
    Feel free to use what you want and ignore the rest. If you use something, let me know and I will note it on my blog.
    Doug

  15. apakuni
    Member
    Posted 9 years ago #

    OK ... CG-Amazon. I still have questions.
    I followed Steps 3,4,5 in the CGAREADME.

    1. I have the CGA link in the WP Admin UI.
    2. cg-plugins/cache_amazon/ is set to 777 so it writeable.
    3. I invoked the CGA menu and generated my table.

    Now, I see the CGA Menu. But nothing seems to work.
    If I search for an item, I always get "No Items Found". Does this actually query Amazon? I assumed it did. Or, does it only query the local DB of hand-entered ASINs?
    If I put in an ASIN, I get the following error:
    Result = [ERROR_QUERYING_AMAZON]
    What am I missing?

  16. apakuni
    Member
    Posted 9 years ago #

    Beel: I tried a more specific queries ["The Hobbitt", "Doyle Brunson", "Liz Phair"]. All return "No products found."
    I know those should return a reasonably small dataset. So, I am wondering two things ...
    1. Do I have the most recent codebase? Will confirm when I get home tonight.
    2. Assuming I have the most current code, is there a timeout setting I can should manipulate to give my install more time to get a resultset?

  17. davidchait
    Member
    Posted 9 years ago #

    New CG-PowerPack 1.0b12 is being uploaded right now. Fixes the 'single RSS entry' problem, AGAIN, and doesn't break normal feeds. Phun.
    Results should be returned in seconds. I've had pauses of maybe 10-12s on busy days. If it runs really long, something bad is going on.
    I wouldn't want to make the timeouts longer, as Amazon should be returning results quickly -- if they can't, the server is already overloaded or down. In fact, it shouldn't wait 30s... I should pop out in 10-15 probably on average case.
    I usual use, the system is 're-looking-up' data for an already existing cached item. So if it fails, it can look again next pageload. Rather have it fail quickly. ;)
    In the future, I'm going to add a cron-ready command that can be run 'offline' to batch update your table, your wishlist, whatever, so that people don't randomly hit reload-waits...
    apakuni - I love all the help/feedback, but I'm really not looking to confuse users by having more places/versions of the code to download... It's bad enough that I MYSELF have two versions (the powerpack and the individual archives), and that's confusing people greatly already!
    Give me a few days to look at your tweaks, figure out what/how to integrate. Again, appreciate people who are giving more feedback on things to make the CG stuff better for everyone! ;)
    And let me know if you're still having problems with timeouts, what time of day, what searches, etc.
    -d

  18. davidchait
    Member
    Posted 9 years ago #

    Hot on the heels, I've added minor tweaks to CG-Feedread and uploaded b13. The main changes here were:
    - proper decoding of the timestamps, so that showTime does something useful and consistant.
    - fix for Atom 'summary' field use for entry description, which was causing blank descriptions (well, actually repeated site-description).
    feedread.php is the only file changed since b12.
    -d

  19. apakuni
    Member
    Posted 9 years ago #

    Beel - I thik I have an older codebase installed on my test box. Will move the code up and should fix my issue.
    David - It was never my intention to maintain a seperate branch. I needed a place to put it so you could get it and maybe some others who could look at it and tell you if they thought it was useful.
    Let me know when/if you elect to use anything I did and I will pull it down.

  20. apakuni
    Member
    Posted 9 years ago #

    On the timeout issue ... would it be useful to have that as a variable option in the search? If it is available, one could let the search run deeper for items with lots of possible matches. If the var is not set, it defaults to 15s.
    Just a thought.

  21. davidchait
    Member
    Posted 9 years ago #

    Understood -- no rush to take it down, let's see if we get any further feedback...
    On timeout, certainly possible to add another option. The real problem is that it shouldn't be taking so long for responses (note that on many servers, PHP has a 30s timeout in a script, which would nuke the process anyway...). It may be that there are better options that I can use in the initial search to make it more 'lightweight' so I get responses faster. Hmmmm...
    -d

  22. apakuni
    Member
    Posted 9 years ago #

    Updated my test distro to include CG-POWERPACK-1.0b14 code. Renamed to CG-POWERPACK-1.0b14-D.zip to stay in line with Davids changes.

  23. davidchait
    Member
    Posted 9 years ago #

    Awesome, thanks!
    Both of you, definitely let me know when you get to try the CGA Admin search system with the new code... You should notice the difference immediately -- well, assuming Amazon isn't being slow-as-molasses. ;)
    -d

  24. Beel
    Member
    Posted 9 years ago #

    A lookup for "testament" renders 10 items in 2 seconds and 50 in 8 - pretty impressive.
    apakuni: Searching for phair on music returns 14 items and B00009OOH9 returns "Liz Phair (Liz Phair)"

  25. Beel
    Member
    Posted 9 years ago #

    apakuni: I posted the above just to let you know that there apparently is something wrong with your set-up. I am hosting off my computer and don't have any special modules enabled. Pasting the link above directly into my browser does not return an error. Maybe the site was having difficulties? Have you tried it again recently?

  26. davidchait
    Member
    Posted 9 years ago #

    beel:
    glad it all seems to be working. good sanity check.
    apakuni:
    - the requests are all tagged with my dev token and associate ID -- the 'rewriting' of associate IDs happens in the output routine.
    - that looks like a proper URL, though I've never seen the "error 11, Resource temporarily unavailable" thing. Sounds like it's unable to open an outgoing HTTP request or something weird.
    - Just needs basic PHP with XML functions (which are part of the default installs from what I know). No PEAR, no SOAP, no other things. Clean and simple.
    Yeah, if you want to give me access, I'd be glad to help troubleshoot. Never heard of anyone having problems like this, so would be interesting to see phpinfo() on your box, and I can turn on heavy-debug-output mode and maybe it'll tell us what's croaking.
    -d

  27. apakuni
    Member
    Posted 9 years ago #

    David ...
    Shoot me an email (apakuni_AHT_ursastudios_DOHT_com) and let's set up a time to troubleshoot. In the interim, phpinfo is here ...
    http://admin.kavido.com/phpinfo.php

  28. apakuni
    Member
    Posted 9 years ago #

    David ...
    Are you ever in IRC? we could also hook up on AIM, ICQ, MSN or Yahoo.

  29. TechGnome
    Moderator
    Posted 9 years ago #

    AAAAAAGH! David, I've got the latest CG-Amazon installed, but I'm having a bit of a problem.... it doesn't validate..... also I had to make a small change. It kept wanting to output a target element (which is invalid in XHTML) even though I had set it to not use external links.
    what I'm now having a problem with is the order of the ul, li, & a tags.... not sure how it should be, but having the a tag wrap around the li tags doesn't seem to work. Well, it doesn't work for the validator.
    url: http://techgnome.anderson-website.net/index2.php
    click the valid XHTML 1.0 under "badges" on the right.
    Would like to get this to validate out properly.... I suspect that each li item is going to need it's own a href...... ick!
    Thoughts, comments, suggestions?
    TG

  30. TechGnome
    Moderator
    Posted 9 years ago #

    Beel - thanks... I'll set it back to span and see what happens.
    TG

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.