Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
RSS Feeds on Forumhome and Other vb Pages Details »»
RSS Feeds on Forumhome and Other vb Pages
Version: 1.00 RC2, by tgmorris tgmorris is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 01-13-2006 Last Update: 01-15-2006 Installs: 30
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

This product adds support for displaying RSS feeds on 1 or more vb pages.

The product will create 5 plugins and a new section, RSS Feed Processing, under vBulletin Options. Also added will be 2 new templates appropriately grouped under 'RSS Feed Templates'.

Configuration

Change the settings in 'vBulletin Options -> RSS Feed Processing' to suit your particular needs.

One thing that proves difficult for some users is creating the 'cache' directory. This directory needs to be CHMOD 777 and it should reside outside the web root. All of the RSS feeds will be cached in that location so depending on how the product is configured (i.e. allowing users to define their own feeds) the size of the directory could grow signficantly.

An advanced feature that is only available for non-user specified feeds is the ability to include code to filter and/or modify the feed content. If the feeds are being provided for your users this can prove to be a very powerful tool.

Placing the content on pages

As supplied the RSS Feed content will be displayed below the "What's Going On" block. This may be changed by modifying the 'RSS Feed - Content Generation' plugin in different ways.
  1. Find where you want the output in the FORUMHOME template and change the search sttring accordingly.
  2. Delete all the search-related text and manually edit the template(s) where you want the content to appear.
In either a) or b) above you may also change the hook location for the 'RSS Feed - Content Generation' plugin so it runs where it's needed. If the content is desired on multiple vb pages then the plugin could be moved to init_startup so long as the template edit logic is removed.

The RSS feed content is placed in the $feedcontent array with an entry for each feed. To manually place the feeds in templates refer to the entries for 3 feeds as $feedcontent[0], $feedcontent[1] and $feedcontent[2]. If the content for a given feed cannot be decoded then that array entry will be empty.

Revisions

1.00 RC2 16-Jan-2006
Added support to allow the displayed feeds to collapse when not a user-specified feed.
  • Modified the rss_feed_rss template
  • Updated the RSS Feed - Function plugin


If you find this product useful donations via PayPal may be made via the Sponsors Page.

Do not reproduce or publish elsewhere without my written permission.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-06-2007, 06:04 AM
dinodonk dinodonk is offline
 
Join Date: Aug 2005
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 07-06-2007, 09:51 AM
dinodonk dinodonk is offline
 
Join Date: Aug 2005
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #34  
Old 07-06-2007, 02:32 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dinodonk View Post
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.
Reply With Quote
  #35  
Old 01-13-2008, 07:07 PM
dreamygirl dreamygirl is offline
 
Join Date: Jan 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Figured it out.
Reply With Quote
  #36  
Old 02-21-2008, 06:05 PM
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Location: Atlanta/NYC
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Viks View Post
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
Reply With Quote
  #37  
Old 08-18-2010, 01:13 AM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i upgraded to php 5.2.14 and now some feeds don't display. any ideas?
Reply With Quote
  #38  
Old 07-22-2013, 11:45 AM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04252 seconds
  • Memory Usage 2,293KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete