Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Latest Posts RSS Feed
#11
Hi,

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

Regards,
Tim
Reply
#12
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
Reply
#13
(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
Reply
#14
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
Reply
#15
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
Reply
#16
dear friend
thanks a lot.
Reply
#17
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);


Attached Files
.php   syndication.php (Size: 3.58 KB / Downloads: 184)
Reply
#18
Upgraded to version 1.4.12 with corrected showing attachments.


Attached Files
.php   syndication.php (Size: 4.6 KB / Downloads: 176)
Reply
#19
Sorry for bump, is there an updated version of this for MyBB 1.6
Reply
#20
Upgraded to version 1.6.


Attached Files
.php   syndication.php (Size: 5.14 KB / Downloads: 291)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)