• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 RSS Feeder

#1
The Feeder collects and forwards 5 items at a time. This is starting to overwhelm my forum.

I have set the collection time to 12 hours but there appears nowhere to set the amount of items collected.

Anyone help me please ?

https://no1forum.co.uk
 

Brogan

XenForo moderator
Staff member
#2
The number of items is hard coded and can't be changed.

Once the feed catches up with the current date and entries, it will only fetch new entries from that point on, up to 5 at a time.
 

Tracy Perry

Well-known member
#3
Anyone help me please ?
You will need to modify the library/XenForo/Model/Feed.php and find
Code:
        /**
         * Maximum number of entries to be fetched per-feed per-import.
         *
         * @var integer
         */
        protected static $_maxEntriesPerImport = 5;

        /**
and modify the 5 to how ever many you want. This will have to be done after every update of the script.
 
#4
Thank you very much for that Brogan. That's a bit of a nuisance really as I have two RSS feeds and can wake up in the morning to 20 posts between them.

I might have to have a think about disabling them altogether which is a shame.

I didn't see your post Tracy while I answered Brogan's. That look promising, where is this 'Library' ?
 
Last edited:

Tracy Perry

Well-known member
#6
Thanks all for your help. I followed your guide Tracy and now only have 2 items at a time :)
Sorry I didn't catch the earlier post.. for any that may not be aware of where the /library folder, it is located off the root of wherever you have your forum script installed.

Be aware, any time you perform an upgrade, you will have to edit that file, and further if you run a file check, it will show as not correct.
Glad it worked for you.