Rather than generate a ton of individual archives for my PHP script libraries, I’m packing them ALL up in one archive.
I NEED your support! If you find this useful, PLEASE check out the how-to support CHAITGEAR page, so CHAITGEAR can continue to grow and serve the community! Thanks! DONATIONS AREN’T JUST WELCOME, THEY ARE NEEDED.
Just click one the following to go to the download page:
WP 1.5.1.x Compatible: Click to Download Version 1.5.3.1 [CGPP1531.zip, 184KB] (this is the lastest WP1.5.1.x series release)
WP 1.5.0 Last Compatible Build: Click to Download Version 1.5b2 [CGPP1.5b2.zip, 178KB] (this is the final release with WP 1.5.0 compatability)
WP 1.2 or earlier: Click to Download 1.0FC3 [CG-POWERPACK-fc3.zip, 141KB] (note 1.0 and earlier are no longer under development or heavily supported)
This includes the following PHP script libraries (plus enabler ‘plugin stubs’ for WordPress 1.2+):
* CG-Amazon
Live amazon data feeds, product links, wishlist links, keyword lookups, all product types/catalogs, article inlined and sidebars, keyword lookups, admin interface, caching system.
* CG-Inline
Powerful macro system for embedding auto-generated items within your posts/articles. In combination with CG-Amazon, allows for quick insertion of Amazon links/images within a post. Flexible image inlines, for floating/embedded thumbnails or image links. Powerful permalink creation.
* CG-Feedread
RSS/Atom aggregation script, for pulling from other site feeds. Ability to CSS/style sort of like WordPress so it ‘looks like your site’. UTF-8 international feed support. Multi-feed-intermix support. Feed-Refeeding support.
* CG-Referrer
Stats tracking. Referrer list, bot tracking, intra-site tracking, unique user IP tracking. The most comprehensive referral-search/query string breakdown and search/query tracking. Shared Blacklist with CG-AntiSpam for referrer-spam filtering.
* CG-AntiSpam
NEW FOR 1.5: Awesome Comment/Trackback spam fighting toolset, using the shared Blacklist with CG-Referrer, which supplements the built-in WP 1.5 spam combatting tools. Uses a number of new approaches to detecting spam, plus ability to show (and flush) accumulated spam held in the comments database.
* CG-WhatTunes
Tying music player/watcher http POST updates to CG-Amazon, to show the current music you are listening to, the current album cover, and link to Amazon for purchase. Proven with iTunes, WinAmp, and other blogger tools.
Check out the new WhatTunes Widget for the OSX/Tiger Dashboard, created by Jason Goldsmith, for Tiger users who want to live-post their iTunes data!
* CG-Samecat
Simple script for listing posts within a given category or categories (such as: posts in same category as the one currently being read…).
* CG-Related
User-assisted process for building a table of related posts, and function to list them (sidebar, under post, etc.). Create connections between your posts!
* CG-PageName
NEW FOR 1.5: Allows the [nextpage] tag to have textual page names for article blogs, shown on each page, ability to show text table-of-contents links in sidebar.
* CG-PostOrder
NEW FOR 1.5: Allows fixed post-order on homepage (and others). ‘Sticky’ posts, but with yet another level of order control – have as many ‘Sticky levels’ as needed, or just explicitly number-order the sticky posts. Currently requires minor hack to wp-includes/classes.php to allow proper hooks into the post-retrieval process. (WP 1.5 version STILL IN DEVELOPMENT…)
… and associated helper files and functions.
Some of the above are lacking in documentation – still working on it!
Also note that many of the scripts are NOT dependent upon WordPress in any way, and can be tweaked to work with any PHP-based website!
Feel free to start new Topics here for different plugins, so that they don’t all get junked in one post.
For general issues or Qs, feel free to respond to this post of course!
-d
166 Comments
RSS feed for comments on this post.
The URI to TrackBack this entry is: http://www.chait.net/wp-trackback.php/238
Comments are disabled at the moment.




