• 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 ?

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

Tracy Perry

Well-known member
#2
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.
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.