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

XF 1.1 XenForo RSS date topic created

Discussion in 'XenForo Questions and Support' started by Rodolfo, Jul 5, 2012.

  1. Rodolfo

    Rodolfo Member

    Hi there, I don't know if this is a error or is bad config in my XF installation. Thing is that I've using RSS Graffiti to push my forum RSS to Facebook but everytime a response is made on a topic it push again the content in my Facebook page.

    It seems that XenForo is actually using the last post date instead of the topic creation date. This means that RSS Graffiti thinks that something is new but it doesn't and submit the content every time. This is annoying because I have several updates on my Facebook page with the same topic, just because the date is wrong.

    My question is how can I set RSS feed to populate by topic creation date instead of last post date.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Rodolfo

    Rodolfo Member

    Hi Jack, that works but only for the global rss. How can I do the same for each forum rss?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    library/XenForo/ControllerPublic/Forum.php

    Add the red code:

    Code:
    		$threadFetchOptions = $fetchElements['options'] + array(
    			'perPage' => $threadsPerPage,
    			'page' => $page,
    			//'order' => $order,
    			'order' => ($this->_routeMatch->getResponseType() == 'rss' ? 'post_date' : $order),
    			'orderDirection' => $orderDirection
    		);
    
     
    RoyalRumble, AzzidReign and Rodolfo like this.
  5. Rodolfo

    Rodolfo Member

    Awesome, that did it. Thanks!
     
  6. AzzidReign

    AzzidReign Well-Known Member

    I've been meaning to look up a solution for this. Thank you so much!
     
  7. Rodolfo

    Rodolfo Member

    Sorry for bump this but it seems to be a issue when the forum has sticky topics because in the RSS this topics are always all the way to the top and when a new topic appears it does under the sticky ones and the rss parser fetch all the elements again.

    There is a way to skip the sticky status in the RSS feed?
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Are you sure? I haven't been able to reproduce this behavior. Sticky threads are not always at the top of the feed on my forum.
     
  9. Rodolfo

    Rodolfo Member

    Yes, I'm sure. Anyway it seems to be a error of the parser and not xenforo.
     
  10. petertdavis

    petertdavis Well-Known Member

    Is there any way to further limit the feed to only threads created within the past 24 hours?
     

Share This Page