CG-FeedReader Problems
-
I’m trying to use the CG-feedreader, and I’ve installed the plugin but when it comes to the code I’m supposed to put on the site, I’m having problems. Can someone explain a little more clearly exactly what code goes on the page and what parameters do I need to change? When I put the code on the sidebar, the code itself is showing up on the page. Here’s a copy of the readme instructions:To better integrate into the default WP styling scheme, for a sidebar feed,<BR>
I’ve included some ‘simple block’ functions. Try code like the following<BR>
in the menu/sidebar section of your template:<BR>
<?php<BR>
$feedUrl = "https://news.com.com/2547-1040_3-0-5.xml"; // enter your feed's url here<BR>
$feedOut = getSomeFeed($feedUrl, 4, false, "feed-cache-name", '', 36); // enter a cache name<BR>
if (!empty($feedOut))<BR>
{<BR>
start_block("Feedread News", "feedread", "li");<BR>
echo $feedOut;<BR>
end_block();<BR>
}<BR>
?><BR>
<BR>
<hr />
<h2>Function Parameters</h2>
Params to getSomeFeed function, in order:<BR>
<BR>
function getSomeFeed($InUrl, $numberOfItems, $showDetails, $cacheName, $filterCat='',<BR>
$tLimit = -1, $dLimit = -1, $noHTML = 1)<BR>
<BR>
$InUrl<BR>
The fully specified url of the news feed.<BR>
<BR>
$numberOfItems<BR>
How many items to display from the feed. Taken in order.<BR>
<BR>
$showDetails<BR>
Show just the title, or show the details/body as well?<BR>
<BR>
$cacheName<BR>
What to name the cache file on disk (obv give it something unique from other feeds!)<BR>
NOTE: caching is important, so that you don’t repeatedly hit feeds.<BR>
The global $CACHE_TIME controls the age of the cachefile before recaching. If not set<BR>
(global unset), defaults to 24h. NOTE: The SAME global is used in CG-Amazon at the moment.<BR>
<BR>
$filterCat<BR>
Can leave as ” generally. Allows you to filter items by matching a string in the feed urls<BR>
or categories. For stripping down big feeds that don’t have sub-categoried feeds.<BR>
<BR>
$tLimit<BR>
Character limit on titles. (truncates) -1 to leave alone.<BR>
<BR>
$dLimit<BR>
Character limit on descriptions. (truncates) -1 to leave alone.<BR>
<BR>
$noHTML<BR>
strips HTML tags from descriptions for safety. set to false to leave alone.<BR>
<BR>??<BR>
<hr />
©Copyright 2003-2005, David Chait. All rights reserved.<BR>??Some of this is the actual code and some is an explanation of the code, but even when I copy just the stuff between
it still shows the code on the page. So obviously I’m not doing something right. Can someone help me with this?
Thanks
Debbie
- The topic ‘CG-FeedReader Problems’ is closed to new replies.