Question: When I use the function to list books, I get a “Products Not Found” - or is it “No Products Found” ?– either way, I assume it’s because my table is empty….. Is there a way to get the products from Amazon itself using their API? Or is there something I’m missing? Or do I need to build a new plugin that retrieves it from Amazon’s system directly?
TG
(ps: this has also been posted at the WP site too.)
[…] ck of WordPress plugins Filed under: Site Information — Steph @ 6:06 am CHAITGEAR Beta: The CG-PowerPack of WordPress plugins These plugins please me to no end. […]
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
I’m trying out the CG-Amazon and I was wondering how do I create a display of items on my blog.
When trying to DL the pack, all I get is:
Fatal error: Call to undefined function: unhtmlentities() in /home/httpd/vhosts/chait.net/httpdocs/download.php on line 91
Using IE6 or Firefox 0.9
I added the plugins, set the permissions, added the sample code you gave, and I can’t get it to work. I get: Parse error: parse error, unexpected T_VARIABLE in /path/index.php on line 49
Line 49 is: Â Â $feedUrl = “http://www.ckelley.co.uk/moblog/rss.xml”;
What’s the problem here? Any help is appreciated.
@ Vix: there’s a whole document in the extra amazon folder, walks through what to do. Email if you need more.
@ Fred: Site moved, some things got whacked. Try again, should be fine now.
@ Casey: I’ll contact you by email. Sounds like something isn’t wrapped properly.
Hi David
I’m trying to get WhatTunes to work on my blog. I’ve dl the CG-pack, placed the cg-whattunes-plugin.php-file in Wp-content->plugins, I’ve placed the whole cg-plugins-folder in Wp-content->plugins and have enabled the WhatTunes plugin in the Admins panel.
I then pasted this into the index.php file:
I’ve even changed
the permissions on the cg-plugins/cache_amazon and/or cache_feedread caching folders…Just in case.
I’ve tested http://android8.users.whitehat.dk/wp-content/plugins/cg-plugins/tracktunes.php?add=1&t=%t&a=%a&g=%g&al=%b
but get’s a “File not found"-message…
Is there something I’ve missed…
N.B. I’m somewhat of a newbie so…
Sorry…regarding the index.php-file…this is what I pasted into the file (hope it shows up…i did use the “code"-tags…hmmm)
?php
if (function_exists("getWhatsPlaying")) // then we can use it
{
$amaAlbum = getWhatsPlaying(true, true);
if ($amaAlbum)
{
start_block("Now Playing”, “now-playing”, “li");
echo ‘
‘;
echo $amaAlbum;
end_block();
}
}
Got things working, but….now I need a helper app that will work with it. Any plug-in for WinAmp or FooBar2k that will work with an authenticated proxy AND be configurable enough to produce the proper arguments?
Note to new cg-feedread users: the sample WP code (the second sample code block in the included doc file “feedreadReadme.htm") has a minor error:
The line starting with “$feedout = …” is missing the “$” before the reference to the variable “feedUrl” – adding the “$” makes everything hunky dory again.
Great plugin!
Hi Dave, I installed your Powerpack as you suggested, but it seems worse. Turning on CG-Samecat and adding the code you suggest to index.php caused the following error message on the site and in WP Admin:
Fatal error: Failed opening required ‘/home/hikdekedek/public_html/barrassmonkey/wp-content/plugins/helper_fns.php’ (include_path=’.:/usr/share/pear’) in /home/hikdekedek/public_html/barrassmonkey/wp-content/plugins/cg-samecat.php on line 16
Having some trouble with the install. I am using WP 1.3. I believe I put all the CG-Amazon files in the right place, edited the admin’s ‘menu.php’, but when I hit the “Create CG-Amazon Table” button, it does not do anything. Although I considered manually adding the table, I both did not know what columns it wanted and thought that there might be a bigger problem. Help if you can.
Trying to install the CG-Referrer module, but have problems locating the debug_backtrace() function. I’m running Debian Woody with an older version of PHP (4.1.2 or so), and apparently debug_backtrace() is only available in 4.3
Is there a PHP version requirement for your package?
I think I have added the CG-Related plugin correctly, but for some reason it is not setting the cookie and beginning the relate process as expected. Anyone else having this issue?
Just a quick question, considering I couldn’t find it in the docs. Is the upgrade process the same as the initial installation process? I have a previous version of cg-amazon and some others in this powerpack already up and running on my blog but the installation instructions seem to be geared more toward first-time installers.
I’m having a problem prossesing a ATOM feed all my RSS feeds work great. I’m getting an array on all the fields and I just grabbed your newest update.
You can see what is going on at http://blog.brianfeucht.com/
[…] hichever address you specify when you listen to a new song. Next, you need to download the CG-powerpack from David Chait’s site. It’s made for WordPress (which I’m using […]
[…] 7 am new section on the current books on my reading shelf. thanks to the developer of CG-Amazon check out how sorry people are feeling. Comments » The URI to TrackBack t […]
Hello David,
Would it be possible to use the samecat plugin inside the wp_list_cats() function? You see, I had this idea of a site build upon categories (no subcats) and then using the posttitles as a kind of submenu. Like this:
cat1
cat2
- post 1 belonging to cat 2
- post 2 belonging to cat 2
cat3
cat4
cat5
This way the ’submenu’ would only be visible when choosing cat2 and people who are going to use this site can easily add new pages (posts) and only have to choose to which category it belongs.
Could this be done? I’ve been looking at the functions in the category.php file, trying several things (I’m a newbie at php) but they don’t work.
[…] obably be adding buttons and screwing with plugins soon, as I have not been too happy with ChaitGear’s Amazon plugin. Being that Amazon’s web services aren’t that bad, […]
[…] ting at the moment, I just had to put up some for testing . Thanks to Chaitgear for the plugin. So Nintendo DS has started shipping, whi […]
[…] ˆ–是網站çšâ€Ã¦Å“€æ–°æ–‡ç« ï¼Œè‡ªå‹•顯ç¾在特定é Âé¢。 主è¦ÂÃ¦ËœÂ¯Ã¥ÂÆ’考這篇文章:Final Candidate: CG-PowerPack PHP & WordPress Scripts/Plugins A system for aggregating RSS-type ne […]
I seem to be having a problem with getting feedread to work. I uploaded the files, activated the plugin, but when I place the code into my wordpress template, my blog becomes a blank white page. I’m in the dark, help!
If not too much trouble, please reply by email. Thanks in advance.
Can I use the CG-Feedread to import the remote RSS news to as my Blog Articles?
Nice one! Got your link from the WP fora, installed FeedRead, perfectly happy camper here. Have to say though that your documentation could use some help. If I hadn’t a decent background in tweaking php I could have easily been lost. Regardless, I’m sure you’ll fix that next time. Gotcha bookmarked so I’ll be by off n on to check for updates.
Oh - should also have said, got one of your graphics and linked up….
I’ve installed the plugin for referrer, but I don’t know where I should see the stats in the admin. Will it just show up or did I not install it correctly?
Thanks,
Heather
Thanks for these great plugins, The Amazon one is nearly exactly what I wanted. I cant for the life of me work out how to get rid of the little time stamp after each item though. If you have a chance to check my blog you’ll see what I mean. I’ve just made them tiny in the CSS but obviously thats not ideal! Cant seem to get rid of them, despite fiddling with the config file and various others. Cheers
If you show any detailed information (such as pricing), the timestamp MUST show up, as must the disclaimer thing you’ll see on my site (another single call). That’s because if you display pricing info, it isn’t realtime, so the timestamp is to say ‘when’ and the disclaimer says ‘prices may vary’ sort of things.
Most scripts don’t ‘enforce’ that, but Amazon can revoke privs for people who don’t follow their guidelines – so please do!
I’m not displaying price information for the Amazon plug-in (only pic, title, author). Do I still need to include the time stamp?
If no specific data is shown, the timestamps SHOULD disappear on their own. If that’s not the case, send me an email or post here, and I’ll dig around.
I’m trying to use CG-Amazon in my sidebar and just have it show one category of the items I have entered into the database - I’ve been using “show_amazon_items(’Reading’);” as the code, ‘reading’ being the subject, but it is actually only showing the item from the other category (not ‘reading’). Am I getting something wrong in the code?
Installed feedread in a wordpress sidebar per the instructions, but each headline is on a new line after the double arrow pointer, making it look kinda ugly. How can I fix that? Thanks.
>>
item 1
>>
item 2
Can the Amazon script be used for showing Babies-r-us registry items?
Hazel - Check out the new examples in the latest version/documentation of CG-Amazon, as there’s samples of Now Reading lists.
Kevin - I fixed interactions with Kubrick and other themes in 1.5b7, works great now.
None - Please leave a real email next time (only I see them!). Yes, it can be, though it most likely needs a few lines modified for the Baby and Wedding registries. If you send cgcode at chait dot net a Baby Registry reference code, I’ll make sure it works.
Is there a way to randomize feedread output? Or list it by date and time? Right now id displays feeds from sites in the order of which they are listed in my URL list. Thanks.
How do you get CG-feed to NOT open in a new window? I looked at the code and found the line about “TargetWindow” and changed that, but it appears to have no effect. I cleared the cache just to be sure and it still had no effect. Cool and useful code by the way and I put a link on my site. Thanks! -jweaks
probably a stupid question, but I’m wanting to try out the feedread plugin.. where do I put the contents of teh feedread-extras folder? I undestand where to put the contents of the plugin folder (what files do I need specifically for jsut feedread? I don’t need any of the other stuff)
thanks!
Random FeedRead answers:
- Yes, you CAN use it with ANY php-driven website. It doesn’t require WordPress in the slightest.
- Yes, it is perfect for showing entries from a blog in the sidebar of a main php page.
- The targetwindow stuff is now working, and currently documented in CHANGES.txt.
Forgive my ignorance but how can I use winamp with itunesblogger?? I have whattunes working fine with iTunes but would love to switch back to Winamp. Any info is greatly appreciated!
You should be able to use the “NowPlaying plugin” for WinAmp to HTTP-POST updates to WhatTunes, replacing iTunesBlogger+iTunes. You might need to tweak the POST string. But it should all ‘just work’ if you get the post string correct.
How do I stop referer from blocking?
In the 1.5.3 version of CG-Referrer, there’s a whole new set of globals that control what it does – read the new readme for more. It now defaults to NOT do any checking or blocking, for people who just want to use it for referrer tracking. (You need to set two globals to have it check and bounce spammers…)
And as to the older question: newer CG-Referrer versions have a whole bunch of Admin interface panels that slice and dice up the referrer tracking data for you.
CG-Feedread, Multi-feed-intermix
May I sort all the news?
CG-FeedRead in older versions didn’t sort properly in certain MultiFeed situations. Grab the latest release – it should work.
I’m using your cg-samecat plugin on my home page. It’s a great plugin. I was wondering if there was a way to change the timing. It’s takes about 15 to 20 minutes for a new post to show up.
Samecat currently does NO caching, the list should be updated direct from the database every time (unless you are running something like WP-Cache, which caches entire page output…). It literally runs the query on the posts table just as it goes to display (which, now that I think of it, could be cached for even a short period for optimization, but again isn’t at the moment).
Does anyone have feedread up and running? I would like to see exactly what it does.
realtechnews.com uses it in two ways. One showing the yahoo newsfeed on the sidebar of the theme, and the other is the Headlines Around The World link which takes you to a non-WP PHP file integrating the current WP theme then displaying multiple full-content feeds (which could also now be done as a Page, using my CG-QuickPHP plugin additionally) in a loop.
hello there,
I am trying to use your referer plugin. I would like to show the recent searches of how people came to my site. This is working (i used your show last 8 searches from your docs) .. but i would like to have actual links in my side bar to the search engines. . is this possible?
Thanks
ALi
Hello. I m trying to use the cd-pagename plugin. But i have a problem to get the first page title on multiplepage posts. For the others it s easy i just put the title name after < ! - - nextpage -- > but for the first i don’t know how. Any help is greatly appreciated!
thx in advance
funny you should ask! CG-PageName was missing that ability, but I just started to work on it today – there will be a new tag for naming the first page (which currently defaults to the hardcoded “First Page"). Should be a new CGPP out soon with that feature.
I like the CG-Tunes - but I’ve noticed something that it does… Whenever there’s an apostrophe (’) in a title, it uses a blackslash before it.
Any way to fix this so that things aren’t showing up like: “I\ ‘m Blah…”? (without the space)
Hey all - just wondering if someone has answers to a couple questions…
Thanks!
- Nick
Great set of Plugins. I was looking at the CG-Inline plugin. I think it would be a great idea to add a namespace element into your tags.
< ! - - amazon:B000002G3Y - - >
could be
< ! - - cg.amazon:B000002G3Y - - >
I was using ChaitGear with previous versions of WP and now that I’ve upgraded to WP 1.5, I wanted to make my Books and Music pages (that used CG-Amazon to generate the lists) WP Pages. Of course, I now find to my dismay that raw PHP cannot run on the Pages. Ugh. But I created templates for each and now you can see what you have wrought (!) on my Music page. I’m still working on tweaking the CSS for the album information and adding my personal comments, but so far, so good! Keep up the wonderful (albeit thankless, I imagine, at times) work. If you need help getting documentation going, let me know. The only thing I can offer are my superior typing and proofreading skills at this time.
Joni ;->
Joni - you can use my new CG-QuickPHP to make simple Amazon Pages, as you just need one call to Amazon. I think the QuickPHP readme actually had an Amazon sample – if not, just ask. Great for quickly doing an Amazon Wishlist page on your site, no PHP files needed!
Hi
I’m using your feedreader on another site reading a Wordpress 1.5.3 feed. In WP I have the Syndication Feeds setting set to show the most recent 50 posts and the page setting to show at most 50 posts.
On the other site though, the most posts being read from the feed is 36. I’ve tried both the single feed code and the multifeed code. Same thing for both.
How can I get the full 50 post to be displayed?
Thanks for your reader. It is really simple to use.
Hope to get this resolved soon.
Thanks
Randy
Hey Randy - that’s an explicit cap, I think, from early days… it was in case someone threw a bonkers number in there, for feeds that could have an unlimited number of items. I’ll put a fix into the next rev, but you can change the numbers in cg-feedread.php temporarily, just look for:
if ($maxTotal>36) // arbitrary cutoff...
$maxTotal = 36; // you need more than 3 dozen items????
Change the two 36’s to whatever (100?).
HOY!
This is sweet. Im gonna use it for my WP and for a client site.
Im having probs though calling a wp feed from outside the WP directory.
How do I get these functions to work outside WP using php pages?
thanks for any help!
All you have to do is include_once("path/to/cg-plugins/cg-feedread.php"), pointing to wherever you’ve placed the cg-plugins folder up on your server, then call the getSomeFeed function as detailed in the docs.
Hi i would like to ask about the CG-Related plugin, and my wordpress is the latest release 1.5.1.3, and after i activated the plugin, and start relating, there is error message :
WordPress database error: [Table ‘wp_cg_related’ doesn’t exist]
SELECT rel_id FROM wp_cg_related WHERE post_id4 AND related_id6
and i found the plugin didnt create any table called wp_cg_related, so could you let me know the sql of that table and how to fix it?
thanks a lot!
Hmmm.. Any recent CG-Related should have a ‘Relate’ admin page, with a “Create CG-Related Table” button when first activated. Click the button, it’ll create the table, no other work needed. I might make this ‘automatic’ in the future…
hi david,
I really appreciate for ur help, I downloaded ur latest version but cannot see the “Create CG-Related Table” button or “Relate” Admin page, can u tell me where i can find it? In wp-admin or ???
thanks a lot!
What version of WP are you running? The menu hook system was unfortunately changed a bit from 1.5 to 1.5.1 to 1.5.1.1+, and my code was updated presuming all users would upgrade to the latest (now 1.5.1.3) versions asap due to the security issues. I’ve done some work on backwards compatability, though I can’t recall if the last version posted has those fixes.
There should be a top-level admin Relate menu item in wp-admin. If it isn’t showing up, it’s a version issue. I am trying to get a new release up today (maybe!), and will look to see if those menu-compatability fixes are in there…
hi david, it’s me again, i tried ur CG-Feedread, very nice plugin!
but i set $tLimit to 14 but it didnt show the first 14 character but different number of character of each titles, such as 9 characters for first post, 11 characters for the second post…etc
Do u mind to explain how to use this variable? thanks a lot!
Title limits were (and are!) tricky to implement, especially if there are html-entities or unicode characters in a title. The limit is basically a guide to the code as to how far tp look for a nice ‘word break’, which would be a space, comma, period, etc. It tries to never break in the middle of the word – at least at the moment.
love the plugins and glad i didn’t have to write them myself.
Consider modifying cg-postorder-plugin function as follows, eliminating warnings when no post_order table entries are returned:
function cache_post_order($force=false)
{
global $po_table, $po_cache;
if (!$force && isset($po_cache)) return;
$qres = db_getresults("SELECT * FROM $po_table”, OBJECT, 0, “admin - po cache");
if (! is_null($gres)) {
foreach ($qres as $apost)
$po_cache[$apost->po_post_ID] = $apost;
}
}
Is there any way to correct bad enconding?. I use ISO-8891-1
Thanks
It’s currently set up on my site so that if an album is displayed once, it won’t show it again if a song from that same album comes up on the same page. Is there anyway to get it to have it display the album cover more than once?
I’d have to see the code you are using – there is something that keeps redundant results out of the final set, and that might be tripping you up. I could add a flag. Use my contact form and drop me your email.
FOR CG FEEDREAD:
What exactly should ther permissions be set to (number-wise: 666, etc.) ?
also what is the correct way to name a cache file – what special extension, if any, is needed for a cache file – i’m not sure yet why my caching isn’t working, since i have not been able to upload (or create) a file in the cache_feedread (i assume for the permission being incorrect)
ty – great piece of code, btw –
j-
I’m trying to use cg-whattunes-plugin.php and cg-amazon-plugin.php.
1 - How do I get the track currently playing in Winamp to display in the plugin?
2 - Where do I place the files in the amazon-extra-stuff directory in the download so that the settings I change there (like associate ID) take effect?
hi david, great plugins!
re: feedread, i’m wondering if there’s a certain combination of the parameters to make the character limit on descriptions work. right now, it’s either showing all of the post or just the title. here’s what i am using:
$feedOut = getSomeFeed($feeds, 3, true, ‘ppf’, ‘’, -1, 40, true, false, 2, true, false, true);
I’d need to see the full code and the RSS stream that’s causing problems to see if there’s a bug. However, your call should be:
$feedOut = getSomeFeed($feeds, 3, true, ‘ppf’, ‘’, -1, 40, true, false, 2, false, false, true);… as the ‘false’ after the ‘2′ tells it you WANT titles shown.
I’ve just installed the same cat plug-in. Works great but is there an easy way for a non-programmer to get it to sort posts alphabetically by title? I saw much discussionof this on Codex but could get the fixes to work with same cat.
David, thanks for your work on this. One question - I am laboriously trying to migrate my luddite father from Blogger to Wordpress. This means keeping things as simple as possible for him, so even though the blog will be his, my intention was to give him a user level of about 4 or so to minimize as much as possible what he has to learn.
My father would really like to use a plug-in like CG-Amazon to list what he’s currently reading or listening to. However, as near as I can tell, he needs to have a user level of 9 to be able to use the CGA tab. Is there anyway for me to change that?
yeah, in cg-amazon-plugin.php, the line:
add_menu_page('CGA', 'CGA', 9, $cga_pluginFile);controls the user level. change the 9 to a 4 and I think you’d be okay.
just remember there’s no per-user controls in CGA, so anyone with access has
complete editing access.
Hello - first off, thanks for all of your work! Great scripts! I am trying to set it up so the rss from several wordpress blogs can be displayed on a different (non-WP) index.php. I’m having trouble getting the excerpts to show up, though - I’m calling getSomeFeed with the following arguments:
($feedUrl, 1, false, "feed-artdesign-galleries-again-work3", '', 36, 200, true, false, 0, true)It seems like the ‘200′ should grab up to 200 characters from my latest WP post’s excerpt - am I missing something?
Thanks!
Nope, the 200 should grab (approximately) 200 characters from your feed content. However, it is possible it is grabbing the html-encoded content instead of the plaintext, snipping that to 200, then removing the html tags… which would make it potentially much shorter.
Well, with a few modifications, feedOut is returning results for the itemDescription - but it’s grabbing the text from my post’s content, not from the excerpt. Any ideas? It seems like this might be a problem with the wp-rss2.php - maybe it’s outputting the content as the item.description instead of the excerpt?
Oops - that was my mistake entirely (amazing how easy it is to overlook options in the wp control panel…) Anyway, everything’s straightened out now. Thanks for this truly excellent little feedreader - it’s turning out to be VERY useful!
Heh. You’re welcome. Always feel free to donate!
Hi! I am hesitant to ask this in case it ends up being a Stupid User Error. I am running WP in andromeda.qc.ca/journal/entries and I am trying to use CG-feedread to grab the rss and display it in the parent page at andromeda.qc.ca/journal/index.php.
Right now the error I am getting is this:
Fatal error: Call to undefined function: getsomefeed() in /home/sherina/public_html/journal/index.php on line 30
Line 30 is:
$feedOut = getSomeFeed($feedUrl, 4, false, “feed-cache-name”, ‘’, 36); // enter a cache name
I am having two main problems.
1. I don’t know what to put for the cache name
2. In the instructions it tells me I need to give the cg-plugins/cache_rssfeeds/ directory server-writeable permissions. The problem is that when I go into the cg-plugins directory there is no directory called cache_rssfeeds.
Help?
Once again, CG-Amazon works like a champ! Now’ve got it integrated as part of my latest theme.
-tg
David, Great scripts! I’m trying to get the most out your cg-amazon script. It took me a while to get it installed and am having trouble configuring the layout. For example, I want things like the top navigation system to have padding on the left hand side, make the cells where items are listed not blue and just white with a black border. Also, on the individual pages how do I adjust the layout? Is it possible to add some sort of dynamic “categories” link system to the top of the index page based upon the categories I’ve assigned each item to? My php skills are lacking, but I can figure out css if I know where to look.
http://www.homedangers.com/cgaindex.php
I’m happily using cg-amazon on my non-static pages to display my Amazon.com wish list - thanks for the excellent programming. I have a simple problem I can’t seem to figure out by trial and error. How can I modify the cg-amazon.css file to eliminate the blank line that appears after my heading?
Is it possible to integrate feedread twice on one page (not in wordpress)? I’ve been trying to do it by making several separate directories for cg-plugins and referring to them separately but with no luck so far; the second instance won’t display.
definitely – no need to try to include it multiple times (that’s bad!). Just calling getSomeFeed multiple times on a page works fine. My guess would be you have an error in your second call.
David – thanks for your response, but with the caching issue I got two instances of the same feed when I tried it the way you describe, when I was looking to integrate two different feeds. Is that normal or should I give it another shot?
Hi
How do you remove the bullets (black dots) for the unordered lists when using the SameCat plug-in?
Thanks!
Thanks, David for a great plugin.
I wrote a tutorial for non-WP application of Feed Reader:
Adding feeds with CG Feed Reader.
I hope it may be useful for your users.
David, I’ve scoured previous posts for an answer to this and can’t find one. I want to change the displayed “Amazon:” text to “What I’m Reading”..you say it’s just a matter of changing the word “Amazon”…in which file and where? I’m nearly bald for trying to find it…
If you mean the title from the sample in the documentation, you typed ‘Amazon’ yourself. The basic sample is like:
<li id"amazon-product"><?php _e('Amazon:'); ?><?php show_amazon_items(); ?>
</li>
Just change the _e(’Amazon:’) to _e("What I’m Reading"), or anything else.
I have installed the latest version of the CG plugins and activated CG_Feedread Plugin and get the following errors when I load my web page.
Warning: main(/home/ajones/public_html/wp-content/plugins/cg-plugins/helper_fns.php): failed to open stream: Permission denied in /home/ajones/public_html/wp-content/plugins/cg-feedread-plugin.php on line 17
Fatal error: main(): Failed opening required ‘/home/ajones/public_html/wp-content/plugins/cg-plugins/helper_fns.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php:.:.:.:.’) in /home/ajones/public_html/wp-content/plugins/cg-feedread-plugin.php on line 17
I have made the cache directory writable as per the instructions.
That’s most likely a permission problem on the helper_fns.php file, OR cg-plugins/helper_fns.php doesn’t exist (either the file or the subdirectory). Check the permissions, or maybe just try re-uploading things.
please forgive my stupidity… I’m trying to include Feed-Read on a non-WP page - just a plain ol’ PHP page - and can’t for the life of me work out how to do it - I’ve pasted in the basic code to configure it into my page… but I get a Fatal error: Call to undefined function getSomeFeed() response… obvious, but I’m having a “left my brain at home” day and can’t work out the best/right way to allow the page to see the script…
someone put me out of my misery if you could… thanks.
An earlier comment covered this, but I’ll hit it again.
All you have to do is add:
include_once("path/to/cg-plugins/cg-feedread.php");… pointing to wherever you’ve placed the cg-plugins folder up on your site. After that, you can call the getSomeFeed function. Any time you see “undefined function”, that generally means the file the function lives in wasn’t include()d.
With PHP 5.0.5 and MySQL cg-amazon product list doesn’t paginate and don’t show the detailed info
Hi all, couldn’t find if this has come up earlier but I have this problem: I’ve copied all contents from the plugins folder from the CGPP1531.zip file to my servers wp-content/plugins folder. I’ve adjusted in the cache_feedread folder’s properties that owner, group and all users can read write and execute. I hope this way I gave the cg-plugins/cache_rssfeeds/ directory server-writeable permissions. I don’t know how to do this else.
Then I enabled the cg feedreader. Nothing had changed in my wordpress admin options by the way.
Then in the index.php file in my servers /www folder I added
<?php
$feedUrl = "http://news.com.com/2547-1040_3-0-5.xml"; // a sample CNET feed. use your own...
$feedOut = getSomeFeed($feedUrl, 4, false, "feed-cnetttech", '', 36, false);
if ($feedOut)
echo $feedOut;
?>
Now that I’d done this I added a rss-link with in my blogroll category. Nothing happened unfortunately with my blog. I just saw the title given by me to that link which lead to the the rss-code.
My question: What should I do different? How can I get headlines and fun rss-stuff on my blog? Help!
I am really confused with the plugin. I wish to use the feeder plugin. But not sure which file to upload and where.
COuld you please help me out?
Hello, I installed cg-amazon at WP 2.0.1 but only now I’ve noticed I can’t use it with others Amazon stores besides the US. It’s possible to modify it to use with amazon.co.uk?
Also, I don’t like the 20% of links with your Associate ID. If everything works, it’s better to pay for it the fair price.
CG-Amazon was built to work with all international Amazon sites. ‘cga-config.php’ is the configuration file (sorry there’s not an admin panel for configuration…), and if you look for:
… uncomment the line and change ‘us’ to ‘uk’ and it should work fine.
I have yet to have any inquiries about a license fee versus the % redirect, though I’ve been considering adding a license fee (comparable to other Amazon scripts). Feel free to use the contact form if you’d like to discuss a licensed installation.
Does this work (mainly interested in FeedRead) with WP 2.0?
Yes, FeedRead is for all intents not linked to WP, and had no issues with the version bump. Most of the other plugins function fine with one or two line tweaks, on hosts where errors show up.
Is there anyway to change the timestamp format when combining multiple feeds? I’d like to get it to show in Pacific time if possible, but can’t figure out how to do it.
Not currently – the only option I have at the moment is to show the feeds in GMT timestamps. An adept PHP coder could hack the GMT output to print in pretty much any time format/offset of course.
thanks for the prompt reply david. feedread is excellent so far. the next problem i’m running into (though i dont think this is necessarily a feedread problem) is regarding line breaks…is it possible to preserve them through syndication? (i’m using feedread to combine 2 blogger feeds into one feed for a homepage)
However, linebreaks are in no way preserved making things pretty illegible. if i open the atom xmls everything looks okay. any ideas?
What if you don’t want to use everything? What does each individual plugin need to function?
Suggestion: Give each plugin a folder of its own, one that includes everything the plugin needs (be sure to include the ‘readme’). Put all those folders into the “ChaitGear Plugin” folder and zip that up. Would make live a lot easier for cluess types like me.
Nice plugins. I wish to incorporate/integrate a RSS feed from phpbb forum (link is like rss.php) into wordpress RSS feed and have one feed for both WP and phpbb. Is that possible with feedread? I just want the feeds (title; clickable to actual post to a new window).
Could you please let me know if feedread can do that?
thanks, drb
The last released version of CG-FeedRead had two features: MultiFeed and ReFeed. MultiFeed allows you to intermix RSS feeds by GMT timestamps. ReFeed was supposed to let you output a call to getSomeFeed as VERY simplified/hacked RSS2 formatting (rather than html) – though, I can’t recall how well it was working.
Supply an array of feeds, and then set the $makeRSS param to true, and set the remixed feed title and site url. Might just work.
Is it possible to use SameCat on a single.php template? I would like to add a list of links at the bottom of a single post page (like a “further reading” section)–NOT the index.php page!
I have the plugin installed and put this on the single.php template:
echo list_posts_of_cat(’7′, 999, 0);
indicating pull all posts (up tp 999) from cat 7. This outputs: No matching posts, though I know there are several in cat 7. Any ideas?
Thanks!
SAM
Hey Sam - SameCat should be template-agnostic. If you want all the posts from the same category, list_posts_of_cat(’current’, 999) should work. But I might have to debug it locally on your box to really see what’s going on… I’ll try and test something similar in the next few days just to sanity-check it.
Hi, can you tell me how to get the images and text that CG-Amazon spits out to center? I’ve been driving myself crazy trying to figure it out. Thanks!
thanks for ur plugin collection,
it helps me so much!
Hi David!
Thanks for these great plugins! I’m trying to use your feedread plugin here:
http://www.youknowyouwanna.net/nurse-blogs
And I’m having a few problems.
1) How can I get it to just show summaries?
2) Why are some entries formatted and some aren’t?
3) I want it to show the time, but it is not. This is my call: $feedOut = getSomeFeed($feeds, $count, true, ‘multifeed’, ‘’, -1, -1, false, true, 1, false, false, true);
Thank you!
Great power tools!
I’ve moved my site to another host and now I get this error from CG-Feedread:
XMLParser Error: source data is ISO-8859-2, should be UTF-8
What do you think it can be done?
Thanks!
Is there a way to show a specific item in the sidebar when using CG-Amazon? I don’t want a list of random items.
Thanks!
There are two ways. One is to call query_amazon directly yourself with the ASIN of the item (handle_amazon_inline in cg-inline does this to insert single-item lookups into a post). The other is to use show_amazon_items, with the single item ‘tagged’ with something custom (which could be something like ‘ASIN_’ prefixed to the item’s asin…).
David, I have a question about your cg-samecat plugin. Is there a parameter that can limit the amount of characters displayed in each link? Thanks.
There’s not currently a method for limiting the link length. CG-FeedRead does something like that, but I’ve never had a Q about it for SameCat before. So, it could be added at some point (just not any time soon!).
feedread does what I wanted it to do, ALMOST. I just don’t want the post title to show up, since the feed I’m inserting doesn’t put titles in its posts. Is there some hack I can do to tell feedread to ignore the post title?
At the moment, there’s no way to tell FeedRead to NOT show feed item titles – since I’ve never seen a feed without titles, and most people show just titles and not ‘body content’ for links. If the item titles are empty, you should get some empty tags, that’s all.
If you send me a link to your feed in question via my contact form, I can look at modifying the code for a future release (and can tell you what to modify in the current code to hack it to work the way you want/need…).
Yes – but you’d have to modify the code directly in cg-feedread.php. I think the line you want is:
Should be pretty easy, even if you don’t know a bit about PHP. Lemme know if that doesn’t make sense.
$output .= “[$tmpTitle] ”;
…change that to something like:
$output .= “$tmpTitle: ”;
… or whatever you want to put around it.
David,
Is it possible to have FeedReader pull external feeds to a seperate page? If so, what would the code be that would be used?
Definitely. You can use a php execution plugin (php-exec, et al) to run php within the Page’s content, or I find it generally easier to create a custom Page template for a feed page. In both cases, check out the CG-FeedRead sample standalone php file, which sets up an array of feeds and then loops over them and retrieves them in sequence. Alternatively, you can pass an array of feed URLs into CG-FeedRead, and it will iterate for you (but then the feeds are all ‘linked’ into one mega output). Of course, if you want a bunch of feeds, interleaved by date, the multifeed feature will do that for you.
jarik, If you don’t want the title area to show up on your page, simply use a stylesheet to target the style for the title and set it to
.itemtitle {display:none;}
(I forget, offhand, what the css selector is, but you get the idea. Whatever you set to display:none will simply disappear from your pages. It’ll still be there, in the HTML, of course. But your users will never see it.
Rich.
BlogRodent
Anyone having problems with the front page ‘breaking’ if no post is selected as ’sticky’? I show a mysql error if I don’t pick at least 1 post.
Hi David,
I just downloaded the plugins. I use WP 2.0+ series. installed 3 plugs: CG-Referrer, CG-SameCat and CG-Feedread.
CG-Referrer works great.
CG-SameCat and CG-Feedread are installed (they appear as installed on Plugins page) but i can’t find any way of customizing them … no tab button, nothing in Options panel.
Can you please tell me where can I config them?
Thanks.
David please can you tell me how to place a custom made page as a page on my blog?
I have created a page called tech.php (based on cgfeeds.php from your package) in my theme’s folder and now I want it displayed on my site but I don’t know how to include it
It has 3 feeds called in it.
Thanks,
Alex
Hi - I’ve searched everywhere for the answer to my question and on a couple of occasions, I came close, but it’s all over my head. I’m a newby at this and would appreciate a simple tutorial or steps that would allow me to get the 5 most recent blog postings (in the same domain and server) to the home page of my site (static).
I’ve got the plugin installed and activated, but I don’t know what I am suppose to insert into my home page. I’m assuming its some sort of PHP snippet, but I’ll be damned if I can find it anywhere. I’d like only the title of the post to show up and, of course, if you click on it, it would take you to that blog entry.
Any help is greatly appreciated.
-Skuli
Hello Dave.
Thank You for your effort!
I was wondering how to approach using CG-Ref as a simple visitor counter on my WP site, by adding relevant function/snippet where I want it. I have browsed through code and readme but I fail. I assume it is pretty simple, a matter of calling the correct parameter from database, but…well
Regards…
Richard
Hi, I implemented your CG-Feedread into a page my WP installation and everything went fine the first day, but it has not updated since. Meaning: Implemented 11/20, today it is still showing feeds for that day. Any reason? (Or does is it not supposed to update when the feed updates?)
I’ve been using CG-FeedReed for months and it worked great! Suddenly doesn’t read feed, won’t update cache. I am using it at:
http://allergynursing.com/
to read WP feed at:
http://climates.allergynursing.com/
Last cache update was Oct. 31, hasn’t read posts since.
When I change cache name, it tells me:
XMLParser failed to open (climates.allergynursing.com)
URL: [http://climates.allergynursing.com/feed/]
Error #:
Check the feed URL is valid.
Can you help?
The “failed to open” means one of two things:
- the feed is inaccessible (either down, or for some reason your server can’t access that server)
- PHP configuration is blocking the parser from opening the feed (such as having fsockopen and socket_create BOTH disabled in a bad attempt to secure a server)
After reviewing your case, it’s the latter – your host should be able to fix it. In the future, I might add cURL as a third ‘fallback’, in case that’s left on while the other two are disabled.
David,
I am trying to setup cg-related, and it works fine except that it only lists one related post, even though I have set several relations. It always list the last related post. Is there a way to fix this? Thanks,
get_related_posts should return all available related posts – I’ve never seen a case where it doesn’t. it’s all done via the database, so it’s possible there are problems there. if needed, I could look at your site/server directly. use my contact form if you want more help.
Hi there:
Using CGFeedRead. It works great. But because of its great functionality, I might be overusing it, and it could be slowing down my website.
On this homepage I use CGFeedRead 4 times: sidebar, comic strip, latest article, latest comment.
But the page takes forever to load….any way I can design it to help it move a little faster?
Thanks for your help, and teh GREAT plugin.
-Vasco / Diseducation.
First thing to do is try disabling the feeds. If that instantly makes the site faster, then yeah, there’s something odd with CG-FeedRead.
Next thing to do is verify that the cache_feedread directory can be written to by the PHP process. On some servers, 755 will work. On others, 777 is needed if the directory isn’t owned by the same user PHP runs under. But that’d cause your problems.
Lastly, make sure you haven’t set $XML_CACHE_TIME to some really small number (it’s in seconds, and my current default is 6*60*60).
I thought I had it, but apparently I didn’t. I thought that I had figured out how to get rid of the feed title in the Feedread plugin, but then it would get rid of the titles of the posts, which is not what I wanted. So my question is, “How do I get rid of the title of the feed. Like, the site where the feed is coming from. Please help, I need it.
The $noTitle parameter being set to 1 or true should work – parameter #11.
$feed = getSomeFeed($someurl, 5, false, ’somecachename’, ‘’, -1, -1, true, false, 0, true);
Okay, I just tried that and it didn’t do the trick. Here is what I have right now.
$feedOut = getSomeFeed($feedUrl, 10, false, "Comic Clippings", '', -1, -1, true,false, 0, true);
And here is what I did have before.
$feedOut = getSomeFeed($feedUrl, 10, false, "Comic Clippings", '', 36)What needs to be changed?
David, it worked. I thought it wasn’t going to, but I forgot about the lag time of the update window. Thanks a lot, it’s working great.
In my testing, CG-Amazon seems to work just fine on my simple WP 2.1 test blog. I haven’t tested every inch of the code, but searched and added products to my personal list, and used CG-Inline to display an amazon product directly inside a post. I’m certain there’s >some< fixes that need to be made! Just not sure what yet…
Hi Chait
I followed zac’s instructions (squarezcircle) to get a feed on my site’s home page showing latest blog from wordpress and first ten words. It works well
I also want the name of the blogger to show up in the feed on the home page. zac suggests I get in touch with you
thanks for this plugin
Hi, do you have any plans to update CG-Referrer in the foreseeable future? I’m using this module at office-chair-reviews.com, mainly to track the keywords people use to find my site and I’m wondering if you’re planning to expand a little upon this very feature (e.g. export kexwords to file, list keywords for the last X days, etc.) Anyway, thanks for this plugin! Nora
Hi, wonderful plugin! I have a problem trying to display feedburner feeds, they break up the other sidebar and place the contents on the sidebar using the cg-feedread data. Any ideas?
Also, some of the feeds are dated, e.g., 11/30/99 and 12/31/69…is there any fix? Thanks!
Hi looks like an interesting feed reader plugin. I have a question though, I am looking for a plugin (probably that I will adapt) to import some custom data from my photo gallery (in XML format), and add it as a post to wordpress DB. I need it to auto update when I add a new photo to my gallery. Do you think this could be adapted to preform this function?
Thank for your time and any thoughts you might have.
Nathan
For CG-Feedreader, I saw that there is no way to set the time to display in a time zone other than GMT. Is there a way to set it to display the date with NO TIME? I have tried setting the $showTime to ‘true’ and &showTimeGMT to ‘false’, but that doesn’t seem to make a difference. Any help would be greatly appreciated.
Great product
I need to automatically insert ads in my posts. And not AdSense ads, but rather a php file defined by me.
Does this plugin have this functionality?
I don’t really need a plugin, I just need to know which file to edit and where to place the call for my php file.
I don’t want it to be included in the “posting template loop” because the php file will change daily with different advertisers and I don’t want the posts that were published yesterday to be updated with todays, instead I want them to keep the old ads as they have life long advertising with me, you get what I mean?
Thanks,
Jas.
While my CG-Inbetween plugin can certainly be used to include ‘php ad files’, you are looking for ads embedded IN the post, as you “want them to keep the old ads”. So long as the calls aren’t actual PHP, you could embed the HTML directly. Or, you could use one of the plugins that allows you to embed actual PHP in the post. I don’t know offhand of advertising systems that lock a given ad run to a given post (that would be counter to ads ‘rotating’, changing advertisers over time, etc. – most people don’t buy an ad-spot on one post, they buy it on the SITE level…). So you likely want a much different approach, embedding something in the post content, if you want it locked to the post.
Thanks for info, you don’t know how I could get the job done automatically do you? I can edit php files but don’t know which one to edit or exactly how. The file I want to call is myads.php which uses a template file to execute ads.
Cheers.
Jas.
thank you for your very useful plugin!
HELP!! Line 17 error
I’m also getting the line 17 error on WP 2.2 I have set permissions on the cache folder and everything, but when I activate the plugin it crashes my site.
Any help?
Thanks
Hey, just wanted to say thanks for the plug-in its really awesome, it was exactly what I needed for my site. Just wondering if maybe you could help me fix the resizing issue? perhaps I could even try verion 3,
Thanks
Gp
David -
Thanks for your wonderful set of offerings. I have been using the Amazon plug-in for over a year and a half. Now that I am redesigning my site, I am hitting a bit of a snag with it. It still works fine, but I am noticing it outputs a ‘p’ before closing out the ‘a’.
I have looked through the code and cannot find it. Do you have any ideas? It does this on every instance of the plug-in being used. Normally I would not care to much about this, but it is messing with my JavaScript I am trying to run.
If you could tell me where that mysterious ‘p’ tag comes from I would be very grateful. If you go to my site, the blog will display the first paragraph in red on every entry except where I have this plug-in working, in the event you want to see it in the wild.
I appreciate your help.
Regards,
Craig Coffman
I’m trying out the CG-Amazon and I was wondering how do I create a display of items on my blog.
Hi,
I posted this awhile ago:
>>Hi, wonderful plugin! I have a problem trying to display feedburner feeds, they break up the other sidebar and place the contents on the sidebar using the cg-feedread data. Any ideas?
This is a feed that misbehaves, for example: http://feeds.feedburner.com/PoliticalWire
Any suggestions or should I look for another plugin?
I seem to be having a problem with getting feedread to work. I uploaded the files, activated the plugin, but when I place the code into my wordpress template, my blog becomes a blank white page. I’m in the dark, help!
Nice plugins. I wish to incorporate/integrate a RSS feed from phpbb forum (link is like rss.php) into wordpress RSS feed and have one feed for both WP and phpbb. Is that possible with feedread? I just want the feeds (title; clickable to actual post to a new window).The last released version of CG-FeedRead had two features: MultiFeed and ReFeed. MultiFeed allows you to intermix RSS feeds by GMT timestamps. ReFeed was supposed to let you output a call to getSomeFeed as VERY simplified/hacked RSS2 formatting (rather than html) – though, I can’t recall how well it was working.
Hey there, these little plugins are nice! I’m having a problem (I think since WP 2.7), on the second site, not front anymore, the pictures added with cg inline disappear and only some of them. Could this be connected? Also the sidebar disappears to the bottom of the homepage…
I’m having trouble getting flashytitles to work on WP 2.7.1. I installed it and set up my sIFR fonts, but they don’t work. The default fonts you provided do work either. My CSS woks and I used the same classes, so I can’t figure it out.
what’s wrong with this plugin??? i just installed it in my wordpress, then it went wrong already. i think our database is affected by this. it’s not even appearing in the plugins list, so i can’t deactivate it. is this some kind of a virus??
Hi I tried to implement this plugin my wordpress blog. But it shown me error access denied. what to do with it?? Can you please resolve it??