There, the URLs should now direct to the individual posts instead of the entire thread.
This is just for my personal usage if I update the forum software and my changes get erased:
Code:
// Get the threads to syndicate.
$query = $db->query("
SELECT t.tid, p.pid, p.dateline, p.edittime, t.subject, f.allowhtml, f.allowmycode, f.allowsmilies, f.allowimgcode,
f.name, p.message, u.username, p.smilieoff, f.fid
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=p.fid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE t.visible=1 AND t.closed NOT LIKE 'moved|%' ".$forumlist."
ORDER BY p.pid DESC
LIMIT 0,".$thread_limit
);
// Set the feed type.
$feedgenerator->set_feed_format($mybb->input['type']);
// Set the channel header.
$channel = array(
"title" => $title,
"link" => $mybb->settings['bburl']."/",
"date" => TIME_NOW,
"description" => $mybb->settings['bbname']." - ".$mybb->settings['bburl']
);
$feedgenerator->set_channel($channel);
// Loop through all the threads.
while($thread = $db->fetch_array($query))
{
$thread['link'] = $channel['link'].get_thread_link($thread['tid']).'&pid='.$thread['pid'].'#pid'.$thread['pid'];
(This is the code I modified to address the issues in this thread, in syndication.php)