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

XF 1.2 Feeder restrictions ?

Discussion in 'XenForo Questions and Support' started by Adam H, Aug 24, 2013.

  1. Adam H

    Adam H Member

    Hi guys,

    Quick question. With the feeder import is there any way to prevent it from importing loads of feeds ? Ive got it set to import every 12 hours but ideally id only want one post from it in those 12 hours. Currently its importing 5 or 6.

    Also i know RSS is dependent on what the RSS feed is pushing although the feeds i want to import have the full article , is there anyway to limit it to say 5 sentences ?

    Thanks for any responses.
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Modify the /library/XenForo/Model/Feed.php line #24 to reflect the number you want (defaults to 5). You will have to do this with each upgrade.
    The full segment is default to
    Code:
     * Maximum number of entries to be fetched per-feed per-import.
    *
    * @var integer
    */
    protected static $_maxEntriesPerImport = 5;
    
    The second request i'm not sure about.
     
    Adam H likes this.
  3. Adam H

    Adam H Member

    Thanks very much that will do nicely :)
     

Share This Page