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)

gmtalk 07-17-2004 02:52 PM

Quote:

Originally Posted by Velocd
As said, the bot starts at the end of the file (oldest articles) and counts its way up. It makes sense that if you remove a thread, the bot (which does check for existing threads) will re-create it. Instead of removing the thread from the database, if you wish to get rid of it, "soft" delete it.

Also note there is a "initial article trim" to skip a number of articles when first starting on an RSS feed.

Well I have been testing this one out and it is going nuts on me. The feeds I have are from Racing sites and they come in every few hours. Bad thing is that it is grabbing even the old stories over and over. 8 stories have been repeated on the site 12 times now.

This is nuts. Is there a better way to have it check for dupes? I know in the other RSS feed hack they have sorted that out. I would like to see that in this one. :\

scotty 07-19-2004 09:55 AM

i had the problem of reoccuring threads by my bot too...

the reason was an additional space in the "title-tag"!

instead of <title>here the headline</title> there was <title>here the headline </title> in the rss-feed.

so the bot couldn't recognize, that the thread (without the whitespace) still exists.

my sollution:

find:
Code:

if (!$articlebot['lastpost'] && (--$articlebot['initialtrim'] > 0))
and just add above:
Code:

$article['title'] = trim($article['title']);
now it is working fine again! :)

Floris 07-19-2004 10:19 AM

now it is working fine again! :)[/QUOTE]The .php file is ready for cron, to save a query could we setup this through the scheduler from vbulletin?

Bobby S 07-19-2004 11:20 AM

Quote:

Originally Posted by floris
The .php file is ready for cron, to save a query could we setup this through the scheduler from vbulletin?

I set it up as a scheduled task and it appears to work fine: except some feeds duplicating. I'm not sure why but the post two up may hold the answer...

Velocd 07-20-2004 01:32 PM

I've been meaning to make an update fixing the bugs discussed so far, but just haven't had the time.

Probably at the weekend I will do so.

Do the trimming of the thread title mentioned here, and hopefully that erases some duplicate threads that are only off by whitespace.

This hack checks for threads of the same title that already exist, and if they do, it wont post them again. Unless there is a bug. ;)

Chris-FH 07-20-2004 01:59 PM

Quote:

Originally Posted by Chris-FH
Please help me, I'm getting this error:

Code:

Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in /xxx/html/board/articlebot/articlebot.php on line 43

Fatal error: main() [function.main]: Failed opening required './global.php' (include_path='.:/usr/lib/php') in /xxx/html/board/articlebot/articlebot.php on line 43

@romeshomey:

What was your solution?

C.

Nobody??? :ermm:

C.

scotty 07-20-2004 02:07 PM

Quote:

Originally Posted by Chris-FH
Nobody??? :ermm:

C.

do you have changed that:
Code:

chdir('/path/to/forums/');
require_once './global.php';

(step8 installation)

Chris-FH 07-20-2004 02:21 PM

Yes I have...

If this path (chdir) is incorrect, the error is in line 42...

But it is correct...

If I set the full path to the global.php , I get this error:

Code:

Warning: main(./includes/init.php) [function.main]: failed to create stream: No such file or directory in /xxx/html/board/global.php on line 18

Fatal error: main() [function.main]: Failed opening required './includes/init.php' (include_path='.:/usr/lib/php') in /xxx/html/board/global.php on line 18

C.

Kru 07-20-2004 06:15 PM

Well I installed it. I went on add bot and entered the user ID 1.

After it I got following message:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT articlebot.userid,
articlebot.articlebotid, user.username
FROM articlebot
LEFT JOIN user
USING (userid)
WHERE articlebot.userid = 0

mysql error: Table 'help.articlebot' doesn't exist

mysql error number: 1146

Date: Tuesday 20th of July 2004 12:12:16 PM
Script: http://www.spiritual-connections.com...ebot_admin.php
Referer: http://www.spiritual-connections.com...min.php?do=add
Username: xxx
IP Address: xxxx

every time if I am trying to open my forum this appears.

Can anybody help me, please

scotty 07-20-2004 10:15 PM

Quote:

Originally Posted by Chris-FH
Yes I have...
If this path (chdir) is incorrect, the error is in line 42...
But it is correct...

it can't be, sorry.

please provide:
- where is your forum located? (full path!) you can xxx some chars to mask your path
- where is your articlebot.php located? (full path!)
- how do you call articlebot.php? cron? direct?

Quote:

If I set the full path to the global.php , I get this error:
you can't edit line 43 - the only line to edit is 42!


All times are GMT. The time now is 11:52 AM.

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.01594 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (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