2011-03-14, 07:51 PM
First of all, my apologies if this tutorial or a plugin that achieves the same. I searched but I couldn't find anything.
You can subscribe to a RSS feed for a specific forum by clicking the the RSS icon in your addressbar. But in some browsers that RSS icon is missing by default (like in Chrome, but there is an extension for that) and some user may find it difficult to find their way to that icon and such. I just saw this on another forum and I quite liked the idea to add a direct RSS link for each forum on the listings. Because this modification is a really small one, I decided to not write a plugin for it but write a short tutorial instead. If there is demand for it, I can write a small plugin to make the changes to the templates automatically.
The end result looks like this:
1) First upload an icon to your theme image folder. The image folder of the default theme is "images/". I used the rss.png icon from the Silk icons which are also used by the MyBB default theme.
2) Login to your AdminCP and go to Templates & Style > Templates > (click the templates that used by your theme) > Forum Bit Templates > forumbit_depth2_forum. Before:
3) Save the template and go to your index page to review the changes.
Done!
You can subscribe to a RSS feed for a specific forum by clicking the the RSS icon in your addressbar. But in some browsers that RSS icon is missing by default (like in Chrome, but there is an extension for that) and some user may find it difficult to find their way to that icon and such. I just saw this on another forum and I quite liked the idea to add a direct RSS link for each forum on the listings. Because this modification is a really small one, I decided to not write a plugin for it but write a short tutorial instead. If there is demand for it, I can write a small plugin to make the changes to the templates automatically.
The end result looks like this:
1) First upload an icon to your theme image folder. The image folder of the default theme is "images/". I used the rss.png icon from the Silk icons which are also used by the MyBB default theme.
2) Login to your AdminCP and go to Templates & Style > Templates > (click the templates that used by your theme) > Forum Bit Templates > forumbit_depth2_forum. Before:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>...
insert:<div style="float:right;padding:5px;"><a href="{$mybb->settings['bburl']}/syndication.php?fid={$forum['fid']}&limit=15"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="RSS" title="RSS" /></a></div>
3) Save the template and go to your index page to review the changes.
Done!