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
  #22  
Old 04-21-2006, 01:58 AM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silly rabbit
See explaination from hosting company: Implementation of PHPsuexec.
Based on the writeup the hosting company provides it seems like it should work fine.

Quote:
When you say 'outside the web root' do you mean anywhere except alongside 'public_html'??
Yes, it should just not be in a folder that users can get to via the web. Although with the way the host has things set up now that's not as important.

If you aren't getting any errors generated and the file cache is being populated then it *should* be working ok. The one possibility is that the way it's currently coded if the remote site is slow to respond then the the script will be slow to fill in the data. This gets magnified as it does 3 retries when fetching things. You might try reducing the retry count from 3 to 1 to see if that helps. You can tell if this is the problem by just waiting to see if the page eventually loads.
Reply With Quote
  #23  
Old 04-23-2006, 09:48 AM
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Location: Atlanta/NYC
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
Based on the writeup the hosting company provides it seems like it should work fine.
tg, once again great hack, thank you! I suspect my server is one of the last to be 'converted' and on '777' working fine. When it 'crashes' that will be my signal to drop to '755' hehe! Left cache 'alongside' web root (which is not public accessible) and will play with the 'retries'. Selecting different xml feeds does seem to make a difference on performance so I suspect your excellent coding is not to blame at all . . . .

I see where my running tally of all past and present xml feeds in the cache dir are stored as '644' which, with the exception of 'user' write(no execute), is strictly read only . . . .

Now on to modifying 'postbit'!!! Will attempt to add 'reply' links into the xml title bar which will quickly point, take reader directly to the appropriate 'comment' forum . . .

Thanks For Sharing Great Hack & reply, I think a really short 'support thread' is testament to a hack that works correct the first time and I will watch for your future / past 'inventions'!! Rss stands for 'really stupid simple'??? (hehe)

Rabbit

p.s. Everybody knows about iespell?? Little abc/check box upper right in VB editor??? Love it! Works just fine!!
Reply With Quote
  #24  
Old 07-23-2006, 01:24 AM
rollo tamasi rollo tamasi is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire
how do we limit the descriptions to say 100 characters and then add (...)?
^ just wondering if the above is possible?

great mod, i was about to install feed2js with magpie and add a table below the what's going on section but i don't have to now

Thanks
Reply With Quote
  #25  
Old 07-23-2006, 07:07 AM
Foxsake Foxsake is offline
 
Join Date: Apr 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed this and created a directory outside public_hmtl
changed its permissions to 777
however each time i provide a url link it just gives this


Fatal error: file_put_contents cannot write in file. in /includes/init.php(292) : eval()'d code on line 91

can someone advise on what im doing wrong?

Thanks in advance for any help
Reply With Quote
  #26  
Old 09-13-2006, 06:00 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work in 3.6?
Reply With Quote
  #27  
Old 10-12-2006, 01:46 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone get this to work in 3.6?
Reply With Quote
  #28  
Old 10-18-2006, 10:29 PM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this working in 3.6.2

This is a great hack but is a bit limiting.

I would like to limit title's to xx characters and be able to define how many feeds it lists per feed url I add.
Reply With Quote
  #29  
Old 10-18-2006, 11:32 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BamaStangGuy
I have this working in 3.6.2

This is a great hack but is a bit limiting.

I would like to limit title's to xx characters and be able to define how many feeds it lists per feed url I add.
Limiting the Title Length is easy and exactly why the Data modification code box exists. Just add the code needed to trim the titles however you would like them. As a very brief example to trim it to 10 chars...

Code:
$rss_item['TITLE'] = substr($rss_item['TITLE'], 0, 10);
Limiting the number of items on a per feed basis would require a small code change but if you know php it wouldn't be too hard to pull off.
Reply With Quote
  #30  
Old 10-22-2006, 05:15 AM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for that.

Is there any reason that sometimes the RSS feed will not load? It seems for me that every few refreshes the rss feed does not show up.

Maybe you can reproduce it on one of my sites: Mustang Forums

If it shows up close the browser and open it again. If you do it a couple of times you should catch it where it won't load.
Reply With Quote
  #31  
Old 10-26-2006, 08:43 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All of a sudden I'm getting these errors

Code:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.sciam.com/xml/sciam.xml) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.sciam.com/xml/sciam.xml) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.sciam.com/xml/sciam.xml) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.sciam.com/xml/sciam.xml) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.nasa.gov/rss/breaking_news.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.nasa.gov/rss/breaking_news.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.nasa.gov/rss/breaking_news.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.nasa.gov/rss/breaking_news.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.physicsforums.com/blog/wp-rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.physicsforums.com/blog/wp-rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.physicsforums.com/blog/wp-rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.physicsforums.com/blog/wp-rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.jwz.org/cheesegrater/RSS/apod.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.jwz.org/cheesegrater/RSS/apod.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.jwz.org/cheesegrater/RSS/apod.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://www.jwz.org/cheesegrater/RSS/apod.rss) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://physicspost.com/rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://physicspost.com/rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://physicspost.com/rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/init.php(292) : eval()'d code on line 218

Warning: file_get_contents(http://physicspost.com/rss.php) [function.file-get-contents]: failed to open stream: Connection refused in /includes/init.php(292) : eval()'d code on line 218
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:04 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.05226 seconds
  • Memory Usage 2,343KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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