WordPress.org

Ready to get started?Download WordPress

Forums

Brave Souls for CG-PowerPack 1.5 Testing? (59 posts)

  1. davidchait
    Member
    Posted 9 years ago #

    great. I just fixed problems with retaining sort-by when using the prev/next page buttons. Bunch of things changed going to non-URI methodology... grrrr.

    But seems to be working aside from that.

    I'll 'fix' the WhatTunes thing as soon as I get the txt file -- using the keyword search with the song title and artist, I got five hits, so that is at least semi-working. We'll have to see what's really in the txt file tho... ;)

    -d

  2. davidchait
    Member
    Posted 9 years ago #

    Okay, for all you fun-following-folks, CG-PowerPack 1.5a3 is now up.

    Fixes a whole bunch of issues with the new CG-Amazon ECSv4 searches. Should be much better overall, handle more error cases gracefully (though I need to work on logging things better).

    Also rewrote how CG-WhatTunes actually runs its lookup on amazon, to try and get a hit on the album name after album+artist fails. And now does a much more specific lookup.

    Updated the cg-blacklist file (for CG-Referrer and CG-Antispam) to catch the latest bunch of spammer idjits. Updated AntiSpam with html-in-name checking, blacklist-word in name checking, and some other cleanup.

    And some continuing CGA-Admin tweaks.

    Feedback always appreciated. ;)

    -d

  3. davidchait
    Member
    Posted 9 years ago #

    Working on 1.5a4. Improvements include latest blacklist updates (I'll eventually come up with a system for auto-downloading -- and uploading -- the latest blacklist entries...). Other tweaks to CG-AntiSpam continue, would love suggestions for improvement.

    Also been working on non-US locale support under Amazon -- just proved out UK stuff works at basic level. Improved the error-checking on the new AWS4 queries as well. Also going through and updating the searchable catalogs for each locale. Fixed some interface issues with "Too low to display" prices.

    -d

  4. guboogi
    Member
    Posted 9 years ago #

    I'm still running 1.5a1, but I was just curious if you found whether there was a problem with WhatTunes when it didn't find a match for Amazon (but it displayed the link to Amazon anyway). Keep up the good work.

  5. davidchait
    Member
    Posted 9 years ago #

    Sorry! Above comment:
    <bquote>Also rewrote how CG-WhatTunes actually runs its lookup on amazon, to try and get a hit on the album name after album+artist fails. And now does a much more specific lookup.</quote>

    Reading between the lines, that meant fixing WhatTunes when the query returns no album from amazon. Been working here for 24h, looks good so far. I'll have 1.5a4 up later tonight, with further improvements in other areas (no specific WT changes from a3 to a4, at this moment...).

    -d

  6. davidchait
    Member
    Posted 9 years ago #

    Okay, I've just posted CG-PowerPack 1.5a4.

    Major fixes to non-US locale support. Should now support ALL ECS locales, though I only checked bare UK support. Also, the searchable catalogs are hand-managed arrays based on a table supplied by amazon, so for any given locale their might be a missing (or extra) locale in the list in the CGA-Admin search-in dropdown.

    Minor revisions to cgaindex display, cga-config base state (Large was too big an image default for cgaindex with average templates), much improved error detection/output for bad Amazon queries... and more.

    Oh, and Blacklist update should catch today's newest spammers. ;)

    Has anyone had a chance to play around with CG-AntiSpam? I might open a new discussion topic to have people play around with it and the CG-Referrer stuff, as they are both 'rough' starts.

    I'll also probably move the major discussion of this over to my site in the next few days, so that I don't have to check here. ;)

    -d

  7. guboogi
    Member
    Posted 9 years ago #

    I just installed 1.5a4, and here are some of my thoughts:

    - I think you got it to use the "non-Amazon" display if it can't find a match. However, I think I'd prefer if it didn't also say "Trying to look-up product, the following error occurred: We did not find any matches for your request." Is there an option to not output that?

    - On a related note, (maybe it's how my ID3 tags are setup) but I tried a song from the Garden State OST again and it gives me the "We did not find any matches" but then it also displays the correct link/album art for the album. Strange.

    - Just as a side note, you might want to add a "$output = stripslashes($output);" after you define $output (three times in the code, I believe) as the script always adds a "/" after every apostrophe that is output. I always have to go in and manually add it myself to correct for this, so just a thought.

    - Another thing I'm noticing is that the Amazon hyperlinks have changed a bit. On my site I use a dotted-underline when hovering hyperlinks and in previous versions of the code it would always make seperate underlines underneath the album image and artist/album. Now it just makes one underline underneath the artist/album but it spans the width of the album art. I was just curious is this was an intentional change.

    That's it, I think. Hope that was at least a little bit helpful.

  8. guboogi
    Member
    Posted 9 years ago #

    One other thing I noticed:

    - I have a few Asian songs (with ID3 tags in Asian font) and I noticed that it would never output these characters correctly in previous versions of WhatTunes. In 1.5a4 it seems to be displaying the characters fine in the song title. However, when these characters appear in the artist field, it always displays the artist as "No keywords given." Do you think there's a way to get it to display properly in the artist field as well (even if it means not searching Amazon, which isn't that big a deal actually since it's usually wrong for Asian songs.)

  9. guboogi
    Member
    Posted 9 years ago #

    Okay last post tonight (I promise):

    - It's really bugging me that I can't figure out how to get rid of that "-" between the artist and album and then split the information on two lines:

    [Album Art]
    Artist
    Album

    instead of:

    [Album Art]
    Album - Artist

    I know I managed to do this in CG PP 1.0 but I can't remember how I did it, and I can't see to find where it's getting that "-" symbol from. Surely you must know ... right? Thanks!

  10. davidchait
    Member
    Posted 9 years ago #

    1. The error message shouldn't be there. That's my bad. I disabled WhatTunes as I only wanted a single CGA query happening on a page so I could debug other CGA problems. I'll fix that!

    2. Yes, that's #1 coming into play. I search on album+artist first, and if that comes back null I try just album. In your case, coldplay isn't listed as an artist for the album, but the album alone comes up fine.

    3. From the php website: you should never have to use stripslashes. ;) Of course, the funny thing is I already DO this in tracktunes.php, where the items are coming in. And I have quotes in song names that are working fine, so not sure if maybe your song-blogger is adding slashes, AND your server is adding slashes, so I need TWO stripslashes to clean things up. But there's danger stripping out slashes, as sometimes they are proper.

    4. Hyperlinks shouldn't have changed much. Possible that the CSS isn't getting loaded, or that the cga-config default changed ('li' vs 'span' wrapping...). The latter would screw with things certainly.

    5. Not sure -- you mean you have unicode song titles? I'd have to see how they're encoded in the file (feel free to send it along again...).

    6. I'll look into the 'formatting' stuff once I get the next release out. ;)

    -d

  11. guboogi
    Member
    Posted 9 years ago #

    As for the stripslashes, I'm not sure what it is that's adding slashes (iTunesBlogger, my server, or both) but they're definitely there. The places where I put the stripslashes code has worked perfectly so far (and I don't have any songs that have \'s, only /'s and those come out fine). For what it's worth, the \'s appear even in the Tunes WP Admin page (displaying the last 20 songs) but the slashes are removed when the info is actually posted on my site. Hopefully that sheds some light on the issue ?

  12. davidchait
    Member
    Posted 9 years ago #

    I'll take a look. I'm not sure what's going on, since I'm stripping the slashes before they go into the tracking file. I can only guess that it is getting double-slashed.

    If it shows up in the datafile, that means that my single stripslashes wasn't enough. I should almost have you turn that off, and see what gets into the file then... ;)

    I've resolved a number of the issues, but won't have time to look at the unicode/asian thing for a bit as I've just got other high priority items.

    -d

  13. davidchait
    Member
    Posted 9 years ago #

    Hey folks --

    I'm still plugging away at things. Might do some breakout threads here to discuss Amazon, Referrer, AntiSpam, and others in more detail. Heck, even Inline, which in combination with Amazon makes for cool and simple inserted amazon links within posts.

    AntiSpam is coming along -- I've added a number of new detection approaches to it. Amazon stuff all seems to be working now, and Referrer stuff still needs a bunch of additional Admin screen work to show people more of the info/stats they're looking for... I'd also like to get my pageview tracker converted over, as then I can get my post 'heat' code converted to a more general plugin.

    If there are any feature requests, feel free to shoot them along. Obviously, I'm still spending more time trying to get CHAITGEAR migrated over into plugins-for-1.5 workability for all features I've hacked into my original 1.0 core codebase... and there's a lot of custom stuff that still isn't exposed properly (or at all) so will need to continue as semi-hacks.

    -d

  14. davincim
    Member
    Posted 9 years ago #

    Hey davidchait,

    I've been reading this thread throughout the day and have become very interested in your Powerpack stuff. I haven't installed it yet, but look forward to when I can get the time to get into it. Kudos to you for all your hard work!

    Because I haven't installed it yet, can you tell me if I have the option of installing just what I want, or does it install the whole enchilada?

  15. davidchait
    Member
    Posted 9 years ago #

    1.5a5 is now up, and I've put it off my CG-PP page so I can better manage & track downloads.

    http://www.chait.net/index.php?p=238

    Lots of fixes, plus no-interface-yet CG-PostOrder just because it's in my folder now. ;)

    -d

  16. georgianlady
    Member
    Posted 9 years ago #

    I've got WP 1.5 installed, and just loaded up CG-PP1.5a5, using referrer first. Just that so far.

    I was using stat-traq and didn't like the interface and how it worked at all, so I do like the so-far CG-referrer wp-admin interface ... a place to actually delete data! That's great!

    I'll be testing out CG-anti-spam one of these days as well.

  17. davidchait
    Member
    Posted 9 years ago #

    georgianlady:
    The admin interface for CG-Referrer is pretty bare-bones at the moment. It is storing a good amount of data, and I plan to set up more admin pages to show you various recent history or overall roundup data. One thing that won't make it into a 1.5 final, but maybe into a 2.0 release is tools to store 'aggregate data', roundups on say a weekly or monthly basis, and then automatically flush the source data from the database. It adds up after a few months if you have 1000+ users/day... ;)

    davincim:
    I've packaged it up as one zip to make it easier for me, and users, to manage -- since many of the plugins are designed to work together or share 'CG library' code. But the plugins are all individually activated, so you can upload the whole enchilada, and then activate and use one at a time... basically.

    -d

  18. georgianlady
    Member
    Posted 9 years ago #

    davidchait -- I installed cg-referrer before, as I stated above, and it's fine ... I just installed it on another blog, it's in the same database though, and so it's sharing the "referrer_visit..." automatically.

    That functionality is alright, I guess, since it's my photoblog that I just added it to, as long as their will be no conflict with features and such that are there just not documented yet, or future ones.

    I really would like to see "Who's Online" counts and be able to track by "user name" as well, if they've posted comments before, such as Wp-stats does.

    I have WP-STATS on a totally different blog, and like features in it, but like CG-REFERRER on a different level, so with that said, any features that wp-stats has that cg-referrer doesn't have, that would seem good to you the developer of the code, would it be possible to update cg-referrer with some of that capacity?

    wp-stats is rather barebones right now too. There is another hack out there that worked for 1.2, but I can't get it to work with 1.5 wp-usersonline.php ... so that's sort of the functionality I'd like to see with cg-referrer.

    So do you forsee a problem with me using cg-referrer for 2 different blogs in the same database?

    And I'm wondering IF I wanted to split them out ... I'd want to do that soon before hits to my photo blog start going more ... how can I do that ... since the Plugin auotmatically does everything.

    I could look at the code myself, but why when I can ask the delicate Q's of the creator! :) Especially seeing as I'm nifty with code hacking sometimes, but not especially a pro at it, not at all.

  19. georgianlady
    Member
    Posted 9 years ago #

    I said in the post above "wp-stats" but really MEANT I have "wp-advanced-stats" installed on one blog and like some of it's features. I have NOT tried wp-stats. :red in face:

  20. davidchait
    Member
    Posted 9 years ago #

    cg-referrer with two different blogs in one database could get confusing. I can likely do a quick update to grab the wp 'prefix' and use that labelling instead. Unfortunately, there's no 'easy' way to migrate the data -- it'd be a chunk of work to write a script to move referrer entries, as it'd depend upon whether there's even enough info in the log for me to determine what to move.

    If you want, I can tell you what to tweak in the code, but I'll go take a look.

    As for other features:
    - 'users online' can be done a number of ways. I'd likely try to skip the database altogether and store in a flat file on the webserver. But most of those plugins base off of cookies and other stuff, which I'm trying to avoid. if you really, really want to use cg-referrer for this purpose, yes, you could do something like a query that counts the unique IPs that have visited in the last 10 minutes or something. But queries like that take a toll on the speed of the page, for no good reason (IMHO). I could add a cache, so that it only does the query once every 10 minutes (or every 5, split the difference), so that only once in a while does someone get the time hit of the query.

    - tracking by user-name is outside of CG-referrer. that really wants to be a different thing entirely, as I can't guarantee a connection between username and IP...

    - the various 'stats' plugins are doing a whole host of different 'counting' stats, like users, comments, posts, etc. CG-Referrer was targeted at visits/referrer/query logging, as well as blacklist/refusing users with 'bad' referrers -- and that list is shared with CG-AntiSpam (to filter comments/trackbacks with the same list). But it isn't meant to show other wordpress stats -- in fact, aside from the new Admin pages, CG-R doesn't depend on WP.

    - there are other things you can show, such as the last n searches that brought someone to your site. If you get a lot of visitors from search engines, that's always a good one.

    -d

  21. georgianlady
    Member
    Posted 9 years ago #

    OK thanks.

    I haven't looked at how to show stuff on pages outside of the stuff in the wp-admin interface, except for one or two things in the cg-referrer readme a while ago, that only resulted in errors saying it couldn't find "referLIB" something or other, which I couldn't find in any of the cg powerpack and figure it's old data ... so do you have any updated codes to copy to utilize referrers and such outside of wp-admin in 1.5 ... or have I missed that it's already somewhere ... I can't find it when I've looked. I admit I haven't tried to figure it out on my own, just looked for a "quick copy the code and personalize it as needed" sort of thing.

    About the two installs of WP in one database and cg-referrer having only one table and so both wp installs are using it: Do you mean it can get confusing just for me reading the data ... or that the database table will get confused and mess up sooner or later?

    In any case, I have no problem with you being able to change the tablenames and update that way ... I don't need to move the extra data out from the one wp install if it won't matter to leave it there, it's not that much data right now. So if/when you have a fix available, I'd sure be interested.

  22. georgianlady
    Member
    Posted 9 years ago #

    davidchait --You Said: ----CG-Referrer was targeted at visits/referrer/query logging, as well as blacklist/refusing users with 'bad' referrers -- and that list is shared with CG-AntiSpam (to filter comments/trackbacks with the same list).-----

    So if someone with a 'bad referrer' comes to my site, with cg-referrer installed -- what happens on their end?

    I am not using CG-AntiSpam since I had that one bad try-it-out. I'm not sure what happened, if I did something myself that I shouldn't have, or not.

    Anyhow, is the spamlist gotten from outside of my site, or from within cg-* or from a combination of stuff ... my own spam words from within wp, for instance, plus other things?

    I know that the cg-referrer stuff has lots of site inside it's files and lists bots to tag them as bots if they visit ... it's logging them as bots but do they see my content? Does the blacklisty thing update at all, or draw from an updated list, or ... I could ask a million ways so I will just plain ask instead if there is a simple explanation for what happens --and what referrer does or should do with anti-spam, and how referrer works, if it does against bad referrers ... I hope that's all not confusing! :)

    I'm truly just looking for a simple explanation for what should be happening on a baddies end if they visit, and how it's supposed to work. Not giving away secrets to innerworkings, just the basic explanation of it so blog owners know what's happening to visitors.

    I'm looking for away to deny commenting and blasting baddies away ... I am using no-spam-referral.php hack that I found, and it can limit some stuff ... but since I don't know if cg-referrer is blopping bad sites away or not ... I just do want to know what happens so I can educatingly so look for the other things I can use, not be redundant or be missing out on some feature that I think is there but isn't. :)

  23. davidchait
    Member
    Posted 9 years ago #

    some real quick answers:

    'refererLib.php' was the old naming of 'cg-referrer.php'. So long as the plugin is active, you don't need to add any includes to a wp template/theme file -- just add the php calls/tags to show recent referrers, or recent queries, etc. I generally avoid having people show referrer lists as that ATTRACTS referrer spamming. Showing recent queries is a bit safer...

    cg-referrer uses a few internal lists (cg-blacklist.php), plus some logic checks. At the moment, it basically just drops 'bad' referring people on their ass. My new code I'm working on does a nicer job of things presenting a raw HTML page, and properly logs them into the database as well (thanks to drdave of Referrer-Karma fame for the heads-up I was missing those two steps).

    It also does bot detection looking at the UserAgent information sent with the http request.

    In my new code, 'rejects' will show up in the bots list, rather than the main list, for semi-obvious reasons.

    At some point, I'd like to write a post-processor that can walk through the database and 'shift' entries into being noted as spam/blacklisted after the fact. I used to just flush my blacklisted stuff every now and again -- now I try to save things up longer so I can pick through them and add more intelligent stuff to the blacklists.

    CG-AntiSpam uses the same cg-blacklist to check all provided URLs for bad/spam links. It also allows WP to do its own spam checking as well. However, I don't think I respect WP trying to whitelist something (as that happens outside my 'view' of things) necessarily -- if I see it as spam, and it sees it whitelisted, not sure who wins.... ;)

    CG-Referrer will 'knock' anyone who sends a referrer string only -- so it will only stop commenters if they're really, really stupid. CG-AntiSpam was designed to filter comments (and trackbacks/etc.) themselves.

    Spam-Karma and Referrer-Karma do a lot of similar things to CG-AntiSpam and CG-Referrer, if you want to look at other options -- drdave has done some great stuff I'd like to emulate... or, at some point, I might start trying to share techniques directly.

    The cg-blacklist.php file currently only gets updated when you manually do so, or grab a new version from a new powerpack. I'm looking into a method for having some kind of auto-updating blacklist grabbed off my server -- but not as yet.

  24. georgianlady
    Member
    Posted 9 years ago #

    Thanks dc! Great info! I now feel informed!

    Also, I was looking to show queries, not real referrers ... :) I've had such things installed on MT blogs and they were no fun at all, old posts showed nasty stuff, but newer content didn't usually show such referrers, but I learned long ago to not want to show referrers on posts or any page on purpose. :)

    Thank you for the time to do work on these things, and to answer my pesky Q's!

  25. davidchait
    Member
    Posted 9 years ago #

    No problem. Lemme know if other Qs come up!

    -d

  26. hinoiri
    Member
    Posted 9 years ago #

    feedread seems to be working great, how do I make it so it will not output the feed description if I want to label the feed with surrounding code in my PHP doc?

    (mangling the output section of the plugin gets me parse errors... don't know what I am doing :)

  27. davidchait
    Member
    Posted 9 years ago #

    The full function declaration is:

    function getSomeFeed($InUrl, $maxItemsPerFeed, $showDetails, $cacheName, $filterCat='', $tLimit = -1, $dLimit = -1, $noHTML = true, $showTime = false, $likeWPPosts = false, $noTitle = false, $showTimeGMT = false, $titleImages = false, $multiSiteTitle=true, $makeRSS=false, $rssName="CG-FeedRead Multifeed", $rssLink="http://www.chait.net/")

    You want to pass $noTitle as true. Something like:

    $feed = getSomeFeed($feedurl, 4, false, "my-cache", '', -1, -1, true, false, false, true);

    At least, until I get to a templating system... ;)

    -d

  28. hinoiri
    Member
    Posted 9 years ago #

    Good stuff.

  29. davidchait
    Member
    Posted 9 years ago #

    And if you grab the new 1.5a7 powerpack, it has a new feedread-extras folder, with cgfeeds.php, an example of integrating FeedRead as a 'page of feeds', and styling into the current WP theme. It's a work in progress, but a good example for showing some of the options in play.

    -d

Topic Closed

This topic has been closed to new replies.

About this Topic