bondimedical Posted July 2, 2015 Share Posted July 2, 2015 If you view the image I am noticing that ALL CubeCart stores are displaying an extended version of the News & Announcements. Why is this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 2, 2015 Share Posted July 2, 2015 I think it's because of the "new" source of these feeds.I note that this skin is a CC5 admin skin, so maybe you are running CC5? If so, the RSS feed may be coming from:https://forums.cubecart.com/forum/1-news-announcements/CC6 is asking for the feed from:https://forums.cubecart.com/forum/1-news-announcements.xmlwhich is basically the same, just a different format.But CC6 also has a count limiter.Therefore, I think the provider of the RSS feed no longer limits the list of items, and relies on CubeCart to limit itself.Near line 248 in dashboard.index.inc.php, make the code look like: 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++; } } $GLOBALS['smarty']->assign('NEWS', $news); Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted July 2, 2015 Share Posted July 2, 2015 This is because our forum software historically only returned five items. Since this new version it returns 25. I have asked the software provider to add a setting but they won't. I know how you guys feel now! I'll have to hack the code again.... Quote Link to comment Share on other sites More sharing options...
bondimedical Posted July 3, 2015 Author Share Posted July 3, 2015 So should I apply Brian's fix or you guys will fix it at your end? Quote Link to comment Share on other sites More sharing options...
bondimedical Posted July 3, 2015 Author Share Posted July 3, 2015 I think it's because of the "new" source of these feeds.I note that this skin is a CC5 admin skin, so maybe you are running CC5? If so, the RSS feed may be coming from:https://forums.cubecart.com/forum/1-news-announcements/CC6 is asking for the feed from:https://forums.cubecart.com/forum/1-news-announcements.xmlwhich is basically the same, just a different format.But CC6 also has a count limiter.Therefore, I think the provider of the RSS feed no longer limits the list of items, and relies on CubeCart to limit itself.Near line 248 in dashboard.index.inc.php, make the code look like: 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++; } } $GLOBALS['smarty']->assign('NEWS', $news); Thank you for your help Brian. The fix works perfectly Quote Link to comment Share on other sites More sharing options...
bondimedical Posted July 4, 2015 Author Share Posted July 4, 2015 This is because our forum software historically only returned five items. Since this new version it returns 25. I have asked the software provider to add a setting but they won't. I know how you guys feel now! I'll have to hack the code again....I have changed the News feed URL to https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/ in my CubeCart 5 store without Brian's fix and the issue fixed itself. 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.