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 |
#122
|
||||
|
||||
Hi All, I have an RSS feed for the total board: http://www.physiobob.com/forum/external.php?type=rss2
I would like to be able to exclude one forum from this total feed which combines all new posts from all areas. I would also like to be able to put a post date and time with each feed and the username of the poster. Can anyone assist with how I might accomplish to above Many thanks |
#123
|
||||
|
||||
thank you very much..
|
#124
|
|||
|
|||
I installed this on two forums today and it works perfectly. Thanks Wayne! I added Shane's tweak to remove the image border and also changed the <td> class to "vbmenu_control" so that it matched the Forum Search and Thread Tools boxes a bit better...
|
#125
|
||||
|
||||
Installed! Great plugin, thanks Wayne
|
#127
|
|||
|
|||
Worked like a charm in my 3.7 b3 install
thx! |
#128
|
|||
|
|||
This question was asked before but did not see answer...
Is is possible to pull and sort threads by the latest post, not the thread creation date? One of my most popular threads is not showing up on the feed because it was started few month back. How can I get it to show up? Thanks. Version 3.6.8 Patch2 |
#129
|
|||
|
|||
Quote:
&lastpost=1 That will sort by last post. If you want to set this as a default for your forum, you need to edit the Headinclude template for your style(s.) Find: Code:
<link rel=”alternate” type=”application/rss+xml” title=”$vboptions[bbtitle] RSS Feed” href=”external.php?type=RSS2″ /> Change to: Code:
<link rel=”alternate” type=”application/rss+xml” title=”$vboptions[bbtitle] RSS Feed” href=”external.php?type=RSS2&lastpost=1″ /> That adds the &astpost=1 directly to the feed coming from the forum. /Edited to add:There are actually 2 spots in the Headinclude you should add that, the second will be right down below the other one, and controls the feed for each individual forum. To change that one, scroll down in Headinclude to: Code:
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]" ] Change to: Code:
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]&lastpost=1" That adds the last post sort directly to the RSS icon of each forum. To add it to the icon placed in each forum by this particular hack, go to the FORUMDISPLAY template, find: Code:
<td class="tcat"><a href="external.php?type=rss2&forumids=$foruminfo[forumid]"> Change to: Code:
<td class="tcat"><a href="external.php?type=rss2&forumids=$foruminfo[forumid]&lastpost=1"> That will add the last post sort to the icon added by this hack. Dexter... |
#130
|
|||
|
|||
Hi some problem or need help here
over at "forumdisplay_start" plugin. my template shows this Code:
if ($vbulletin->options['gosterx3']) { $vbphrase['sticky_thread_prefix'] = ''; } For the second part my original file is diff like this 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[subforums]<span class="normal"> : $foruminfo[title]</span></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch.subforums" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></if></td> </if> </tr> </table> pls suggest. thnks |
#131
|
||||
|
||||
Can I align this to the right?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|