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)

School-Help 10-27-2004 04:50 PM

I dont know but mine doesn't work as of yet. ive set it all up and added a bot with feeds. it just the time registered is all weird. I mean i set it up today for every two hours but it says next time that it will feed is at 2 tomorow? which is in a long time. Anyone got any clue?

Sooner95 10-27-2004 05:58 PM

Quote:

Originally Posted by iKwak
How did you get the cron setup??


/usr/local/bin/php /home/path/public_html/forum/articlebot/articlebot.php

in the cmd box.. then set a time. also good for testing have it go to an email you can check. pretty much if it doesnt send you an email when it runs, then it works lol

your path will vary depending on your server.

/usr/local/bin/php this was my path to my php excutable, pretty common, but double check.

Lionel 10-28-2004 08:07 AM

hello, I just installed and tested it quickly by inserting the include _once in index.php at the bottom as instructed. Then although it got the news, it also showed on top of the browser the following:

Warning: Cannot use a scalar value as an array in /mnt/hda3/www/site/forums/articlebot/articlebot.php on line 325

I did a search here and could not find the meaning of this. Any help is greatly appreciated, and thanks for the script.

School-Help 10-28-2004 03:22 PM

can someone please help me find the Path to my php executable. I think it is

/usr/local/lib/ but when i use this as the value on the cron job it does not work as i get the email /usr/local/lib/ is a directory. When replace path/to/forums/articlebot/articlebot.php do we use the full path? someone please help!

James T Brock 10-28-2004 04:08 PM

If you don't know how to use a cron job, why not just assign scheduled tasks in the adminCP to do it for you? Much better that way.

But if you insist on a cron job. I'm using Cpanel and this is what I would probably put in my cron slot; /home/username/public_html/forums/articlebot/articlebot.php

Replace username with your account username, and replace forums/articlebot/articlebot.php with whatever the correct path is.

School-Help 10-28-2004 06:12 PM

Why does it ask us to use /usr/local/bin/php ? :speechless: infront of the actual path?

Lionel 10-28-2004 06:39 PM

Quote:

Originally Posted by School-Help
Why does it ask us to use /usr/local/bin/php ? :speechless: infront of the actual path?

those are the php binaries. It is what allows the program to be excuted.

Yould also use the wget command

Nordinho 10-29-2004 09:02 AM

I have this weird permission issue...the article bots post are always published...I've made a new usergroup for the bot, with limited permissions and 'always moderate posts', but the articlebot just ignores those settings and keeps on posting...any other ideas on moderating it's posts???

buro9 10-29-2004 09:49 AM

Quote:

Originally Posted by Lionel
those are the php binaries. It is what allows the program to be excuted.

Yould also use the wget command

Or you could add some minor hacks and use the VB cron system.

I did this as I'm using mmcache and calling the PHP binaries directly seemed to cause errors. By hacking the code to be a cron job I can call it from VB and have everything work without error... as well as have a log of what it going on (more hacking!).

But it all works fine, and the syntax is not hard to figure out... take a peek at the other cron jobs ;)

Kwak 10-29-2004 06:54 PM

Does anyone know how to setup the Google News Alert? http://www.google.com/alerts?q=&hl=en


All times are GMT. The time now is 07:39 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.01849 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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