Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
RSS News Feed Hack Details »»
RSS News Feed Hack
Version: 1.00, by Xyphen Xyphen is offline
Developer Last Online: Dec 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-28-2004 Last Update: Never Installs: 34
 
No support by the author.

My friend made this hack, he owns http://www.liquidpro.net. Check him out.
You may contact him at liquidpro@neo.rr.com. Or you can IM him on AIM at LiquidPro10.

An example is shown at http://www.xtreme-forumz.net. Go to the Techno forum under the General category. Then the CNET News sub-forum.

RSS News Feed Hack for vB 3.0.0. As long as vBulletin doesn't change the database structure much, this should be good for the next release also, and those to come.

Allows you to have a live RSS news feed (such as one from Google or CNET) in a forum. The user that posts it will basically be a bot, which *should* only be used for posting the news, but you can even make it for a regular user.

Comments are welcome!

Instructons:
Note: DON'T FORGET TO MAKE A BACKUP OF EACH FILE BEFORE YOU MODIFY IT!

Copy the files to your web server... keep the same directory structure as in the zip file.
Run the rss_install.php file to setup the RSS script.
If you're upgrading run the rss_upgrade.php file to setup the RSS script. Don't forget to remove all previous modifications (you can find them by searching for "LiquidPro")

#### open the /index.php script ####
Find this:

PHP Code:
require_once('./includes/functions_forumlist.php'); 
Add below it:

PHP Code:
require_once('./includes/RSS/rss_update.php'); 
#### open the /forumdisplay.php script ####
Find this:

PHP Code:
require_once('./includes/functions_forumdisplay.php'); 
Add below it:

PHP Code:
require_once('./includes/RSS/rss_update.php'); 
#### open the /admincp/index.php script ####

Find this:

PHP Code:
construct_nav_group("$vbphrase[styles] &amp; $vbphrase[templates]"'<hr />'); 
Add below it:

PHP Code:
// Manage Hacks
// by: Andrew Wickham
// LiquidPro Inc.
//
construct_nav_option('RSS News Feed''rss_admin.php''<br />');
construct_nav_group('Hacks');
//
// End Manage Hacks 
You're done, thanks for installing the hack.

Hack by: Andrew Wickham (http://www.liquidpro.net)
Hack for: Xtreme-Forumz (http://www.xtreme-forumz.net)

Show Your Support

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

Comments
  #137  
Old 03-29-2004, 01:02 AM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it didn't work, make sure you haven't been banned from the feed itself. Those fixes WILL fix the problem of not updating, I know, I had the very same problem myself. There are 2, maybe 3 fixes that should be made.


As far as releases, well, who knows. The code works if you apply the fixes, but you've got to apply them all to get it to work
Reply With Quote
  #138  
Old 03-29-2004, 04:50 AM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I just took a few minutes and put together a WORKING install of this.
The file edits have been taken down to 1 and the cron script IS included.
The only thing different between this and the first zip is the file edits and the bugs have been fixed in rss_update.php.

I just tested this, and installed it on vb3 gold. There's no question in my mind it's working.
When you design the forums for these, you'll want to make sure that the forum handles html, otherwise you'll have a problem.
Reply With Quote
  #139  
Old 03-29-2004, 04:50 AM
Action-N's Avatar
Action-N Action-N is offline
 
Join Date: Jan 2002
Location: Pasco, WA
Posts: 225
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this one an managed to get it to update three times. Not sure what it takes to get it to update, but it does work. I do think it makes a difference on which feed you use. The CNET 5 news is what is working for me, the Yahoo news feed is one I found scary. Loaded the forum with about three pages of posts, stupid crap. So that forum is gone. Now I wanted to ask how I can I allow only the bot to post, with forum closed to all other users.

P.S. The really need to move this one to Beta releases, sorry Xyphen.
Reply With Quote
  #140  
Old 03-31-2004, 11:07 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Funny, it's not working with the vB3 newsfeeds
Reply With Quote
  #141  
Old 04-02-2004, 10:07 AM
sjau sjau is offline
 
Join Date: Apr 2003
Location: Switzerland
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Going to install it today on vB3 Gold and checking how it works... have it running fine on RC3
Reply With Quote
  #142  
Old 04-02-2004, 01:42 PM
LoOnEyToOnZ LoOnEyToOnZ is offline
 
Join Date: Mar 2004
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys... how can i get Yahoo RSS feed unto my forums with this ? I already installed this hack, just dunno how to use Yahoo RSS
Reply With Quote
  #143  
Old 04-02-2004, 02:19 PM
rockergrrl's Avatar
rockergrrl rockergrrl is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yahoo RSS is located here:
http://news.yahoo.com/rss/

Find the topic that you want and copy the URL to the feed.

It will update (works for me).
Reply With Quote
  #144  
Old 04-02-2004, 03:01 PM
LoOnEyToOnZ LoOnEyToOnZ is offline
 
Join Date: Mar 2004
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ic... Tonya do you just copy the url like http://news.yahoo.com/rss/tech/ ?

Or does it have to end with a .xml ?




Also... please check out my forums www.sgwhz.com and under Industry News.... you see the RSS by Yahoo! Tech. When you click on the view full article link it comes out to a error page on Yahoo....any idea why it happens ?
Reply With Quote
  #145  
Old 04-02-2004, 05:06 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the new version and when I run the cron I get this error:
Warning: mysql_query(): Unable to save result set in /htdocs/www/includes/db_mysql.php on line 212

Invalid SQL: SELECT * FROM post ORDER By postid DESC
mysql error: MySQL client run out of memory

mysql error number: 2008

I only added two bots
Reply With Quote
  #146  
Old 04-02-2004, 05:59 PM
Vb-Hispano's Avatar
Vb-Hispano Vb-Hispano is offline
 
Join Date: Feb 2003
Location: Barcelona Spain
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for your work
Reply With Quote
  #147  
Old 04-02-2004, 06:46 PM
rockergrrl's Avatar
rockergrrl rockergrrl is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LoOnEyToOnZ
ic... Tonya do you just copy the url like http://news.yahoo.com/rss/tech/ ?

Or does it have to end with a .xml ?
For Yahoo tech feeds use this url:
http://rss.news.yahoo.com/rss/tech

http://news.yahoo.com/rss/tech/ is just the general list of Feeds that are available. Copy the URL next to the subject you want listed.
Reply With Quote
  #148  
Old 04-02-2004, 09:17 PM
PlenoJure's Avatar
PlenoJure PlenoJure is offline
 
Join Date: Aug 2002
Location: Melbourne, FL
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LoOnEyToOnZ, the reason that happens is because of an html decoding bug, here's what I did to fix it:

In ./includes/RSS/rss_update.php Find:
PHP Code:
$rss_description .= "\n\n[url=" $rss_allItems[$j][LINK] . "]View the Entire Article[/url]\n"
UNDER that ADD:
PHP Code:
$rss_description html_entity_decode($rss_description);
$rss_title html_entity_decode($rss_title); 
That fix is running on 2 forums and seems to work well.
Reply With Quote
  #149  
Old 04-02-2004, 09:27 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire
I installed the new version and when I run the cron I get this error:
Warning: mysql_query(): Unable to save result set in /htdocs/www/includes/db_mysql.php on line 212

Invalid SQL: SELECT * FROM post ORDER By postid DESC
mysql error: MySQL client run out of memory

mysql error number: 2008

I only added two bots

anyone got a suggestion for my problem?
Reply With Quote
  #150  
Old 04-02-2004, 11:39 PM
Leah's Avatar
Leah Leah is offline
 
Join Date: Aug 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire
I installed the new version and when I run the cron I get this error:
Warning: mysql_query(): Unable to save result set in /htdocs/www/includes/db_mysql.php on line 212

Invalid SQL: SELECT * FROM post ORDER By postid DESC
mysql error: MySQL client run out of memory

mysql error number: 2008

I only added two bots
Same error here.

And also, the posts doesn't show up.
Reply With Quote
  #151  
Old 04-03-2004, 10:20 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no posts because mysql runs out of memory
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:34 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.11925 seconds
  • Memory Usage 2,375KB
  • Queries Executed 30 (?)
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
  • (8)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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