1. 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

Discussion in 'Troubleshooting and Problems' started by Ben44, Mar 1, 2016.

  1. Ben44

    Ben44 Member

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  3. Tracy Perry

    Tracy Perry Well-Known Member

    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.
     
    Breixo likes this.
  4. Ben44

    Ben44 Member

    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: Mar 1, 2016
  5. Ben44

    Ben44 Member

    Thanks all for your help. I followed your guide Tracy and now only have 2 items at a time :)
     
  6. Tracy Perry

    Tracy Perry Well-Known Member

    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.
     

Share This Page