Jump to content

[Resolved] Cubecart 5.2.17 Newsfeed Bug


bondimedical

Recommended Posts

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++;
                    }
                }

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...