Multimedia Design & Tech

Wednesday, December 14, 2005

Adding RSS functionality to PHPBB

Here's a little MOD for users of PHPBB. Make sure you have an RSS webbadge named rss_icon.gif and make sure you install RSS Content Syndicator Mod V2.02 by nschindler In case you have no idea what I'm talking baout so far, phpBB is an open source bulletin board system developed with PHP and MySQL. http://www.phpbb.com I haven't actually submitted this MOD to their site yet due to time restraints. Enjoy

1. Install the RSS Content Syndicator Mod V2.02 (http://www.phpbb.com/phpBB/catdb.php?mode=download&id=816665)

2. Open /templates/index_body.tpl

3. Find “

4. Insert the following AFTER:


5. Save and close

6. Open /templates/viewforum_body.tpl

7. Find {FORUM_NAME}

8. Insert the following AFTER:

9. Save and close

10. Open viewforum.php

11. Find 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL ."=$forum_id"),

12. Insert the following AFTER:

'U_VIEW_RSS' => append_sid("rss.$phpEx?" . POST_FORUM_URL ."=$forum_id"),

13. Save and close

14. Open rss.php

15. Find $l_topic_replies = $lang['Topic'] . ' ' . $lang['Replies'];

16. Insert the following after:

if ($forum_id > 0) {

$specialforum_query = 'select forum_name from phpbb_forums where forum_id = ' . $forum_id .';';

$forums_query = mysql_query($specialforum_query) or die("Error: ".mysql_error()) ;

while ($result = mysql_fetch_array($forums_query)) {

$this_forum_name = $result["forum_name"];

}

}

NOTE FOR ABOVE: change phpbb_forums to the name of your forums table

17. Find the following 'BOARD_TITLE' => $site_name

18. Change it to 'BOARD_TITLE' => $site_name . ':' . $this_forum_name,

19. Save and close

20. Each forum will now display an RSS button linking to a feed as well as a main page feed displaying all new entries

0 Comments:

Post a Comment

<< Home