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
  #92  
Old 02-26-2004, 11:55 PM
dartmoore dartmoore is offline
 
Join Date: Feb 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working so far here is link if ne1 wants to browse,
https://www.ssmallard.com/forums/index.php

vbhome
https://www.ssmallard.com
Reply With Quote
  #93  
Old 02-29-2004, 03:38 AM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this working - thanks for all the fixes posted here!

One question: I don't want HTML enabled in the forums I have the feeds post to, because I do want users to be able to reply and comment on news items. What's the line break code I can use so vb knows to insert a line break if html is disabled? "/n/n" doesn't work.

Thanks!
Reply With Quote
  #94  
Old 03-01-2004, 12:40 AM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when you hit the view new posts it shows all of his posts also. and i bet if you do a search, it'll query his posts


Also, in the forums that have the news posted the stats say for example: 64 threads and 64 posts when no one has posted there. :|
Reply With Quote
  #95  
Old 03-01-2004, 04:27 PM
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr. HillBilly
Also, in the forums that have the news posted the stats say for example: 64 threads and 64 posts when no one has posted there. :|
I believe when you post a thread. It still counts as a post
Reply With Quote
  #96  
Old 03-01-2004, 04:33 PM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, it works great for me but posts are being double posted by the bot.
Reply With Quote
  #97  
Old 03-01-2004, 08:53 PM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fi_InCogNiTo
I believe when you post a thread. It still counts as a post
a Post = reply.
Reply With Quote
  #98  
Old 03-05-2004, 02:05 AM
TerroRize TerroRize is offline
 
Join Date: Feb 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just want to post a Thank youfor a great Hack.
I ran into a few problems but it turned out it was my fault.
Reply With Quote
  #99  
Old 03-11-2004, 06:39 AM
cscgal's Avatar
cscgal cscgal is offline
 
Join Date: Aug 2003
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Every time I try to run a php script which includes rss_update.php, I get the following error

Warning: main(class.RSS.php) [function.main]: failed to create stream: No such file or directory in /home/www/daniweb/techtalkforums/includes/RSS/rss_update.php on line 17

Fatal error: main() [function.main]: Failed opening required 'class.RSS.php' (include_path='') in /home/www/daniweb/techtalkforums/includes/RSS/rss_update.php on line 17

Running latest RC of vB3
Reply With Quote
  #100  
Old 03-13-2004, 02:54 AM
NameWolf NameWolf is offline
 
Join Date: Mar 2004
Location: Istanbul
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Guys,

Is there any way we can hide the newsbots' post from the new/latest thread posts functions. These functions are now rendered useless as they are fully cluttered by the newsbots posts.

Thanks in advance.

NW
Reply With Quote
  #101  
Old 03-13-2004, 04:32 PM
clangrounds.com's Avatar
clangrounds.com clangrounds.com is offline
 
Join Date: Jan 2002
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having trouble installing this hack.

1. My index.php (main root forum file) is actually forum.php since I use vBindex as index.php to display when my domain name is typed in.

2. The error I get when trying to use the code snippet from instruction step #1 in forum.php is:

Code:
Fatal error: Call to undefined function: can_administer() in /home/myusername/public_html/forum.php on line 30
3. Of course I tried to install a bot in a new forum to see if that was the problem, but then all the forumdisplay.php pages from the forum generated mysql errors.

Code:
Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: INSERT INTO post (`threadid`, `username`, `userid`, `title`, `dateline`, `pagetext`, `allowsmilie`, `showsignature`, `visible`) VALUES ('2209', '', '0', 'Are Two Screens Better Than One?', '1079202398', 'Nintendo touts its latest portable video game, a dual-screen system that lets players view the action from different perspectives. Will it be a worthy rival to Sony's PSP?<br><br>View the Entire Article
', '1', '1', '1')
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's PSP?<br><br>http://www.clangrounds.com/forumdisplay.php?f=3
Referer: 
Username: Rebel
IP Address: edited
4. The first news feed I was testing was from Wired News Gaming (http://www.wired.com/news/feeds/rss2/0,2610,74,00.xml)

Any assistance rendered is greatly appeciated, thank you.
Reply With Quote
  #102  
Old 03-13-2004, 05:04 PM
clangrounds.com's Avatar
clangrounds.com clangrounds.com is offline
 
Join Date: Jan 2002
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shock.r
Guys, sjau posted a fix for this.

Find in /forum/includes/RSS/rss_update.php:
Code:
for($i = count($rss_allItems) - 1; $i >= 0; $i--) { 
            $rss_allItems[$i][OLD] = true; 
        }
Replace:
Code:
 for($i = count($rss_allItems) - 1; $i >= 0; $i--) { 
            $rss_allItems[$i][OLD] = false; 
        }
Also for updating, wolfstream posted a cron job for this!
Put the following code in wordpad and save as rssfeed.php then put it in your includes/cron/ folder.

Then in your admin control panel under "Scheduled Tasks" then click "Add New Scheduled Task" Give it a name, then under "Minute" I put mine on 59 so it updates ever 59 mins!

Then for file name put ./includes/cron/YOUR PHP FILE.php
Code:
<?
require_once('./global.php');
require_once('./includes/functions_bigthree.php');
require_once('./includes/functions_forumlist.php');
require_once('./includes/RSS/rss_update.php');
?>
Also, don't forget to remove following from /forumdisplay.php and /index.php:
Code:
require_once('./includes/RSS/rss_update.php');
I tried this and now get this error message when I try to run it in admincp:

Code:
Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: INSERT INTO post (`threadid`, `username`, `userid`, `title`, `dateline`, `pagetext`, `allowsmilie`, `showsignature`, `visible`) VALUES ('2209', '', '0', 'Are Two Screens Better Than One?', '1079204704', 'Nintendo touts its latest portable video game, a dual-screen system that lets players view the action from different perspectives. Will it be a worthy rival to Sony's PSP?<br><br>View the Entire Article
', '1', '1', '1')
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's PSP?<br><br>http://www.clangrounds.com/admincp/cronadmin.php?do=runcron&cronid=16
Referer: 
Username: Rebel
IP Address: edited
Reply With Quote
  #103  
Old 03-13-2004, 06:42 PM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I had a question. I briefly skimmed through the thread (I'm trying to multi-task getting ready with this), and I didn't find the answer.

Has this script been modified to be more "cron" like? Does it check the RSS feed every time a page is loaded, or is there any way that another cron can be created so that each bot runs at a certain time during a non-busy period? (Like say... I want a Cnet bot to run at 4am, and another RSS feed bot to run at 5am, etc)

Sorry if this has been answered and I missed it
Reply With Quote
  #104  
Old 03-13-2004, 10:54 PM
Lurk Lurk is offline
 
Join Date: Feb 2004
Location: Garden Grove, CA
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What style was used in the RSS feed screenshot?
Reply With Quote
  #105  
Old 03-14-2004, 12:47 AM
Lurk Lurk is offline
 
Join Date: Feb 2004
Location: Garden Grove, CA
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LurkCorp
What style was used in the RSS feed screenshot?
what is the style used in this screenshot?
http://lurkcorp.com/pubsighost/screencap.gif

I really want to know...
if someone knows, please post or pm me what it is and/or where to find it.
Reply With Quote
  #106  
Old 03-14-2004, 02:44 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would assume its one the guy designed himself.
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 07:15 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.05272 seconds
  • Memory Usage 2,379KB
  • 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
  • (7)bbcode_code
  • (6)bbcode_php
  • (4)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