I also appreciated Alex's advice on peppering the PunBB sources with RSS links. I took that advice and also made some changes so that RSS auto-detect would work. For instance, in Safari on the Mac, this causes a nice RSS button to appear next to the URL in the browser.
The basic gist of all these changes is to add a <link> tag at the top of each significant page, indicating to the browser or client application what the corresponding feed for the page is.
In viewforum.php, replace:
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
if ($id < 1)
message($lang_common['Bad request']);
with
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
if ($id < 1)
message($lang_common['Bad request']);
?>
<link rel="alternate" type="application/rss+xml" title="XML" href="rss.php?fid=<?php echo $id ?>"/>
<?php
In viewtopic.php, basically the same thing:
if ($id < 1 && $pid < 1)
message($lang_common['Bad request']);
with
if ($id < 1 && $pid < 1)
message($lang_common['Bad request']);
?>
<link rel="alternate" type="application/rss+xml" title="XML" href="rss.php?tid=<?php echo $id ?>"/>
<?php
and in index.php, to add an RSS autodetect for the entire forum, replace:
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
with
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
?>
<link rel="alternate" type="application/rss+xml" title="XML" href="rss.php"/>
<?php