vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Show RSS Feed Icon in each forum (https://vborg.vbsupport.ru/showthread.php?t=104978)

Wayne Luke 01-09-2006 10:00 PM

Show RSS Feed Icon in each forum
 
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:

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


Next we will be editing the forumdisplay template itself.

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>

And replace with:
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>

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 01-10-2006 05:28 PM

Hi

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

Bashy

pspcrazy 01-10-2006 06:10 PM

*bows down to mighty hacker. I HAVE BEEN WAITING FOR THIS! WOOOT!

SHANE-D-PAIN 01-10-2006 06:11 PM

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" border="0" /></a></td>
    </if>
    </tr>
</table>

No Border around image now.

egyptsons 01-10-2006 06:35 PM

nice hack I'll try it :)

sensimilla 01-10-2006 08:09 PM

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 01-10-2006 08:12 PM

great idea Wayne :) i like it

Wayne Luke 01-10-2006 08:30 PM

Quote:

Originally Posted by sensimilla
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.

HTML Code:

<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 01-11-2006 08:26 AM

What is the feed supposed to look like..?

Iam missing some information in it: http://www.pagodentreff.de/diskussio...ss2&forumids=4

croportal 01-11-2006 09:55 AM

this is not working for ME

croportal 01-11-2006 10:42 AM

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 01-11-2006 10:44 AM

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 01-11-2006 11:24 AM

Nice and neat - thanks.

Wayne Luke 01-11-2006 01:50 PM

Quote:

Originally Posted by croportal
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

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

croportal 01-11-2006 01:52 PM

yes i have

Wayne Luke 01-11-2006 01:54 PM

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 01-11-2006 01:57 PM

no i dont have, just you rss feed

PHP 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>
<!-- 
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="$limitlower2="$limitupper3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
    <if 
condition="$show['activeusers']">
    <
td class="thead">$totalonline (<phrase 1="$numberregistered2="$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=$forumidrel="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=$forumidrel="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 01-11-2006 01:58 PM

Quote:

Originally Posted by Wayne Luke
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 01-11-2006 01:58 PM

Wayne,

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

sensimilla 01-12-2006 11:10 AM

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 01-12-2006 01:29 PM

Quote:

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 01-12-2006 01:43 PM

Quote:

Originally Posted by croportal
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 01-12-2006 01:45 PM

Quote:

Originally Posted by KW802
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 01-12-2006 01:46 PM

Quote:

Originally Posted by michaelbenson
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 01-14-2006 07:22 AM

I dont have a plugin called "forumdisplay_start" either.

?????

Darat 01-14-2006 11:16 AM

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

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


Active: Yes

And then click on save.

shiva 01-14-2006 08:06 PM

Thanks. Must have missed that in the instructions.

synwave 01-15-2006 09:45 AM

Works nicely - Thanks everyone!

Marv 01-17-2006 12:45 PM

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

<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)
PHP Code:

<!-- 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 01-21-2006 06:26 PM

Nice addition, Wayne.... I especially like the "Wayne Licence" comment :D

Zia 01-25-2006 06:06 AM

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....s2&forumids=11

The result comes with a error result url bellow

http://feedvalidator.org/check.cgi?u...orumids%3D11++

Quote:

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

Quote:

Your URL: http://www.golpo.net/forum/external....s2&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%3...6forumids%3D11

Quote:

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
https://vborg.vbsupport.ru/showthrea...ight=forum+rss


How could we solve this problem??

Thankx

Wayne Luke 01-25-2006 03:22 PM

Quote:

Originally Posted by Marv
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 01-25-2006 03:23 PM

Quote:

Originally Posted by Zia
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 01-26-2006 01:04 AM

Thankx Wayne Luke ......

We will submit that....as a bug

BaconDelight 01-26-2006 06:10 PM

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 01-27-2006 01:04 AM

Rated 5 and Installed..Very Handy Mod

Zia 01-27-2006 04:11 AM

Hello
BaconDelight & dbase

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

BaconDelight 01-27-2006 04:26 PM

Quote:

Originally Posted by Zia
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 01-27-2006 05:00 PM

/me installs

Zia 01-30-2006 03:55 PM

Quote:

Originally Posted by BaconDelight
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


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02152 seconds
  • Memory Usage 2,339KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete