|
Petition to improve the RSS feeds
|
|
May. 04, 2009, 06:50 PM
(This post was last modified: Dec. 08, 2011 11:22 PM by Kye-U.)
Post: #16
|
|||
|
|||
|
RE: Petition to improve the RSS feeds
I realize that the MyBB author(s) have updated the select query in syndication.php. I'll be working on fixing it.
EDIT: Done (I believe). Please verify that the RSS feeds are functioning the way they were before the upgrade ![]() Some notes for myself (and anyone who is interested in modifying MyBB): In syndication.php: After: Code: $unviewable = '';Add: Code: $unviewable2 = '';After: Code: $unviewable .= " AND fid NOT IN($unviewableforums)";Add: Code: $unviewable2 .= " AND p.fid NOT IN($unviewableforums)";After: Code: $unviewable .= " AND fid NOT IN($inactiveforums)";Add: Code: $unviewable2 .= " AND p.fid NOT IN($inactiveforums)";After: Code: $forumlist = "AND fid IN ($forum_ids) $unviewable";Add: Code: $forumlist2 = "AND p.fid IN ($forum_ids) $unviewable2";After: Code: $forumlist = $unviewable;Add: Code: $forumlist2 = $unviewable2;Comment out (add // at the beginning): Code: $query = $db->simple_select("threads", "subject, tid, dateline, firstpost", "visible='1' AND closed NOT LIKE 'moved|%' ".$forumlist, array('order_by' => 'dateline', 'order_dir' => 'DESC', 'limit' => $thread_limit));Insert after: Code: $query = $db->query("Remove (including the first comma): Code: ,Replace: Code: $firstposts[] = $thread['firstpost'];With: Code: $firstposts[] = $thread['pid'];Comment out: Code: $query = $db->simple_select("posts", "message, edittime, tid, fid", $firstpostlist, array('order_by' => 'dateline', 'order_dir' => 'desc'));Insert after: Code: $query = $db->query("Find: Code: $items[$post['tid']]['updated'] = $post['edittime'];Add after: Code: $items[$post['tid']]['author'] = $post['username'];And also follow through with the changes mentioned in Post #14. Fix to make the Last Modified timestamp used as the date/time (if exists) in RSS: In inc/class_feedgeneration, find: Code: $this->xml .= "\t\t\t<pubDate>".$item['date']."</pubDate>\n";Replace with: Code: if($item['updated']) |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help







![[-]](images/ONi/collapse.gif)