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)
-   -   Article Bot (https://vborg.vbsupport.ru/showthread.php?t=67078)

Natch 07-30-2004 02:59 AM

Any chance we can have a Thread prefix to each posted thread - with a Title for each Feed ? - it would involve a new field for each Feed with a Short Title, but I reckon it would be worth it :)

What do you reckon VeloCD ?

KW802 07-30-2004 04:45 AM

Quote:

Originally Posted by KW802
Cool, I guessed the template thing right at least. I added it to my default style thinking that since it was using global.php that it'd use whatever the default was.

I tried the directory name in articlebot.php first, even ended up hard-coding the full path and still get the same error.

Below is what the code at http://www.farpointstation.org/forum...articlebot.php currently is but is still producing the same error.
Code:

chdir('/home/farpointstation/www/forums/');
require_once '/home/farpointstation/www/forums/global.php';
include_once '/home/farpointstation/www/forums/articlebot/rss_fetch.inc';

I'm stumped. :ermm: I figured I'd try running it directly from the browser first to rule that it wasn't my cron job.

Any thoughts appreciated. :nervous:

Thanks,
Kevin

Well, I've installed a fresh copy of the articlebot files and have grep'ed all files in the /forums folder and I still get the error pointing to the relative directory; it's almost as if something is calculating the system path intead of using the hard-coded values.

The one hack that I really wanted to install and of, of course, Murphy's Law has to intervene. :tired:

rinkrat 07-30-2004 05:20 AM

I just changed the top one and left the other two the way they came.

rinkrat 07-30-2004 05:22 AM

Quote:

Originally Posted by Natch
Any chance we can have a Thread prefix to each posted thread - with a Title for each Feed ? - it would involve a new field for each Feed with a Short Title, but I reckon it would be worth it :)

What do you reckon VeloCD ?


The newest version does that already silly goose!

Natch 07-30-2004 06:42 AM

Quote:

Originally Posted by rinkrat
The newest version does that already silly goose!

I do feel a goose - anticipating my requests like that - nice work Velo! :D

SnowBot 07-30-2004 08:45 AM

Quote:

Originally Posted by Velocd
Snowbot, chdir needs to be pointing to your forums, not the articlebot directory.

As printed in the code.

Code:

// Provide absolute server path to forums.
// e.g. /home/cjohn/public_html/forums/
 
chdir('/path/to/forums/');
require_once './global.php';


Yes sorry i realised that this morning and changed it, i had just come back from the pub when i posted :) lol

BUT it still doesnt post :( No errors when i run the file, its set up on google RSS feed and has been set to post every 120m, its been active for 5h and still no post. Any suggestions?

Velocd 07-30-2004 01:28 PM

Snowbot, do you have a cron setup to execute the script every 120 minutes?

Even though each feed has a period in minutes at which it's posted, all feeds wont be posted if the articlebot.php script isn't executed every now and then.

What you should do is get an average in minutes from all your rss feeds, and then set a cron script to execute the articlebot.php at that average.

For me, most of my RSS feeds are at a period from 400 minutes to 600 minutes. So I have a cron script to execute articlebot.php every 500 minutes.

If this still doesn't work, try a more active RSS feed, like a Yahoo! news one. I don't recall Google updating it's RSS feeds very often (although, this shouldn't be a factor to why it isn't posting...)

KW802 07-30-2004 01:46 PM

Yes! Got it working....... I.... am... so... f'ing... happy! :banana:

This morning it struck me -- It wasn't the path that it wasn't liking but the actual PHP command it was issuing. Big item there. Did a little poking and found a few things....

The command "array_change_key_case" is only available as of PHP 4.2.0 and above. Well, turns out that my hosted provider is running 4.0.6! AAaaaaaggghhh!!!!! The same with "html_entity_decode" -- only available as of 4.3.0 and above. I commented out those two commands, ran the articlebot.php from my browser, and it worked.

Now I have to go harass my provider about updating their PHP. :ermm:

SnowBot 07-30-2004 01:53 PM

Quote:

Originally Posted by Velocd
Snowbot, do you have a cron setup to execute the script every 120 minutes?

Even though each feed has a period in minutes at which it's posted, all feeds wont be posted if the articlebot.php script isn't executed every now and then.

What you should do is get an average in minutes from all your rss feeds, and then set a cron script to execute the articlebot.php at that average.

For me, most of my RSS feeds are at a period from 400 minutes to 600 minutes. So I have a cron script to execute articlebot.php every 500 minutes.

If this still doesn't work, try a more active RSS feed, like a Yahoo! news one. I don't recall Google updating it's RSS feeds very often (although, this shouldn't be a factor to why it isn't posting...)

Well thats sorted it :) I had the cron set up for every 6 hours not 60minutes..LOL stupid me...

Sorry for the messing around and thanks for pointing me in the right direction :) All works great.

rex_b 07-30-2004 06:00 PM

I installed the hack and set the bot timer to 1 min just to see if it will post something.

I am using this feed: http://www.religionnewsblog.com/b2rss.php

but
I didn't set any contrab thing b/c I have no idea what that is, I just want the bot to post every damn 120 min but it won't post even after 1 min.

What could I be doing wrong?


All times are GMT. The time now is 05:04 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.01351 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)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