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)

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


All times are GMT. The time now is 02:19 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.01532 seconds
  • Memory Usage 1,777KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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