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)

Erwin 09-10-2004 12:12 AM

Quote:

PICNIC, probelm in chair, not in computer.
I LIKE it. :) Very cool acronym.

Natch 09-10-2004 12:24 AM

Quote:

Originally Posted by Erwin
I LIKE it. :) Very cool acronym.

It's a little nicer than referring to the ID 10 T errors ;)

Natch 09-10-2004 12:27 AM

Back on topic ;)

I've taken a look at this issue referred to by venomx and it's related to the instantaneous posting of multiple articles...

So: I'm intending on modifying the hack to cause the ArticleBot's to post with at least a 1 second separation between the items so there are no posts with identical timestamps.

Natch 09-10-2004 12:39 AM

OK - this will not work on Windows server prior to PHP5...

In articlebot/articlebot.php, Find:
PHP Code:

                if (++$count >= $articlebot['fetchlimit'])
                    break;
            }

            
$nextpost TIMENOW + ($articlebot['postinterval'] * 60); 

Insert ABOVE:
PHP Code:

                usleep(500); // sleep for 500 u-seconds to provide unique post time - NOT WORK ON WINDOWS PRIOR TO PHP5 


mobilephonegame 09-10-2004 07:31 AM

gr8 bit of coding, works really well :-) good job.!

Just a quick question...

I have everything set up fine on vb 3.03, and it pulls news from various feeds, but im now wanting to retreive via rss2, but looking at the rss2 url the varible "description" has been replaced with <content:encoded>

when i set the feed to rss2 it doesnt pull the short description, as the description tag has changed to <content:encoded> on the rss2 page and therefore on the posts, it then only adds the title & the link to the article.

is there any way to amend or add to the coding, so that i pulls <content:encoded> instead of, or aswell as <description> .? this way i can have the full post showing on my site when i select rss2 feeds, and not a short line of text etc....can this be done via the template.? or does it have to be code added to articlebot.php etc>?

any assist here would be gr8 folks.

Regards
Nick

mobilephonegame 09-10-2004 03:31 PM

anyone got a clue.? or has support ended for this hack.?

its supposed to be complient with RSS 2 but doesnt seem to be :surprised:

venomx 09-10-2004 03:50 PM

Nope the usleep(500); didnt work for me.. :(

RetroDreams 09-10-2004 03:53 PM

Quote:

Originally Posted by RetroDreams
Yep, my members officially started complaining today and thus, PaperBoy (the Articlebot) became no more.

I would like to re-enabled this, but until features like above are added, I just can't do it.

Great, great hack though.

Anyone found a way to keep Articlebot posts from spamming recent threads, and being returned when searching the forums via "New Posts"?

I'd love to re-enable this.

Ceroc 09-11-2004 01:20 AM

I have messed-up somewhere along the line as it is not working.

My webhost is
running windows server and task scheduler is used instead of cron. So I have placed an include once in my index.php file and in articlebot.php commented out:
Code:

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

I then created an Article Bot user who should search for the rss feed:
http://news.yahoo.com/rss/

And set the post interval to 1 min and waited. So far nothing has been posted.

In my article bot manager the next feed is due at 7:01 am (despite having set the interval to 1 mins) and although I installed it last night, and 7:01 am has been and gone still there are no posts.

I must have missed something in "
Routinizing your article bots" but have checked and re-checked.

Any thoughts?

mobilephonegame 09-11-2004 08:23 AM

Quote:

Originally Posted by Ceroc
I have messed-up somewhere along the line as it is not working.

My webhost is
running windows server and task scheduler is used instead of cron. So I have placed an include once in my index.php file and in articlebot.php commented out:
Code:

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

I then created an Article Bot user who should search for the rss feed:
http://news.yahoo.com/rss/

And set the post interval to 1 min and waited. So far nothing has been posted.

In my article bot manager the next feed is due at 7:01 am (despite having set the interval to 1 mins) and although I installed it last night, and 7:01 am has been and gone still there are no posts.

I must have missed something in "
Routinizing your article bots" but have checked and re-checked.

Any thoughts?

you need to send it to a specific rss url i.e http://rss.news.yahoo.com/rss/topstories

any assist with rss2 not working.??


All times are GMT. The time now is 06:29 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.01630 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (4)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