The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show RSS Feed Icon in each forum Details »» | |||||||||||||||||||||||||||
Show RSS Feed Icon in each forum
Developer Last Online: Oct 2023
So I wanted to add an image link to each forum for its unique RSS feed. This would allow people to subscribe to their favorite forums with their favorite News Reader instead of email. It would always be up to date and accurate.
There are three steps to doing this. First, I decided I needed a small plugin to determine if RSS was turned on within the forumdisplay template. Go to your plugin manager and add the following code to the "forumdisplay_start" plugin. PHP Code:
Find: HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td> <td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> </if> </tr> </table> HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td> <td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> </if> <if condition="$show['rss']"> <td class="tcat"><a href="external.php?type=rss2&forumids=$foruminfo[forumid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/feed_icon.png" height="14" width="14" alt="Feed Icon" title="Subscribe to $foruminfo[title]'s RSS Feed"></a></td> </if> </tr> </table> Distibuted under the "Wayne License". You may modify to suit your needs, No Attribution Necessary, Redistribution allowed on sites which can verify legitimate vBulletin License Holders only. Show Your Support
|
Comments |
#62
|
||||
|
||||
Thank you Wayne Luke.
|
#63
|
|||
|
|||
I'm having this problem in my Sub-forums...
|
#64
|
|||
|
|||
Quote:
i would also like to know how to add this how do i generate feeds for the forums as well... thanks |
#65
|
|||
|
|||
I modified the if statement in the plugin to selectively eliminate the feed icon from private forums where no feed would exist anyway, in order to avoid confusion among my users.
HTML Code:
if ($vbulletin->options['externalrss'] and $foruminfo[forumid]!='20' and $foruminfo[forumid]!='33')
{
$show['rss'] = true;
}
HTML Code:
$foruminfo[forumid]!='20,33' |
#66
|
|||
|
|||
I can't install this.
Quote:
|
#67
|
||||
|
||||
Quote:
Add Feed To MyYahoo, Msn, Google & Blogline Button In Every Forum |
#68
|
|||
|
|||
I still can't install this, can someone please help?
|
#69
|
|||
|
|||
It works now, I forgot to enable the external RSS and XML feed in VB Options.
|
#70
|
|||
|
|||
i can't find the forumdisplay_start in the plugin manager?
|
#71
|
|||
|
|||
Thanks for the Mod. I installed it.
I was wondering why the whole post is displayed in my rss feeds rather than just a snippet of it like I see everywhere else? Also, how do I set the url's in the rss feeds to not have &goto=newpost at the end of every thread url. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|