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 |
#92
|
||||
|
||||
Quote:
Can someone advise as I like this hack idea |
#93
|
|||
|
|||
Quote:
|
#94
|
||||
|
||||
ok I am using 3.6.2 and I think the layout is a bit different. e.g. the code shown below is now this on my forum:
Quote:
Should your code be altered to take into consideration the changes between the one in your post here and also the one I have posted above? Also the only way to add something to the forumdisplay_start in the plugin is to edit a product that uses this and add it to that plugin. I assume this is correct as there doesn't appear to be any plugin for this actual hack itself. Any more comments or direction appreciated. |
#95
|
|||
|
|||
Great little hack, thanks. I have a question though...
RSS will only send feeds of forums that are publicly viewable. I have some forums which are visible only to registered guests, and a couple of private forums for certain usergroups, plus staff forums, etc. I don't want the icon showing up in those forums, but this hack will add the RSS icon to every forum. How would I go about adding a conditional to not display this icon if the can't be viewed through RSS? I'm guessing an if forumid <> x,y,z or something like that, but I'm not clear exactly where I should try this or what I should try. Any advice? Thanks. Dexter... /Edit: never mind, found a good hack for this here at Vb.org |
#96
|
|||
|
|||
I just installed this mod and i found an error on my site that i didn't know existed......I am not seeing any error's on my website, but when i use this mod, and open up the .xml, i see this error:
Quote:
Thanks..........I did ask at vbulletin.com but no answer of any sort.......hotwheels |
#97
|
|||
|
|||
Quote:
Xmmmmm let it me guess, you have vBadvanced installed and your $stylevar['imgdir_misc'] is /forums/images/misc it's a "bug" at external.php open external.php and find : PHP Code:
PHP Code:
|
#98
|
|||
|
|||
Quote:
|
#99
|
|||
|
|||
No dice evilhawk, although i think that is the file that is causing the error.......
I am running phpportals instead of vbadvanced.......I tried the suggested changes, but it only brought me error's......thanks for the quick reply and the help..... I still get the Quote:
Quote:
|
#100
|
|||
|
|||
bump
|
#101
|
|||
|
|||
I can't see this error at your forums rss feed code ...
Anyway vB 3.6.3 solves this problem . |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|