vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   NEW Modified RSS News Feed Hack (https://vborg.vbsupport.ru/showthread.php?t=63798)

maresi 04-25-2004 10:52 AM

first: great hack :up:
second: I tried to run the cronjob and got this error message...

Code:

Warning: main() [function.main]: open_basedir restriction in effect. File(../class.RSS.php) is not within the allowed path(s): (/www/*****/*****/) in /www/*****/*****/includes/RSS/rss_update.php on line 28
 
Warning: main(class.RSS.php) [function.main]: failed to create stream: Operation not permitted in /www/*****/*****/includes/RSS/rss_update.php on line 28
 
Fatal error: main() [function.main]: Failed opening required 'class.RSS.php' (include_path='.:..') in /www/*****/*****/includes/RSS/rss_update.php on line 28

thx for help

maresi

ryanozawa 04-25-2004 05:29 PM

I'm thrilled to have found this hack! I grabbed the latest live linked version as of yesterday (I'm running PHP 4.3.5), and followed the installation instructions. I did create a bot user, and a special forum for it to play in. I can get to the RSS administration panel, added a bot... but then nothing.

Question: When you run the ./rss.php task from the Scheduled Task manager, is there any confirmation message at all? Whenever I click it, it just says Update RSS... and nothing else. No error, but no "Done" either. It doesn't show up in the scheduled task log, either, which makes me doubt it's running.

Thanks for any help you can provide!

Slapyo 04-26-2004 02:05 PM

Quote:

Originally Posted by maresi
first: great hack :up:
second: I tried to run the cronjob and got this error message...

Code:

Warning: main() [function.main]: open_basedir restriction in effect. File(../class.RSS.php) is not within the allowed path(s): (/www/*****/*****/) in /www/*****/*****/includes/RSS/rss_update.php on line 28
 
Warning: main(class.RSS.php) [function.main]: failed to create stream: Operation not permitted in /www/*****/*****/includes/RSS/rss_update.php on line 28
 
Fatal error: main() [function.main]: Failed opening required 'class.RSS.php' (include_path='.:..') in /www/*****/*****/includes/RSS/rss_update.php on line 28

thx for help

maresi

sounds like you have a problem with open_basedir. are the files in the right folders? might want to check your php.ini file or do a phpinfo() and see if open_basedir has any restrictions in place.

Slapyo 04-26-2004 02:07 PM

Quote:

Originally Posted by ryanozawa
I'm thrilled to have found this hack! I grabbed the latest live linked version as of yesterday (I'm running PHP 4.3.5), and followed the installation instructions. I did create a bot user, and a special forum for it to play in. I can get to the RSS administration panel, added a bot... but then nothing.

Question: When you run the ./rss.php task from the Scheduled Task manager, is there any confirmation message at all? Whenever I click it, it just says Update RSS... and nothing else. No error, but no "Done" either. It doesn't show up in the scheduled task log, either, which makes me doubt it's running.

Thanks for any help you can provide!

nothing is posted to the log, even if it is turned on ... i plan on adding this feature in. if you see update rss then it ran without any major errors heh, thats the best i can tell you. i haven't even touched that part of the script yet.

what is the rss news feed you are trying to use, can u post the link to it.

ryanozawa 04-26-2004 03:09 PM

Thanks for the quick reply! Here's my intended feed:

http://www.topix.net/rss/state/hi/

Ryan

ethics 04-26-2004 03:17 PM

Can anyone put together a list of the RSS feeds that DO work with this? Slashdot, for example, doesn't.

Slapyo 04-26-2004 03:54 PM

Quote:

Originally Posted by ryanozawa
Thanks for the quick reply! Here's my intended feed:

http://www.topix.net/rss/state/hi/

Ryan

that is an RDF feed. won't work, only RSS feeds.

Slapyo 04-26-2004 03:55 PM

Quote:

Originally Posted by ethics
Can anyone put together a list of the RSS feeds that DO work with this? Slashdot, for example, doesn't.

my inital post has a list of them. if any don't work let me know so i can remove.

Common RSS Feeds:
- Yahoo!
- CNET.com
- BBC
- Wired News
- The Register
- Ars Technica

Briboy923 04-26-2004 06:03 PM

When I add a new bot, do I just say "Yahoo!" for source, do i put in yahoo.com/rss ??? or what

ryanozawa 04-26-2004 06:38 PM

Quote:

that is an RDF feed. won't work, only RSS feeds.
That would explain it! Fortunately, I found the feeds put out by AllHeadlineNews.com do work, and with regional news feeds, that's all I need. Now to read up on how to tweak the bot's posts... here.

For those interested (and if you'll pardon the self-link), here's my newsbot's playground. I too tweaked the post format (rather than "View the entire article," I just made the headline a link). I sure wish my RSS source would pass a little more meat in the item description, though!

Finally, this autoprune hack makes a great partner with the RSS News Feed hack. If your bot is posting dozens of threads a day, this can make sure you don't suddenly find yourself with 5,000 threads in your bot's forum.


All times are GMT. The time now is 06:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01560 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete