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)

BeePee 08-14-2005 03:59 PM

I have been using this hack for a long time now to display the latest news on my forum. So far the news bot has made some 136,000+ posts. The hack works perfectly as advertised but:

I get a bit tired of having this bot as top poster, having all the time new posts problems [moded the search.php so it won't show the forum section where the bot posts in New Posts but than the new posts stats won't correspond to the new posts search page] and having a new thread and new post for each news as this falsifies a lot of forum stats, having to follow forum, thread and topic links instead of having an easy to read page, etc...

Anyway this gives me a new idea about this hack:
I came across this some time ago: https://vborg.vbsupport.ru/showthrea...&page=1&pp=100 [How to create your own vBulletin-powered page] and started toying with the idea of seperating the article bot from the forum soft itself and using this kind of integration to put it back into the forum:
- have article bot "post" into it's own table with a similar structure to the post table;
- create a custom made page and link it to a forum

If haven't started work on this yet and wanted to first ask if there is someone out there who has already been working on a similar idea...

BeePee 08-15-2005 09:39 AM

@ MadMan, had a closer look at the code: Although I haven't really looked much at vBull v3.5 yet I think this hack might work with it since it is mainly stand alone. I only checked the structure of the tables which has remained the same. The hack calls a few global vBull variables which, if they have changed, could cause problems. Maybe give it a try on a test board...

Gutspiller 08-15-2005 04:18 PM

I'm a little confused about how to set how frequently the bot posts. I have 1 bot with multiple news feeds. In the feeds settings I set the "Post Interval" setting to 30,40,50 and 60 for different feeds. The cronjob runs every 5 hours. But the bot doesn't post ever 30,40,50 or 60 minutes. Nor does it post every 5 hours. How do I get it to check for new articles every hour and posts them if there are more?

Right now it's only posting 1 time per day.

tm3500 08-17-2005 06:26 AM

Quote:

Originally Posted by yellowchaser
Fixed the problem, updated to the latest Magpie files at http://magpierss.sourceforge.net/ and it works with no errors now

I did that too, but it didn't resolve the following error:

-------------------------------------------------
Warning: MagpieRSS: Failed to parse RSS file. (syntax error at line 1, column 0) in /articlebot/rss_fetch.inc on line 238

Warning: array_reverse(): The argument should be an array in /articlebot/articlebot.php on line 137

Warning: Invalid argument supplied for foreach() in /articlebot/articlebot.php on line 141
-------------------------------------------------

That error occurs both with Google and Yahoo feeds. Interestingly, it worked a couple of times with Yahoo, but no more!

Any ideas? Is this simply a problem with the RSS format? Google and Yahoo use RSS 2.0 and that should be supported by this hack, right?

Thanks!

tm3500 08-17-2005 06:30 AM

Quote:

I'm a little confused about how to set how frequently the bot posts. I have 1 bot with multiple news feeds. In the feeds settings I set the "Post Interval" setting to 30,40,50 and 60 for different feeds. The cronjob runs every 5 hours. But the bot doesn't post ever 30,40,50 or 60 minutes. Nor does it post every 5 hours. How do I get it to check for new articles every hour and posts them if there are more?

Right now it's only posting 1 time per day.
Are you sure the cron is set up correctly? For some reason I could never get the cron to work in combination with this hack, it never executed at all. It started working perfectly when I used vB's Scheduled Tasks Manager and instructed it to call the articlebots.php script once an hour.

Gutspiller 08-17-2005 03:04 PM

Pretty sure the cron is working because when I click to run it now, it doesn't error out.
Quote:

Originally Posted by tm3500
Are you sure the cron is set up correctly? For some reason I could never get the cron to work in combination with this hack, it never executed at all. It started working perfectly when I used vB's Scheduled Tasks Manager and instructed it to call the articlebots.php script once an hour.


Fallback 08-19-2005 03:49 PM

Is there any way to get the bot post to show only after the first post on each page?

darnoldy 08-26-2005 08:22 PM

Folks-

I'm trying to install this mod (my first), and I got all the way to step seven, then got very confused.

I went to the cpanel on my site, found "chron jobs" but none of the choices i can make there seem to the instruction.

Quote:

In the crontab you will have to provide the path to the articlebot.php script, but first with the path to the php executable. Here is the syntax:

/usr/local/bin/php /path/to/forums/articlebot/articlebot.php
There is a box that asks"Please enter an email address where the cron output will be sent:"
One that asks "Command to run: "
and a bunch of menus that ask minute, hour, day, weekday & month

where do I put the path?

--don

BeePee 08-27-2005 07:15 AM

M8, you do that in your AdminCP, see the picts below:

AdminCP -> Scheduled Tasks -> Add New Scheduled Task and then fill out in accordance with my second pict.

darnoldy 08-27-2005 03:15 PM

Quote:

Originally Posted by BeePee
M8, you do that in your AdminCP, see the picts below:

AdminCP -> Scheduled Tasks -> Add New Scheduled Task and then fill out in accordance with my second pict.

Thank you-

I got that done, but now get to the instruction:\

Quote:

Set the path between the single quotes to the absolute server path to your forums.
e.g. /home/cjohn/public_html/forums/
I'm on a shared server, does that path start at my partition (the part I can see) or do I have to start at the server name?

--don


All times are GMT. The time now is 06:21 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.01863 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)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