PDA

View Full Version : Show RSS Feed Icon in each forum


Wayne Luke
10 Jan 2006, 18:38
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.


if ($vbulletin->options['externalrss'])
{
$show['rss'] = true;
}

Next we will be editing the forumdisplay template itself.

Find:

<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>

And replace with:

<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>


Finally the third step is to upload the attached image to represent your feed. If your site isn't set up to allow IE to view transparent backgrounds in PNG images, you will probably want to convert the image to a GIF format matted to your background.

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.

bashy
10 Jan 2006, 19:28
Hi

1st post :) now theres a 1st ;)
Thanks for this...great little hack :)

Bashy

pspcrazy
10 Jan 2006, 20:10
*bows down to mighty hacker. I HAVE BEEN WAITING FOR THIS! WOOOT!

SHANE-D-PAIN
10 Jan 2006, 20:11
<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" border="0" /></a></td>
</if>
</tr>
</table>


No Border around image now.

egyptsons
10 Jan 2006, 20:35
nice hack I'll try it :)

sensimilla
10 Jan 2006, 22:09
Hehe thanks Wayne :)
I did requested this addon at vbulletin.com in August
http://www.vbulletin.com/forum/showthread.php?t=151743 :)
any chance the button is located on the left as in the image i've attached there ?

tIA

Dan
10 Jan 2006, 22:12
great idea Wayne :) i like it

Wayne Luke
10 Jan 2006, 22:30
Hehe thanks Wayne :)
I did requested this addon at vbulletin.com in August
http://www.vbulletin.com/forum/showthread.php?t=151743 :)
any chance the button is located on the left as in the image i've attached there ?

tIA
It would take moving the HTML code to another section. Would have to look into it but there is no reason why you can't move the button whereever you want it.

Below is the actual code that displays the button and creates the link.


<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>

MrNase
11 Jan 2006, 10:26
What is the feed supposed to look like..?

Iam missing some information in it: http://www.pagodentreff.de/diskussionsforum/external.php?type=rss2&forumids=4

croportal
11 Jan 2006, 11:55
this is not working for ME

croportal
11 Jan 2006, 12:42
i am using 3.5.0 version, i have uploaded png icon, i have change the template and add the plugin, and activate the plugin


can u look
my forum www.croportal.net/forum

croportal
11 Jan 2006, 12:44
and in the page source i see only this

<link rel="alternate" type="application/rss+xml" title="Croportal forum RSS Feed" href="external.php?type=RSS" />

Darat
11 Jan 2006, 13:24
Nice and neat - thanks.

Wayne Luke
11 Jan 2006, 15:50
i am using 3.5.0 version, i have uploaded png icon, i have change the template and add the plugin, and activate the plugin


can u look
my forum www.croportal.net/forum (http://www.croportal.net/forum)

DO you have RSS Feeds turned on under vBulletin Options -> External Data Provider?

croportal
11 Jan 2006, 15:52
yes i have

Wayne Luke
11 Jan 2006, 15:54
Post your forumdisplay template so I can look at it and verify that the plugin is installed under "forumdisplay_start". Do you have any other plugins installed under "forumdisplay_start"?

croportal
11 Jan 2006, 15:57
no i dont have, just you rss feed

$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>
<!-- TCattitude's improved thread preview -->
<div id="tcthreadpreview" style="visibility:hidden;position:absolute;z-index:1000;top:-100"></div>
<!-- / TCattitude's improved thread preview -->
$header
$navbar

<if condition="$show['forumslist']">
<!-- sub-forum list -->
<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="RSS Ikona" title="Pretplatite se na Croportal Forum RSS"></a></td>
</if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</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>
<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&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->
<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>

<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">&nbsp;</td>
<else />
<td class="thead">&nbsp;</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">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;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&amp;order=desc&amp;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&amp;order=desc&amp;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&amp;order=desc&amp;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"> <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>

<!-- 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&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav OR $show['inlinemod']">
<td class="smallfont" align="$stylevar[right]">$pagenav
<if condition="$show['inlinemod']">
<br /><em>$vbphrase[moderation]</em>
<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]" />
<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" width="auto">
<tr>
<td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
<td class="smallfont"><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 class="smallfont"><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 class="smallfont"><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&nbsp;</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&amp;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&amp;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&amp;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]</label></div>
<div><label for="fa_mov"><input type="radio" name="do" id="fa_mov" value="move" />$vbphrase[massmove_threads]</label></div>
<div><label for="fa_prn"><input type="radio" name="do" id="fa_prn" value="prune" />$vbphrase[massprune_threads]</label></div>
<if condition="$show['addmoderator']">
<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
</if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / forum tools menu -->

<!-- inline mod menu -->
<if condition="$show['inlinemod']">
<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
$threadadmin_imod_menu_thread
</div>
</if>
<!-- / inline mod menu -->

<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr valign="top">
<!-- forum tools -->
<td class="alt1">
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></div>
<if condition="$show['member']"><div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" /> <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></div></if>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></div>
</div>
</td>
<!-- / forum tools -->

<!-- search this forum -->
<td class="alt1">
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="do" value="quicksearch" />
<input type="hidden" name="forumchoice[]" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<strong>$vbphrase[search_this_forum]</strong> :<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
</div>
</form>
</td>
<!-- / search this forum -->
</tr>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>

<if condition="$show['ajax_js']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js"></script>
<script type="text/javascript">
<!--
vB_AJAX_Threadlist_Init('threadslist');
//-->
</script>
</if>

<!-- ############## END THREADS LIST ############## -->
</if>

<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice[]" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / forum search menu -->
</if>

<!-- icon key -->
<if condition="$show['threadslist']">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[no_new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
<td class="smallfont">$vbphrase[thread_is_closed]</td>
<if condition="$show['dotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
</table>
<else />
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
</tr>
</table>
</if>
<!-- / icon key -->

<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td width="100%">
<div class="smallfont">&nbsp;</div>
<if condition="$show['threadslist']">$forumrules</if>
</td>
<td>
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong> :</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->

$footer
</body>
</html>

michaelbenson
11 Jan 2006, 15:58
Post your forumdisplay template so I can look at it and verify that the plugin is installed under "forumdisplay_start". Do you have any other plugins installed under "forumdisplay_start"?
I personally just removed the conditional IF statement and bypassed the plugin, it didnt really seem neccessary to check whether or not RSS syndication was enabled since i had already done within the vBulletin Options area.

KW802
11 Jan 2006, 15:58
Wayne,

Would the condition "<if condition="$vboptions['externalrss']">{code}</if>" work instead of using the plugin?

sensimilla
12 Jan 2006, 13:10
For some reason it just open the RSS page and dont add it to my channels.. ?
How to add RSS feed to live channels ?
Any ideas ?

synwave
12 Jan 2006, 15:29
Go to your plugin manager and add the following code to the "forumdisplay_start" plugin

I dont have a plugin called "forumdisplay_start".

Wayne Luke
12 Jan 2006, 15:43
no i dont have, just you rss feed


Hmm.. The template looks right. You have plugins enabled in the options?

I would have to look at your AdminCP to get it working at this point though.

Wayne Luke
12 Jan 2006, 15:45
Wayne,

Would the condition "<if condition="$vboptions['externalrss']">{code}</if>" work instead of using the plugin?

I believe it would. I wanted variable consistency though. Makes it easier if my wife has to change something in the templates. She knows a little about HTML but nothing about PHP.

Wayne Luke
12 Jan 2006, 15:46
I personally just removed the conditional IF statement and bypassed the plugin, it didnt really seem neccessary to check whether or not RSS syndication was enabled since i had already done within the vBulletin Options area.

The conditional is there so if you have to turn off the feeds for some reason, the icon and link disappears as well

shiva
14 Jan 2006, 09:22
I dont have a plugin called "forumdisplay_start" either.

?????

Darat
14 Jan 2006, 13:16
You need to create a plugin called "forumdisplay_start", this is what I created and it seems to work:

Admincp>Plugin system> Add New Plugin

Product: vBulletin
Hook location: forumdisplay_start
Title: "Check for RSS on/off for RSS feed icon on each forum"
Plugin Php Code:

if ($vbulletin->options['externalrss'])
{
$show['rss'] = true;
}

Active: Yes

And then click on save.

shiva
14 Jan 2006, 22:06
Thanks. Must have missed that in the instructions.

synwave
15 Jan 2006, 11:45
Works nicely - Thanks everyone!

Marv
17 Jan 2006, 14:45
Wayne,

I´ve tried to put this in the forums tools menu but for some reason it creates only the basic information of my forums - but no threadinfo´s.
<rss version="2.0">
- <channel>
<title>MySiteTitle - MyForumsTitle</title>
<link>http://www.mysite.com/forums</link>
- <description>MySiteDescription !</description>
<language>en</language>
<pubDate>Tue, 17 Jan 2006 14:47:11 GMT</pubDate>
<generator>vBulletin</generator>
<ttl>60</ttl>
</channel>
</rss>

I´m using this in the forums menu (extended to rss 0,91, 2.0 and rdf-feeds)
<!-- 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&amp;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&amp;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&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td></tr>
<if condition="$show['rss']">
<tr><td class="vbmenu_option"><a href="external.php?type=rss2&forumids=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum_rss]</a>
<a href="external.php?type=rss&forumids=$foruminfo[forumid]" rel="follow" target="_blank"><img class="inlineimg" img border="0" src="stylevar[imgdir_misc]/rss.png" lowsrc="RSS Feed 0.91" alt="RSS Feed 0.91"></a>
<a href="external.php?type=rss2&forumids=$foruminfo[forumid]" rel="follow" target="_blank"><img class="inlineimg" img border="0" src="stylevar[imgdir_misc]/rss.gif" lowsrc="RSS Feed 2.0" alt="RSS Feed 2.0"></a>
<a href="external.php?type=rdf&forumids=$foruminfo[forumid]" rel="follow" target="_blank"><img class="inlineimg" img border="0" src="stylevar[imgdir_misc]/rdf.gif" lowsrc="RDF Feed" alt="RDF Feed"></a>
</td></tr>
</if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></td></tr>

Do I have to place the initial plugin elsewhere as in forumsdisplay_start if I´ld like to place this in the forum menu?

Any idea ?

Azhrialilu
21 Jan 2006, 20:26
Nice addition, Wayne.... I especially like the "Wayne Licence" comment :D

Zia
25 Jan 2006, 08:06
Hello wane..
we got it installed..and after install it we tried it to validate it..

http://validator.czweb.org/rss-feed.php

We tried to use the url bellow for validate
http://www.golpo.net/forum/external.php?type=rss2&forumids=11

The result comes with a error result url bellow

http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.golpo.net%2Fforum%2Fexternal.php%3Ftype%3Drss2%26 forumids%3D11++

Sorry
This feed does not validate.
line 19, column 42: pubDate must be an RFC-822 date-time (15 occurrences) [help]
<pubDate>Sun, 22 Jan 2006 13:28:58-08:00</pubDate>


XMl Validator seemed to be okay

Your URL: http://www.golpo.net/forum/external.php?type=rss2&forumids=11
Congratulations the XML is well formed!
This XML syntax checker is built with the XML::Parser module and Perl


RSS Validator
the same url we tested
Result comes with error:url bellow

http://rss.scripting.com/?url=http%3A%2F%2Fwww.golpo.net%2Fforum%2Fexternal.php%3Ftype%3Drss2%26forumids% 3D11

There were 1 errors, the RSS feed does not validate.
1. pubDate must be an RFC-822 date 19 42
The call to the validator took 1.016 seconds.


We are also using.. cinvin fps external.php
http://www.vbulletin.org/forum/showthread.php?t=105008&highlight=forum+rss


How could we solve this problem??

Thankx

Wayne Luke
25 Jan 2006, 17:22
Do I have to place the initial plugin elsewhere as in forumsdisplay_start if I´ld like to place this in the forum menu?

Any idea ?


Sorry for the delay. I will try to look into this today, however my wife and I are going away on a four day weekend tomorrow so I might not get to it until Monday. Will have to look at it. You could try putting the conditional based on KW802's post above and bypass the plugin.

Wayne Luke
25 Jan 2006, 17:23
Hello wane..
we got it installed..and after install it we tried it to validate it..


Submit it as a bug on the vBulletin.com Bug Tracker. This doesn't really have anything to do with the creation of the feeds, just creates icons to make them available to more users.

Zia
26 Jan 2006, 03:04
Thankx Wayne Luke ......

We will submit that....as a bug

BaconDelight
26 Jan 2006, 20:10
Is there a way to modify the RSS feed so it displays threads in order of most recent new post, rather than most recently created (so that it resembles the results of a "New Posts" search, rather than just being a list of threads sorted by creation date)?

dbase
27 Jan 2006, 03:04
Rated 5 and Installed..Very Handy Mod

Zia
27 Jan 2006, 06:11
Hello
BaconDelight & dbase

Yeap its a too kool addons for vb....u install it...
do u check it using any validator?

BaconDelight
27 Jan 2006, 18:26
Hello
BaconDelight & dbase

Yeap its a too kool addons for vb....u install it...
do u check it using any validator?I've installed your icon hack on a test board, waiting to finish a host tranfer before I go live with it.

My issue is not with the hack, but with vB's RSS generation script.

Let's say I have 5 threads, one of them started 2 days ago, the rest started today. Even if the most recent post on the forum is to teh thread starte 2 days ago, the other 4 threads are what show up first in the RSS feed because it sorts by creation time not time of most recent post. Is there any way to alter this (without adding too many queries)?

Snake
27 Jan 2006, 19:00
/me installs

Zia
30 Jan 2006, 17:55
I've installed your icon hack on a test board, waiting to finish a host tranfer before I go live with it.

My issue is not with the hack, but with vB's RSS generation script.

Let's say I have 5 threads, one of them started 2 days ago, the rest started today. Even if the most recent post on the forum is to teh thread starte 2 days ago, the other 4 threads are what show up first in the RSS feed because it sorts by creation time not time of most recent post. Is there any way to alter this (without adding too many queries)?


a new updated fps_external.php has been relased here.....i am using it...it works...for forum(inside)....

tho i have some other probs..validator cant valid...all the things

Zia
30 Jan 2006, 18:06
I've installed your icon hack on a test board, waiting to finish a host tranfer before I go live with it.

My issue is not with the hack, but with vB's RSS generation script.

Let's say I have 5 threads, one of them started 2 days ago, the rest started today. Even if the most recent post on the forum is to teh thread starte 2 days ago, the other 4 threads are what show up first in the RSS feed because it sorts by creation time not time of most recent post. Is there any way to alter this (without adding too many queries)?


a new updated fps_external.php has been relased here.....i am using it...it works...for forum(inside)....

tho i have some other probs..validator cant valid...all the things

Zia
06 Feb 2006, 17:21
dear wane...
can u modify it that it will send ping using pingomatic.com
so the serch engn will keep informed that rss is updated

Marv
07 Feb 2006, 13:18
Sorry for the delay. I will try to look into this today, however my wife and I are going away on a four day weekend tomorrow so I might not get to it until Monday...

Hi Wayne,

maybe you´d already could effort the time to have a look into my (very personal (http://www.vbulletin.org/forum/showpost.php?p=882009&postcount=32)) problem ;) ?
For some reason I cannot solve this on my own - even if it looks to me like it couldn´t be such a big thing.

I would really appreciate your help.

mdcarlson
08 Feb 2006, 16:58
What is the feed supposed to look like..?

Iam missing some information in it: http://www.pagodentreff.de/diskussionsforum/external.php?type=rss2&forumids=4

Wayne,

I am seeing the same behavior as MrNase. My RSS icons were only showing upon "category" forums. But those forums don't contain any posts which makes for a pretty uninteresting RSS feed.

What do I need to change to get the RSS feed icon to show up on the forums (sub-forums really) and NOT show up on the category forums?

Mark

Bulent Tekcan
13 Feb 2006, 08:52
I have a problem for colored title....I'm already post here http://www.vbulletin.com/forum/showthread.php?t=175044

Any idea for that ?

Thanks

Bulent Tekcan
13 Feb 2006, 09:40
My problem solved...

<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="RSS Feed Icon" border="0" /></a></td>



Removed title="Subscribe to $foruminfo[title]'s RSS Feed" this line.My problem solved.

Zia
13 Feb 2006, 10:47
Hello wane..

its rss..can u modify it to add
xml/my yahoo/my msn button to??

i searched it for that..didnt get

Zia
18 Feb 2006, 10:49
Hello dear wane..

its nice...tryst u can modify it.. the rss buton now showing for each forum top-right side..

can u add few more button..


https://www.vbulletin.org/forum/ (http://imageshack.us)
thhere are few buttons who alloes rss...

in the footer of the page..in every page ..it will be linked with the forums..


Please consider it...thnakx

Wayne Luke
28 Feb 2006, 14:31
Hello dear wane..

its nice...tryst u can modify it.. the rss buton now showing for each forum top-right side..

can u add few more button..


https://www.vbulletin.org/forum/ (http://imageshack.us)
thhere are few buttons who alloes rss...

in the footer of the page..in every page ..it will be linked with the forums..


Please consider it...thnakx

This would be a completely different mod in my opinion. I don't know anything about these feed aggregators but they should provide instructions on their sites that you can follow.

Zia
01 Mar 2006, 04:12
thnx Wane....we got a way to add this....:)

silurius
01 Mar 2006, 21:21
Having probs with this, but looking forward to getting it working!

No icon is showing up as indicated above. Here's what I've done:

1. Installed fps_external.php, renaming original external.php to external.php.old and fps_external.php to external.php.
2. Made change listed in this post
3. Installed Wayne's RSS icon hack
4. Turned off RSS and turned it back on again, in admincp->options

beano33
01 Mar 2006, 22:30
Can something similar could be done to allow rss subscriptions to individual threads?

Ignignokt
02 Mar 2006, 00:18
Thanks!

ffzeus
13 Mar 2006, 02:25
Hi Wayne,

I have installed the code as you have outlined, tried a .png and .gif and get nothing to display anywhere. I have made sure RSS is turned on in the cp, I have cleared my browser cache and reloaded the page, I have gone throught the code by hand in my FORUMDISPLAY template to make sure it matches and still nothing. Any help would be greatly appreciated. Running 3.5.4

Here is the code. I included a line before and the lines immediately following.


<if condition="$show['forumslist']">
<!-- sub-forum list -->
<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" el="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>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

intrigue
17 Mar 2006, 11:20
<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" border="0" /></a></td>
</if>
</tr>
</table>


No Border around image now.

Saw this after i manually edited it to take away the border hehe
Can you update the first post to take away the border
matt

silurius
20 Mar 2006, 06:36
Having probs with this, but looking forward to getting it working!

No icon is showing up as indicated above. Here's what I've done:

1. Installed fps_external.php, renaming original external.php to external.php.old and fps_external.php to external.php.
2. Made change listed in this post
3. Installed Wayne's RSS icon hack
4. Turned off RSS and turned it back on again, in admincp->optionsBeen watching the related threads to the above and still looking forward to fixing this.

I just realized that I can see the RSS feed icon in parent forums for some reason, just not for the child forums. Unfortunately the threads are all in the child forums.

Wayne Luke
24 Mar 2006, 17:55
Does the same thing happen with the default external.php? I see no reason why the other hack would affect this as it is a template edit. If your child forums use a separate style, then you have to apply the changes to that style as well.

silurius
28 Mar 2006, 00:37
Does the same thing happen with the default external.php? I see no reason why the other hack would affect this as it is a template edit. If your child forums use a separate style, then you have to apply the changes to that style as well.Yes, reverting back to the default external.php, I still see the icon in parent forums. My forums all use the default style. Incidentally, setting the parent forum's "Act as Forum" to "yes" will cause the RSS icon to disappear.

snowman872
31 Mar 2006, 11:07
Same probblem as the other guys ... only shows up on the category, but not on the actual forums (with messages). =(

Snake
14 May 2006, 19:08
Will this image works on dark backgrounds?

coffee
21 May 2006, 10:50
Thank you Wayne Luke.

ShackMaster
22 May 2006, 03:51
I'm having this problem in my Sub-forums...

https://www.vbulletin.org/forum/external/2006/05/10.gif

Al-Fateh
26 May 2006, 03:26
Hello dear wane..

its nice...tryst u can modify it.. the rss buton now showing for each forum top-right side..

can u add few more button..


http://img133.imageshack.us/img133/3832/rss9bv.gif (http://imageshack.us)
thhere are few buttons who alloes rss...

in the footer of the page..in every page ..it will be linked with the forums..


Please consider it...thnakx


i would also like to know how to add this

how do i generate feeds for the forums as well...

thanks

epicbear
14 Jun 2006, 14:02
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.

if ($vbulletin->options['externalrss'] and $foruminfo[forumid]!='20' and $foruminfo[forumid]!='33')
{
$show['rss'] = true;
}

Anyone know if I can list multiple forumids in one argument?

$foruminfo[forumid]!='20,33'

didn't work.

almukmin
22 Jun 2006, 02:42
I can't install this.

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/global13/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Anyone kind enough?

Zia
22 Jun 2006, 07:53
i would also like to know how to add this

how do i generate feeds for the forums as well...

thanks

Please see there.......

Add Feed To MyYahoo, Msn, Google & Blogline Button In Every Forum (http://www.vbulletin.org/forum/showthread.php?t=109047&highlight=add)

almukmin
25 Jun 2006, 03:44
I still can't install this, can someone please help?

almukmin
25 Jun 2006, 05:49
It works now, I forgot to enable the external RSS and XML feed in VB Options.

leakmob
28 Jun 2006, 05:04
i can't find the forumdisplay_start in the plugin manager?

SCI
28 Jun 2006, 15:27
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.

Baku
02 Jul 2006, 14:27
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??

$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">&nbsp;</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&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</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">&nbsp;</td>
<else />
<td class="thead">&nbsp;</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">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;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&amp;order=desc&amp;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&amp;order=desc&amp;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&amp;order=desc&amp;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&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</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&nbsp;</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&amp;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&amp;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&amp;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]<

soletrader
31 Jul 2006, 08:30
Where can i get the RSS image?

Cebby
31 Jul 2006, 17:42
Here's the ones I use:

soletrader
31 Jul 2006, 19:08
How do I download that attachment?

Here's the ones I use:

Cebby
31 Jul 2006, 19:24
Right click - Save Image As (on the image you want to download)

bada_bing
15 Aug 2006, 21:43
possible install

bada_bing
17 Aug 2006, 21:24
I dont have a forumdisplay_start plugin?

Mysticales
18 Aug 2006, 06:05
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)

bada_bing
25 Aug 2006, 04:57
I dont have a forumdisplay_start plugin?
Any help here please

gingery
26 Aug 2006, 17:51
Any help here please
You have to create it. See post #26 for the steps.

Rik Brown
28 Aug 2006, 01:49
I thought I'd installed this properly as most of it was just cutting and pasting. However, nothing looks any different in my forums. The external data provider settings show "yes" (enabled).

I'm wondering if its a matter of where the .png file is placed. I noted the following in the template code:

<img class="inlineimg" src="$stylevar[imgdir_misc]/feed_icon.png" .....

Under my root forum directory is /images and about 15 subdirectories. Once is /misc (root/images/misc). I tried placing the .png file there as well as in its parent. Still no changes to the forums.

What is the proper directory for the .png file. Also, is there anything else I might be missing (the instructions were pretty clear).

Thanks. -- Rik

hnjco
15 Sep 2006, 18:01
It was working fine for me on 3.5.5 but now i upgrade to 3.6.1 and not working anymore.. any idea?

Spikeman
17 Sep 2006, 04:17
It was working fine for me on 3.5.5 but now i upgrade to 3.6.1 and not working anymore.. any idea?

Did you reapply the hack again after you upgraded? Only a thought :)

hnjco
22 Sep 2006, 22:33
Did you reapply the hack again after you upgraded? Only a thought :)
yes i did but still not working:hurt:

hnjco
28 Sep 2006, 03:51
any way for working on 3.6.1?

EvilHawk
28 Sep 2006, 14:25
Yes don't install the plugin, use only the template edit and change the if statement to <if condition="$vboptions['externalrss']"> ....

hnjco
04 Oct 2006, 16:06
Yes don't install the plugin, use only the template edit and change the if statement to <if condition="$vboptions['externalrss']"> ....
I did this and now i ahve same problem like other guys on page 3-4.
Only shows up on the category, but not on the actual forums.

EvilHawk
05 Oct 2006, 17:40
I did this and now i ahve same problem like other guys on page 3-4.
Only shows up on the category, but not on the actual forums.

open forumdisplay template

Find:
<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>

add below it :

<if condition="$vboptions['externalrss']">
<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" border="0" /></a></td>
</if>

it works fine for me ...

hnjco
06 Oct 2006, 23:47
open forumdisplay template

it works fine for me ...
Well lucky you if its working for you
atleast not for me

I don't have same cade as you mention to find

Here is what i have
<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>

If i add the one you gave under this one then same problem only shows up on the category, but not on the actual forums.

EvilHawk
08 Oct 2006, 08:19
Well lucky you if its working for you
atleast not for me

I don't have same cade as you mention to find

If i add the one you gave under this one then same problem only shows up on the category, but not on the actual forums.

Well unlucky for you, as you didn't look further down at the tempalte code ...

perfphysio
20 Oct 2006, 16:28
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.I do not see this in my plugin manager (I am using 3.6.2) I see that some of my plugins are using this but I am now unclear about where to find the hook itself and therefore where to place the code. The only reference in my plugins are for products that are using the forumdisplay_start hook but not the actual plugin itself.

Can someone advise as I like this hack idea :)

AMG021
21 Oct 2006, 16:40
I do not see this in my plugin manager (I am using 3.6.2) I see that some of my plugins are using this but I am now unclear about where to find the hook itself and therefore where to place the code. The only reference in my plugins are for products that are using the forumdisplay_start hook but not the actual plugin itself.

Can someone advise as I like this hack idea :)
Dude just go to acp -> add new plugin > find in the hook forumdisplay_start -> tittle RSS -> PLugin active and then do the template

perfphysio
21 Oct 2006, 20:37
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:

<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"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td>
</if>
</tr>
</table>


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.

Dexter_kcd
22 Oct 2006, 01:56
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

hotwheels
29 Oct 2006, 14:07
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: <image>
<url>http://insanemustangs.com/forums//forums/images/misc/rss.jpg</url>
<title>Insane Forums - Insane Introductions</title>
<link>http://insanemustangs.com/forums</link>
</image>........as you can see, forums comes up 2 time's in the image link. How can i fix that? I am not even sure where to begin looking to repair that........

Thanks..........I did ask at vbulletin.com but no answer of any sort.......hotwheels

EvilHawk
30 Oct 2006, 08:44
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: ........as you can see, forums comes up 2 time's in the image link. How can i fix that? I am not even sure where to begin looking to repair that........

Thanks..........I did ask at vbulletin.com but no answer of any sort.......hotwheels

This hack has nothing to do with this problem...

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 :

$rssicon = preg_match('#^http(s)?://#', $stylevar['imgdir_misc']) ? $stylevar['imgdir_misc'] . '/rss.jpg' : $vbulletin->options['bburl'] . "/$stylevar[imgdir_misc]/rss.jpg";


replace it with:

$rssicon = preg_match('#^http(s)?://#', $stylevar['imgdir_misc']) ? . '/rss.jpg' : $vbulletin->options['homeurl'] . "$stylevar[imgdir_misc]/rss.jpg";

hnjco
01 Nov 2006, 17:38
Well unlucky for you, as you didn't look further down at the tempalte code ...
Thanks i'm lucky now and it worked.

hotwheels
09 Nov 2006, 02:48
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 <image>
<url>http://insanemustangs.com/forums//forums/images/misc/rss.jpg</url>
<title>Insane Forums - Insane Introductions</title>
<link>http://insanemustangs.com/forums</link>
</image> error and also found that i am getting it anywhere it tries to attach an image: <td><img class="inlineimg" src="http://insanemustangs.com/forums//forums/images/attach/jpg.gif"

hotwheels
11 Nov 2006, 17:16
bump

EvilHawk
12 Nov 2006, 11:02
I can't see this error at your forums rss feed code ...
Anyway vB 3.6.3 solves this problem .

bada_bing
15 Nov 2006, 06:03
Tried to install this on my vb 3.5.3 site and had no luck. I did exactly what the instructions say and I could not get the rss icon to show up.. Any one help me with this or experiance the same issue and how to fix this.. Really like to install this

voteforbird
15 Nov 2006, 19:07
Same, bada.

coffee
22 Nov 2006, 04:04
It's still working perfectly on 3.6.4 :)

Could you please add this little icon to "Forumhome"?

bada_bing
26 Nov 2006, 05:25
Tried to install this on my vb 3.5.3 site and had no luck. I did exactly what the instructions say and I could not get the rss icon to show up.. Any one help me with this or experiance the same issue and how to fix this.. Really like to install this
Anyone help with this?

arena
23 Jan 2007, 21:40
Thank you:)

yj_enquirer
24 Jan 2007, 07:51
Thanks for this.. its a wunderful hack and I wanted something like this.

Just one question, can this be modified such that only certain forums can have the RSS feed enabled for them..

i.e. there might be certain forums that you don't want the RSS subscription enabled

regards

Wayne Luke
26 Jan 2007, 18:25
What version of vBulletin are you using? With the better auto-discovery built into 3.6.X and auto-discovery support in Internet Explorer, I don't have a need for this anymore. Therefore I haven't incorporated it into newer styles.

cmiller1014
09 Mar 2007, 05:54
What version of vBulletin are you using? With the better auto-discovery built into 3.6.X and auto-discovery support in Internet Explorer, I don't have a need for this anymore. Therefore I haven't incorporated it into newer styles.

Hi Wayne,

Can you elaborate a little more on this? Why wouldn't we want to use this in 3.6? I think the icon would be great but dont know much about rss.

Thanks!

Dexter_kcd
09 Mar 2007, 16:02
I think it is still nice to have in the forum display. Though both IE7 and FF have good auto-discovery for discrete feeds, lots of users still don't know much about RSS, and don't pay attention to the icons in their browser's menu windows. Having an RSS icon on the actual page brings it to their attention more, and with the hover text supplied with this mod it helps explain why the icon is there, and may lead to a user asking about trying RSS when they did not ever do so before.

Take a look at lots of major news websites. When you drill down into their news categories, they still provide an RSS or XML icon somewhere on the page. It helps provide a visual clue to the viewer right on the content of the page, rather then in the browser menu somewhere which many users instinctively tune out.

Dexter...

gekko
25 Mar 2007, 07:47
Installed it. Works great.

For those of you experiencing the problem with the icon not appearing for forums (only categories), you need to insert it twice in the FORUMDISPLAY template. Find the next instance of the code, and insert it again.

Cybershaolin
02 May 2007, 06:46
How to integrate this in the forumhome in order to have the RSS icon inserted at the right of each category ?

maxicep
09 May 2007, 10:59
How can add rss icon to each Category on forumhome and Forumdisplay ?
pls help

Fingertips
27 Jul 2007, 00:28
Will this work in 3.6.7

BigJimTheLug
28 Jul 2007, 23:42
*installed* great!

vb 3.6.8, but I'd prefer to have these display at the forumhome template , too.

Anyways, it's up and running on mine.

Great work!

Fingertips
29 Jul 2007, 03:49
I looked in the plugin manager and I do not see forumsdisplay_start as a plugin. If I click add new plugin i can select it from the dropdown. SO where do I add this code.

if ($vbulletin->options['externalrss'])
{
$show['rss'] = true;
}

I added everything else fine but do not see the rss image. All other settings are correct.

BigJimTheLug
29 Jul 2007, 05:11
I looked in the plugin manager and I do not see forumsdisplay_start as a plugin. If I click add new plugin i can select it from the dropdown. SO where do I add this code.

if ($vbulletin->options['externalrss'])
{
$show['rss'] = true;
}

I added everything else fine but do not see the rss image. All other settings are correct.

Go to add a new plugin

and add it where it says

PHP code.

beduino
30 Jul 2007, 02:33
Well,
I tried hardly - probably i'm making something wrong.
But i can't subscribe in rss readears and [finally] i test in other vbulletin install. and
really don't works
the message was

Warning: Unable to fetch RSS Feed in /includes/class_rss_poster.php on line 222

plugin is active, forumdisplay edited and... nothing. a example of link

http://www.saudebr.net/forums/external.php?type=rss2&forumids=8

tks in advance
beduino

Fingertips
30 Jul 2007, 02:51
Thank you works great!!

beduino
30 Jul 2007, 03:00
Well...
mystery solved :rolleyes:
1. i need open my site ...
2. this only works to public forums [of course...]
maybe my errors can be useful to someone :o

works great now
all the best
beduino
Well,
I tried hardly - probably i'm making something wrong.
But i can't subscribe in rss readears and [finally] i test in other vbulletin install. and
really don't works
the message was
[/b]
plugin is active, forumdisplay edited and... nothing. a example of link

tks in advance
beduino

wickland
07 Sep 2007, 23:12
Installed and 5 stared, picking it up downtown!!!!

Thanks
Best Regards

perfphysio
28 Sep 2007, 16:26
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 :)

rizelim
09 Oct 2007, 22:57
thank you very much..

gezuvor
28 Oct 2007, 19:36
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...

sdp777
22 Nov 2007, 17:16
Installed! Great plugin, thanks Wayne

tms12
07 Dec 2007, 16:17
sorry if its a stupid question. I have added a mod forrss feeds for each of the forum and now the feed isnt working. You can take look at the forum here (http://www.cellphonesmarket.com) .
Any help would be appreciated
thanks

DrussRob
06 Jan 2008, 01:28
Worked like a charm in my 3.7 b3 install ;)
thx!

haaba
31 Jan 2008, 00:59
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

Dexter_kcd
31 Jan 2008, 20:30
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

You just have to change the url of the RSS feed in your RSS feed program to add:

&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:


<link rel=”alternate” type=”application/rss+xml” title=”$vboptions[bbtitle] RSS Feed” href=”external.php?type=RSS2″ />



Change to:


<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:



<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" ]




Change to:



<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;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:



<td class="tcat"><a href="external.php?type=rss2&forumids=$foruminfo[forumid]">



Change to:



<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...

hrk
14 Feb 2008, 16:10
Hi some problem or need help here

over at "forumdisplay_start" plugin. my template shows this

if ($vbulletin->options['gosterx3'])
{
$vbphrase['sticky_thread_prefix'] = '';
}

how do i proceed to add the one for this hack ?

For the second part my original file is diff like this

<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

iogames
18 Apr 2008, 04:06
Can I align this to the right?

tobaro
01 Jul 2008, 08:18
works fine. many thx. :)

Turbe
26 Aug 2008, 21:52
Installed it. Works great.

For those of you experiencing the problem with the icon not appearing for forums (only categories), you need to insert it twice in the FORUMDISPLAY template. Find the next instance of the code, and insert it again.

Thanks, that worked..

I hadn't bothered to even look for a second location... I only use the 2nd location now.

perfphysio
02 Oct 2008, 13:41
HI guys, this RSS feed mod is still working well in 3.7.3 which is great

I have an old question and am wondering if someone has any idea. By default vbulletin uses /forum/external.php to generate the RSS feed for the entire site.

I would like to use this to generate almost all of my sections but not ALL, e..g to leave out a few forum ID's but include the rest in an aggregated feed

Does anyone know how to do this or can anyone suggest another URL where this is discussed. Being able to only search the board for more than 3 characters means searching for RSS isn't of much use

Many thanks in anticipation :)

Dave#
12 Nov 2008, 11:07
In Vb 3.5 - how can I add the alternate rss link into header include only for forums? Is there a conditional to say if is_forum ?

<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" ]