Keyword

Max item feeds not working

  • Roger Starnes
  • Roger Starnes's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago #55221 by Roger Starnes
Max item feeds not working was created by Roger Starnes
Hi,

We are using your Simple RSS Feed Reader for a site that is showing more than the maximum number of items from each feed. We have 5 or so feeds in the module, and have the max number of feeds at "10" and the per-feed limit is set to "3". However, 2 feeds are showing 5 items each. Sample page: soche.org/members/member-news.

Settings: www.bingdesign.com/clients/soc/member-news-simple-rss-settings.png

Help?

Roger
Ohio, USA

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #55228 by Lefteris
Replied by Lefteris on topic Max item feeds not working
Hi. Ensure that clear the Joomla! cache after you applied the settings.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Roger Starnes
  • Roger Starnes's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago - 9 years 11 months ago #55232 by Roger Starnes
Replied by Roger Starnes on topic Max item feeds not working
Hi,

I've had the site up for nearly 5 months. It was working fine but in the past several weeks, the feed item limits are not working. I refreshed the JAT3 cache as well as the Joomla cache and neither changed the way the RSS feed displays on the site.

Of the 6 feeds I'm pulling in, I only see results from 2. 1 has 6 items showing, the other 4. Max items for all is set to 10. The other 4 feeds are up, have content, and are working, but not showing up in the RSS page of our site using this tool.

Other thoughts?

Roger
Last edit: 9 years 11 months ago by Roger Starnes.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #55235 by Lefteris
Replied by Lefteris on topic Max item feeds not working
Since it was working maybe something is wrong with the feeds. They all should be valid. You can always validate a feed using the W3C validator at validator.w3.org/feed/ .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Roger Starnes
  • Roger Starnes's Avatar Topic Author
  • Offline
  • New Member
More
9 years 11 months ago #55236 by Roger Starnes
Replied by Roger Starnes on topic Max item feeds not working
Thanks.

All 6 feeds are valid using the W3C link provided. Just confirmed.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #55237 by Lefteris
Replied by Lefteris on topic Max item feeds not working
It seems that you are right. The "Maximum items to fetch per feed" doesn't have any effect.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #56457 by thomas
Replied by thomas on topic Max item feeds not working
Was having the same issue
I solved this by adding a break to the foreach statement that begins at around line 42 and ends at around line 64 of helper.php file
foreach($parsedFeeds as $feed){
  $break = $perFeedItems;
  foreach($feed->feedItems as $key=>$item){
	$break--; // reduce it by one
	// Create an object to store feed elements
	$feedElements[$key] = new JObject;
	$feedElements[$key]->itemTitle = $item->title;
	$feedElements[$key]->itemLink = $item->link;
	$feedElements[$key]->itemDate = strftime($dateFormat,strtotime($item->pubDate));
	$feedElements[$key]->itemDateRSS = $item->pubDate;
	$feedElements[$key]->itemDescription 	= $item->description;
	$feedElements[$key]->feedImageSrc = '';
	$feedElements[$key]->feedTitle = self::wordLimiter($feed->feedTitle,10);
	$feedElements[$key]->feedURL = $feed->feedSubscribeUrl;
	$feedElements[$key]->siteURL = $feed->feedLink;

	// Give each feed an index based on date
	$itemDateIndex = strftime('%Y%m%d%H%M',strtotime($item->pubDate));

	// Pass all feed objects to an array
	$feedItemsArray[$itemDateIndex] = $feedElements[$key];

	if($break <=0)
        break; //will break if statement and foreach
             
}
Last edit: 9 years 6 months ago by thomas.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum