bondimedical Posted January 28, 2016 Share Posted January 28, 2016 In all Cubecart 5 stores the newsfeed has either disappeared or turned into a long list? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 28, 2016 Share Posted January 28, 2016 Your store may be requesting a RSS source that is not "version 2" or later. Your store may be requesting a RSS source that feeds a large amount of entries. The following URL does just that: Please try, in admin, Store Settings, Layout tab, Default RSS URL for Admin Dashboard: https://forums.cubecart.com/forum/1-news-announcements.xml It is now CC6's job to limit how many to show. In CC5217, dashboard.index.inc.php: Lines 252-259: if ($data['version'] >= 2) { foreach ($data->channel->item as $item) { $news['items'][] = array( 'title' => (string)$item->title, 'link' => (string)$item->link, ); } } Change to: if ($data['version'] >= 2) { $i = 1; foreach ($data->channel->item as $item) { $news['items'][] = array( 'title' => (string)$item->title, 'link' => (string)$item->link, ); if($i==5) break; $i++; } } Quote Link to comment Share on other sites More sharing options...
bondimedical Posted January 29, 2016 Author Share Posted January 29, 2016 Thank you very much. Works perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.