Topic: RSS feeds with both topic and replies

I have just started using PunBB 1.3.4 but the RSS/ATOM feeds for a forum only contains the topics and not the replies. How can I make it contain the replies also? This seems to have worked in an earlier version, but I cannot find any information about how to configure this.

Re: RSS feeds with both topic and replies

The extern.php file is responsible for the output of the "RSS/ATOM" page.
There are output options condition blocks at the top of the page. The $action variable is used as the option.
In each block that describes the output type there is a database query that selects topics.
You only need to add an indication that messages are selected too; process the data and pass the value on to the corresponding function

Re: RSS feeds with both topic and replies

Thanks, I think I have found the place in the code.
Unfortunately my knowledge about both PHP and database queries are very limited.
Is it possible to get some more specific hint of how to make the change?

I am still wondering why this was changed, as it seems to have worked in an earlier version.

Re: RSS feeds with both topic and replies

I seem to have solved it now.
Just in case anyone wants to know, I show the changed code here.
In extern.php line 442 I changed this code:

// Fetch $show topics
$query = array(
  'SELECT'    => 't.id, t.poster, t.subject, t.last_post, t.last_poster, p.message, p.hide_smilies, u.email_setting, u.email, p.poster_id, p.poster_email',
  'FROM'        => 'topics AS t',
  'JOINS'        => array(
    array(
      'INNER JOIN'    => 'posts AS p',
      'ON'            => 'p.id=t.first_post_id'
    ),

to this:

// Fetch $show topics
$query = array(
  'SELECT' => 't.id, t.poster, t.subject, t.last_post, t.last_poster, p.message, p.hide_smilies, u.email_setting, u.email, p.poster_id, p.poster_email, p.posted, p.id',
  'FROM'      => 'posts AS p',
  'JOINS'        => array(
    array(
       'INNER JOIN'   => 'topics AS t',
       'ON'        => 't.id=p.topic_id'
    ),

And at line 480 I changed this code:

$item = array(
  'id'            =>    $cur_topic['id'],
  'title'            =>    $cur_topic['subject'],
  'link'            =>    forum_link($forum_url['topic_new_posts'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))),
  'description'    =>    $cur_topic['message'],
  'author'        =>    array(
    'name'    => $cur_topic['last_poster']
  ),
  'pubdate'        =>    $cur_topic['last_post']
);

to this:

$item = array(
  'id'       => $cur_topic['id'],
  'title'            =>    $cur_topic['subject'],
sef_friendly($cur_topic['subject']))),
  'link'         => forum_link('viewtopic.php?pid=$1', array($cur_topic['id'])),
  'description'    =>    $cur_topic['message'],
  'author'        =>    array(
    'name'    => $cur_topic['last_poster']
  ),
  'pubdate'      => $cur_topic['posted']
);

Now I get all replies and not just the topic. Thanks for the hint for solving this.