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 |
#72
|
||||
|
||||
I'm having a little problem installing the mod on my forums, but I think its down to a custom style I'm using.
I've updated the forumdisplay_start plugin without a problem, but I can't find the correct html code that I need to replace in the forumdisplay template. Here's my forumdisplay template... can anyone help?? Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title> <if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js"></script></if> </head> <body> $header $navbar <if condition="$show['forumslist']"> <!-- sub-forum list --> <!-- top category table setup --> <table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="88" height="26" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_ls.gif" width="88" height="26" alt=" " border="0" /></td> <td class="tcat" width="100%"><span class="smallfont"><strong>$vbphrase[subforums]</strong> : $foruminfo[title]</span></td> <if condition="$show['forumsearch']"> <td style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" class="vbmenu_control" id="forumsearch.subforums" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td> </if> <td width="88" height="26" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_rs.gif" width="88" height="26" alt=" " border="0" /></td> </tr> </table> <!-- End top category table setup --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr align="center"> <td class="thead"> </td> <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="175">$vbphrase[last_post]</td> <td class="thead">$vbphrase[threads]</td> <td class="thead">$vbphrase[posts]</td> <if condition="$vboptions[showmoderatorcolumn]"> <td class="thead">$vbphrase[moderator]</td> </if> </tr> </thead> $forumbits </table> <!-- bottom table setup --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="60" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_ls.gif" width="60" height="14" alt=" " border="0" /></td> <td width="100%" style="background-image:url($stylevar[imgdir_misc]/tren_z_front_btm_table_back.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="14" alt=" " border="0" /></td> <td width="60" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_rs.gif" width="60" height="14" alt=" " border="0" /></td> </tr> </table> <!-- End bottom table setup --> <br /> <!-- / sub-forum list --> </if> <if condition="$show['threadslist']"> <!-- threads list --> <form action="inlinemod.php" method="post" id="inlinemodform"> <input type="hidden" name="url" value="$url" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="forumid" value="$forumid" /> <!-- controls above thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> <table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="88" height="26" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_ls.gif" width="88" height="26" alt=" " border="0" /></td> <td class="tcat" width="100%" align="left"><span class="smallfont"><strong>$vbphrase[threads_in_forum]:</strong> $foruminfo[title]</span></td> <td align="right" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" 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 align="right" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" 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> <td width="88" height="26" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_rs.gif" width="88" height="26" alt=" " border="0" /></td> </tr> </table> <!-- End top category table setup --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist"> $announcebits <if condition="$show['search_engine']"> <if condition="$show['threadicons']"> <td class="thead" colspan="2"> </td> <else /> <td class="thead"> </td> </if> <td class="thead" width="100%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if> $vbphrase[thread] / $vbphrase[thread_starter] </td> <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[replies]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[views]</span></td> <else /> <tr> <if condition="$show['threadicons']"> <td class="thead" colspan="2"> </td> <else /> <td class="thead"> </td> </if> <td class="thead" width="100%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if> <a href="$sorturl&order=asc&sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] / <a href="$sorturl&order=asc&sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername] </td> <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount" rel="nofollow">$vbphrase[replies]</a> $sortarrow[replycount]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views" rel="nofollow">$vbphrase[views]</a> $sortarrow[views]</span></td> <if condition="$show['inlinemod']"> <if condition="$show['popups']"> <td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td> <else /> <td class="thead" align="center"> <input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onClick="inlineMod.check_all()" /> </td> </if> </if> </tr> </if> <if condition="$show['threads']"> <!-- show threads --> <if condition="$show['stickies']"> $threadbits_sticky </if> $threadbits <!-- end show threads --> <else /> <!-- show no threads message --> <tr> <td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center"> <div style="padding: 16px"> <if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br /> <span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if> </div> </td> </tr> <!-- end show no threads message --> </if> </table> <!-- bottom table setup --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="60" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_ls.gif" width="60" height="14" alt=" " border="0" /></td> <td width="100%" style="background-image:url($stylevar[imgdir_misc]/tren_z_front_btm_table_back.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="14" alt=" " border="0" /></td> <td width="60" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_rs.gif" width="60" height="14" alt=" " border="0" /></td> </tr> </table> <!-- End bottom table setup --> <!-- controls below thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$show['pagenav'] OR $show['inlinemod']"> <td align="$stylevar[right]">$pagenav <if condition="$show['inlinemod']"> <div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]"> <if condition="$show['pagenav']"><br /></if><strong>$vbphrase[moderation]</strong><br /> <select name="do"> <optgroup label="$vbphrase[option]"> <if condition="$show['deletethread']"> <option value="deletethread">$vbphrase[delete_threads]</option> <option value="undeletethread">$vbphrase[undelete_threads]</option> </if> <if condition="$show['openthread']"> <option value="open">$vbphrase[open_threads]</option> <option value="close">$vbphrase[close_threads]</option> </if> <if condition="$show['approvethread']"> <option value="approvethread">$vbphrase[approve_threads]</option> <option value="unapprovethread">$vbphrase[unapprove_threads]</option> </if> <if condition="$show['movethread']"> <option value="stick">$vbphrase[stick_threads]</option> <option value="unstick">$vbphrase[unstick_threads]</option> <option value="movethread">$vbphrase[move_threads]</option> <option value="mergethread">$vbphrase[merge_threads]</option> </if> </optgroup> <optgroup label="____________________"> <option value="clearthread">$vbphrase[clear_thread_list]</option> </optgroup> </select><input type="submit" class="button" id="inlinego" value="$vbphrase[go]" /> </div> <script type="text/javascript"> <!-- inlineMod = new vB_Inline_Mod('inlineMod', 'thread', 'inlinemodform', '$vbphrase[go_x]'); //--> </script> </if> </td> </if> </tr> </table> <!-- / controls below thread list --> </form> <br /> <!-- Active Users in this Forum (and sub-forums) and Moderators --> <form action="forumdisplay.php" method="get"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="f" value="$forumid" /> <input type="hidden" name="page" value="$pagenumber" /> <input type="hidden" name="pp" value="$perpage" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">$vbphrase[display_options]</td> <if condition="$show['activeusers']"> <td class="tcat">$vbphrase[currently_active_users]</td> </if> <if condition="$show['moderators']"> <td class="tcat">$vbphrase[moderators]</td> </if> </tr> <tr> <td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td> <if condition="$show['activeusers']"> <td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td> </if> <if condition="$show['moderators']"> <td class="thead">$vbphrase[moderators] : $totalmods</td> </if> </tr> <tr valign="top"> <td class="alt1"> <table cellpadding="0" cellspacing="1" border="0"> <tr> <td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td> <td><select name="sort"> <option value="title" $sort[title]>$vbphrase[thread_title]</option> <option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option> <option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option> <option value="views" $sort[views]>$vbphrase[number_of_views]</option> <option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option> <if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if> </select></td> <td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td> <td><select name="order"> <option value="asc" $order[asc]>$vbphrase[ascending]</option> <option value="desc" $order[desc]>$vbphrase[descending]</option> </select></td> </tr> <tr> <td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td> <td><select name="daysprune"> <option value="1" $daysprunesel[1]>$vbphrase[last_day]</option> <option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option> <option value="7" $daysprunesel[7]>$vbphrase[last_week]</option> <option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option> <option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option> <option value="30" $daysprunesel[30]>$vbphrase[last_month]</option> <option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option> <option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option> <option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option> <option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option> <option value="365" $daysprunesel[365]>$vbphrase[last_year]</option> <option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option> </select></td> <td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td> </tr> </table> </td> <if condition="$show['activeusers']"> <td class="alt1"><div class="smallfont">$activeusers</div></td> </if> <if condition="$show['moderators']"> <td class="alt1"><div class="smallfont">$moderatorslist </div></td> </if> </tr> </table> </form> <!-- End Active Users in this Forum (and sub-forums) and Moderators --> <if condition="$show['popups']"> <br /> <!-- popup menu contents --> <!-- forum tools menu --> <div class="vbmenu_popup" id="forumtools_menu" style="display:none"> <form action="moderator.php" method="post" name="forumadminform"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td></tr> <if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></td></tr></if> <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td></tr> <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></td></tr> <if condition="$show['adminoptions']"> <tr> <td class="thead">$vbphrase[admin_tools]<a name="goto_forumadmin"></a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <div><label for="fa_mpo"><input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />$vbphrase[view_posts_queue]</label></div> <div><label for="fa_mat"><input type="radio" name="do" id="fa_mat" value="modattach" />$vbphrase[view_attachment_queue]< |
#73
|
|||
|
|||
Where can i get the RSS image?
|
#74
|
|||
|
|||
Here's the ones I use:
|
#75
|
|||
|
|||
How do I download that attachment?
Quote:
|
#76
|
|||
|
|||
Right click - Save Image As (on the image you want to download)
|
#77
|
||||
|
||||
possible install
|
#78
|
||||
|
||||
I dont have a forumdisplay_start plugin?
|
#79
|
||||
|
||||
I have a question, is there a way to only allow RSS thread exporting to certain usergroups? I rather not allow everyone to a forum RSS feed kinda thing. (Dont want external sites to use it for leeching or so, unless you all wouldnt think I have anything to worry on)
|
#80
|
||||
|
||||
Quote:
|
#81
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|