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)

Rik Brown 08-27-2006 11:49 PM

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 09-15-2006 04:01 PM

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 09-17-2006 02:17 AM

Quote:

Originally Posted by hnjco
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 09-22-2006 08:33 PM

Quote:

Originally Posted by Spikeman
Did you reapply the hack again after you upgraded? Only a thought :)

yes i did but still not working:hurt:

hnjco 09-28-2006 01:51 AM

any way for working on 3.6.1?

EvilHawk 09-28-2006 12:25 PM

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

hnjco 10-04-2006 02:06 PM

Quote:

Originally Posted by EvilHawk
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 10-05-2006 03:40 PM

Quote:

Originally Posted by hnjco
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:
HTML Code:

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

    <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 10-06-2006 09:47 PM

Quote:

Originally Posted by EvilHawk
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
Quote:

<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 10-08-2006 06:19 AM

Quote:

Originally Posted by hnjco
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 10-20-2006 02:28 PM

Quote:

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 10-21-2006 02:40 PM

Quote:

Originally Posted by perfphysio
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 10-21-2006 06:37 PM

ok I am using 3.6.2 and I think the layout is a bit different. e.g. the code shown below is now this on my forum:

Quote:

<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 10-21-2006 11:56 PM

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

I just installed this mod and i found an error on my site that i didn't know existed......I am not seeing any error's on my website, but when i use this mod, and open up the .xml, i see this error:
Quote:

<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 10-30-2006 06:44 AM

Quote:

Originally Posted by hotwheels
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 :

PHP Code:

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

replace it with:

PHP Code:

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


hnjco 11-01-2006 03:38 PM

Quote:

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

Thanks i'm lucky now and it worked.

hotwheels 11-09-2006 12:48 AM

No dice evilhawk, although i think that is the file that is causing the error.......

I am running phpportals instead of vbadvanced.......I tried the suggested changes, but it only brought me error's......thanks for the quick reply and the help.....

I still get the
Quote:

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

<td><img class="inlineimg" src="http://insanemustangs.com/forums//forums/images/attach/jpg.gif"

hotwheels 11-11-2006 03:16 PM

bump

EvilHawk 11-12-2006 09:02 AM

I can't see this error at your forums rss feed code ...
Anyway vB 3.6.3 solves this problem .

bada_bing 11-15-2006 04:03 AM

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 11-15-2006 05:07 PM

Same, bada.

coffee 11-22-2006 02:04 AM

It's still working perfectly on 3.6.4 :)

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

bada_bing 11-26-2006 03:25 AM

Quote:

Originally Posted by bada_bing (Post 1117679)
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 01-23-2007 07:40 PM

Thank you:)

yj_enquirer 01-24-2007 05:51 AM

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 01-26-2007 04:25 PM

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 03-09-2007 03:54 AM

Quote:

Originally Posted by Wayne Luke (Post 1167851)
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 03-09-2007 02:02 PM

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 03-25-2007 05:47 AM

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 05-02-2007 04:46 AM

How to integrate this in the forumhome in order to have the RSS icon inserted at the right of each category ?

maxicep 05-09-2007 08:59 AM

How can add rss icon to each Category on forumhome and Forumdisplay ?
pls help

Fingertips 07-26-2007 10:28 PM

Will this work in 3.6.7

BigJimTheLug 07-28-2007 09:42 PM

*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 07-29-2007 01:49 AM

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 07-29-2007 03:11 AM

Quote:

Originally Posted by Fingertips (Post 1304319)
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 07-30-2007 12:33 AM

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

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
tks in advance
beduino

Fingertips 07-30-2007 12:51 AM

Thank you works great!!

beduino 07-30-2007 01:00 AM

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

Originally Posted by beduino (Post 1304979)
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 09-07-2007 09:12 PM

Installed and 5 stared, picking it up downtown!!!!

Thanks
Best Regards


All times are GMT. The time now is 01:37 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.01497 seconds
  • Memory Usage 1,851KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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