MyBB Community Forums

Full Version: Quick forum RSS syndication button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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:
[attachment=21947]

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']}&amp;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! Big Grin
useful tip, thanks man
Hello bro. nice tut. as what im looking for.
Currently im using the ajs plugin where it create a new thread from the index? will this be compatible? anyway i'll give a try later as soon as i have made backup. but anyway can i request for this to be plugin so if in case i can easily just disable this or undo the changes using this. Thanks.
Yes, it will be compatible. You can safely keep both edits.
its not working to me the image is not appearing
Put the image in your theme directory.
And make sure the name it's rss.png
(2011-06-22, 07:04 AM)bestblackhatforum.com Wrote: [ -> ]but anyway can i request for this to be plugin so if in case i can easily just disable this or undo the changes using this.

You can very easily disable this by changing
<div style="float:right;padding:5px;"><a href="{$mybb->settings['bburl']}/syndication.php?fid={$forum['fid']}&amp;limit=15"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="RSS" title="RSS" /></a></div>
to
<!--div style="float:right;padding:5px;"><a href="{$mybb->settings['bburl']}/syndication.php?fid={$forum['fid']}&amp;limit=15"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="RSS" title="RSS" /></a></div-->

(Notice the changes to the initial <div> and the ending </div>.) You just turn the whole addition into an HTML comment to undo the change.
raoul I already added it to my cpanel>forum>images>rss.png

but still the image is not showing. here is my site http://pinoyfused.com
(2011-10-15, 07:15 AM)pinoykaizen Wrote: [ -> ]raoul I already added it to my cpanel>forum>images>rss.png

but still the image is not showing. here is my site http://pinoyfused.com

You've entered incorrect code, your template showing this;
<img src="http://pinoyfused.com/forum/images/ins"images/rss.png" alt="RSS" title="RSS" />
However it should lilke this;
<img src="http://pinoyfused.com/forum/images/rss.png" alt="RSS" title="RSS" />
Sir I already applied it and thanks its appear can you check it sir if its working or not? because when i click it using google chrome it says this:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

But when i try it to google its working.
Pages: 1 2