Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
vBulletin rss2html integration
SEOvB's Avatar
SEOvB
Join Date: May 2007
Posts: 2,451

 

Indianapolis
Show Printable Version Email this Page Subscription
SEOvB SEOvB is offline 08-20-2008, 10:00 PM

vBulletin RSS2HTML Integration
Provided By: SEO Tips

This tutorial will tell you how to display any RSS feed on your forum home page. Ex: I've used my wordpress blog RSS feed, taken the 5 latest posts, the first 150 characters of the post, and used this method, to display them on my forumhome.

This is simple, easy, and only takes a few minutes outside if you want to customize the table it displays in. There maybe other ways of doing this, maybe even easier ways, but I couldn't find any good ones.

To get started, download and extract the free rss2html files and unzip them in a folder of your choice on your computer.

http://www.feedforall.com/download/rss2html.zip

Next connect to your FTP program, upload the rss2html.php, sample-template.html and the FeedForAll_XMLParser.inc.php files into your forum root. (same location as forumdisplay.php)

Go to this URL: http://YOURDOMAIN.COM/FORUM/rss2html.php?buildURL
(ex:http://www.seotips4.com/forum/rss2html.php?buildURL)

Enter the location of the feed you want to display.
(ex: http://seotips4.com/feed)

Enter the location of the template you want to use (if you left the name sample-template.html you'd enter http://YOURDOMAIN.COM/FORUM/sample-template.html)

Enter the number of news items you want to display, and either check or do not check the "future items" box. (thats pretty self explanatory)

Wait for it to do its magical calculations to be performed and it will spit back at you a ton of useless information, with one good line of code you need.

You'll want to find and locate the code under the heading TEST LINK it will look something similar to: Copy this you'll need it in about 5 seconds.

Code:
http://www.seotips4.com/forum/rss2html.php?XMLFILE=http://seotips4.com/feed&TEMPLATE=http://seotips4.com/forum/sample-template.html&MAXITEMS=5
Next you'll want to create a plugin at the appriopate location, either global_start (to be able to display the code anywhere, or forumhome_start for just forumhome). I've used the forumhome_start hook location.
(vBulletin AdminCP -> Plugins and Products -> Add New Plugin)
I left my execution order at 5 for those who will eventually ask.

Next for the plugin code enter:
Code:
$rss2html = implode('', file('THAT FANCY LINK CODE FROM ABOVE'));
Ex:
Code:
$rss2html = implode('', file('http://seotips4.com/forum/rss2html.php?XMLFILE=http://seotips4.com/feed&TEMPLATE=http://seotips4.com/forum/sample-template.html&MAXITEMS=5'));
Finally, open your forumhome template (or any template you set it up for) and place where you want your block to appear.

Code:
$rss2html

Attached is my sample-template.html file
Working Demo: SEO Tips | Search Engine Optimization Tips
Attached Files
File Type: zip sample-template.zip (540 Bytes, 11 views)
Reply With Quote
Reply

Thread Tools

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 12:52 AM.


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.09234 seconds
  • Memory Usage 2,210KB
  • Queries Executed 17 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete