vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   RSS Feeds on Forumhome and Other vb Pages (https://vborg.vbsupport.ru/showthread.php?t=105328)

dinodonk 07-06-2007 06:04 AM

how to remove category?
I got this feed :
<comments>http://www.mydomain.com/comments</comments>
<category domain="http://www.mydomain.com/cat1">cat1</category>
<category domain="http://www.mydomain.com/cat2">cat2</category>
<pubDate>Fri, 06 Jul 2007 01:21:08 -0500</pubDate>
<dc:creator>author</dc:creator>

thanks

dinodonk 07-06-2007 09:51 AM

is there any performance issue with this mods? i get high load upto 3 usually only 1

is it using cache mechanism when processing the feed?

tgmorris 07-06-2007 02:32 PM

Quote:

Originally Posted by dinodonk (Post 1284236)
is there any performance issue with this mods? i get high load upto 3 usually only 1

is it using cache mechanism when processing the feed?

Yes, it does create a cache file for each feed used. How long the cache is used depends on the settings for the feed (via the TTL record) as well as the configuration if there's no TTL record.

As to you other question can you please explain a bit more as to what you want to do> If you simply don't want the item category to show then the category may be deleted by using the Data Modification section.

dreamygirl 01-13-2008 07:07 PM

Figured it out.

silly rabbit 02-21-2008 06:05 PM

Quote:

Originally Posted by Viks (Post 875228)
IF I would like to display the RSS feed in some other location on my forums . . . Vik

Update! Not really . . . finally got around to switching the feed off of the FORUMHOME page and it was easier than you think. The only changes made were in a very short section of the XML php itself and it now displays in my "SubForum" #1 which is a "category" comprised of other subforums (with no thread views being listed) . . .

I am running 3.6.2.

PHP Code:

<plugin active="1">
    <
title>RSS Feed Content Generation</title>
    <
hookname>forumdisplay_complete</hookname
// changed from forumhome_complete**
    
<phpcode><![CDATA[rss_feed_processing(RSS_FEED_FIELDRSS_FEED_USAGE);
if (
$forumid == 1
{
// conditional added (display one subcategory only) **
$search_text '<!-- / forum rules & forum jump -->'
// new searched text located bottom of FORUMDISPLAY template **
$insert_text '';
for(
$insertc 0$insertc count($feedcontent);)
{
    
$insert_text .= '$feedcontent['.$insertc++.']<br />';
}
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace ($search_text,$search_text.$insert_text,$vbulletin->templatecache['FORUMDISPLAY']);]]>

// end "if" condition (make whatever you want!) -  both refs above were FORUMHOME **
</phpcode

The hook, search and displaying works and behaves as originally coded, make sure you check "overwrite" when reinstalling and that is it!

Thx Again. Rabbit

dethfire 08-18-2010 01:13 AM

i upgraded to php 5.2.14 and now some feeds don't display. any ideas?

valdet 07-22-2013 11:45 AM

Hi,
I know it's an old thread but hopefully someone can help.

I added $feedcontent[0] inside a custom template (usc_sidecolumn_right from this hack Ultimate Side Column by Peterska) but the feeds do not show up.

I made the proper replacements in the plugin search string but no such luck so far.

For testing purposes, I added the same text in forumhome and the rss feeds showed up correctly.

Is there something that needs to be done in order for $feedcontent[0] to display in other templates other than main ones.

I am on vB 3.8.7

Thanks,


All times are GMT. The time now is 01:51 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.01133 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (2)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
  • (7)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