MyBB Community Forums

Full Version: Latest Posts RSS Feed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Hi,

Thanks very much for sharing this code, I'm new to MyBB and find it very helpful.

Regards,
Tim
hi
this plugin send Latest Posts of hole forums .
how can i send Latest Posts of one of my forums. for example : art forum
thanks
(2010-02-07, 08:51 PM)sco1385 Wrote: [ -> ]this plugin send Latest Posts of hole forums .

This is NOT a plugin. Wink

(2010-02-07, 08:51 PM)sco1385 Wrote: [ -> ]how can i send Latest Posts of one of my forums. for example : art forum

Just add fid as a parameter. It works exactly the same way like the default syndication.php
Just create a feed url with the assistant: http://community.mybboard.net/misc.php?a...yndication (on your board of course) and change syndicaion.php to syndication2.php
hi
i create a feed url with the assistant.
the created feed is:
http://talar.shandel.org/syndication2.ph...1&limit=15
but it does not work.
is there any error in it?
thanks
You have to select a forum not a category. Forum ID 21 is a category. This is not a problem with latest posts rss feed - it doesn't work with default rss feed too: http://talar.shandel.org/syndication.php?fid=21

This should work: http://talar.shandel.org/syndication2.ph...4,25,85,92
dear friend
thanks a lot.
I changed the file syndication.php to show the name of the author.

line 112
$query = $db->simple_select("posts", "subject, dateline, message, edittime, tid, fid, pid", "visible='1' "
.$forumlist, array('order_by' => 'dateline', 'order_dir' => 'desc', 'limit' => $post_limit));
changed to
$query = $db->simple_select("posts", "subject, username, dateline, message, edittime, tid, fid, pid", "visible='1' "
.$forumlist, array('order_by' => 'dateline', 'order_dir' => 'desc', 'limit' => $post_limit));


after line 129
$items[$post['tid']]['updated'] = $post['edittime'];
added line
$items[$post['tid']]['author'] = $parser->parse_message($post['username'], $parser_options);
Upgraded to version 1.4.12 with corrected showing attachments.
Sorry for bump, is there an updated version of this for MyBB 1.6
Upgraded to version 1.6.
Pages: 1 2 3 4 5