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

RyanDe680 08-27-2005 07:49 PM

All I am getting are advertisements so far, even though in the XML feed I can see the articles relevant to what I would want posted

Yup 08-28-2005 12:20 AM

I installed this, followed everything the way it said to, and yet there is no option to the left of my admin cp.

There isnt an article bot settings box

any help?

Yup 08-28-2005 01:00 AM

Forget about that, I guess i didnt refresh..

however now i have a new problem

i set up everything through all the steps put the include for articlebotphp in my index

and put the correct path to server in the articlebot.php

but when i go and try to execute articlebot.php i get a blank screen

also it isn't posting any threads or rss feeds

RyanDe680 08-28-2005 01:51 AM

Quote:

Originally Posted by Yup
Forget about that, I guess i didnt refresh..

however now i have a new problem

i set up everything through all the steps put the include for articlebotphp in my index

and put the correct path to server in the articlebot.php

but when i go and try to execute articlebot.php i get a blank screen

also it isn't posting any threads or rss feeds

If it results in a blank page when you go to http://www.yoursite.com/forum/articlebot/articlebot.php then that's good, it's working. Perhaps it could be the XML scripts that you are receiving (ie. the news source)?

For me all I have been getting are advertisements.

Yup 08-28-2005 11:23 PM

It just took sometime to grab it, I guess my only complaint now is that the threads that are being posted are only like a couple of sentences... instead of full articles

is anyone else experiencing that as well?

darnoldy 08-29-2005 01:28 AM

Quote:

Originally Posted by Yup
the threads that are being posted are only like a couple of sentences... instead of full articles

is anyone else experiencing that as well?

Yep, everyone. That's the way RSS feeds are designed to work--they give a few-sentence description and a link to the full article.

--don

Cloud Strife 08-29-2005 11:33 AM

Is there any way to use regex to replace the link that is inside <link> </link> This link is being posted in the threads, but it is not the link to the full article. The link posts like this "http://www.thesite.com/short.php?id=12543" I want to replace it so it puts a link to "http://www.thesite.com/full.php?id=12543" I tried to do a regex for description in the admincp but it didnt work. Seems that it wont work for things embedded in a link tag. Any way to get it to work?

ferrariengines 08-31-2005 10:11 PM

I believe the entire logic of this script is absolutely wrong. Firstly, there is no code in articlebot.php which would cause it to loop for the specified interval time. Setting an interval appears to be useless, articlebot will grab the first item in the RSS and then wait until the cronjob fires it again to grab the second item, the interval setting is completely bypassed. The way I imagined functionality was as follows:

Say you have a RSS feed with 10 items that haven't been added to your forums. At whatever time you designated the cronjob to fire, the first item from the RSS is added to the forums. Because I have set the interval to 2 minutes, the next item is added 2 minutes later, etc. until after 20 minutes, all 10 items have been added to the forums, and execution stops. When my cronjob fires articlebot.php the next time it will check for any new items, and input them 1 at a time taking a 2 minute rest between items.

I believe this was the intention of the script, but there is no coding in articlebot.php to facilitate this. I am currently attempting to incorporate the correct interval structure into articlebot.php, however, it may prove to be difficult as I am having a hard time understanding the layout of this code as it appears to be completely linear without any reference to certain functions.

I will keep you guys updated.

NxTek 08-31-2005 10:42 PM

I haven't noticed most of what you mentioned, but I have noticed that it will grab a post in the "middle" of a feed as a new article.

The 3 biggest problems with this script as I see it are -

1, It doesn't correctly parse images in feeds to (img) vB code tags. I know the layout can't always match the original, but still displaying them would be nice.

2, It doesn't correctly parse <enclosure> tags into (url) vB code tags. This is most often used for Podcasts.

3, There is zero support for it. I've asked 7 questions in this thread and none have been answered. I'd even be willing to pay a few bucks for the script if support questions would get answered. Welcome to vB hacks I guess. :)

ferrariengines 08-31-2005 10:48 PM

Hi NxTek,
Does the interval system work for you, such as you specify an interval, and it will churn away posting a new message for each item based on the interval time? It is not possible from looking at the code... I wonder if I have a bad articlebot.php?

ferrariengines 08-31-2005 10:55 PM

PS: If your intervals do work, was there a step in the setup you had to perform, and what are your settings/rss feed. I am very interested to see how I can make mine perform correctly. Furthermore, have you been able to make it work via Scheduled Tasks? I can only use it with cronjobs.

NxTek 09-01-2005 01:30 PM

The interval system itself works (I.E., the cronjob), but it doesn't always get articles in order.

ferrariengines 09-01-2005 06:50 PM

Hi NxTek, the cronjob isn't suppose to be what controls intervals.. The cronjob is suppose to fire the main .php file, then the interval is suppose to control how often articles are grabbed during execution, it doesn't work at all. I guess im going to have to resort to setting up a 10 minute cronjob to grab headlines, it will work, but i'd prefer something easier..

ferrariengines 09-01-2005 08:40 PM

Ok this modification officially is horrible, it doesn't work as intended, and it doesn't handle special characters worth anything! I'm removing it right away!

poolking 09-01-2005 08:42 PM

so what did you intend it to do?

yahoooh 09-02-2005 05:45 AM

i love this hack it works perfectly with 3.0.7 that have more than 50 hacks!

mattyk72 09-05-2005 04:19 AM

how do I uninstall?

interfx 09-10-2005 04:01 PM

I have this installed on VB3.0.7, buta m upgrading my site to use VB3.5RC3...

Will this hack work, or is there a better RSS programs that has similar features for VB35RC3?

Thanks in advance -
INterFX

c0d3x 09-15-2005 02:44 PM

i would like to use it on my vb 3.5 board as well... is there any similar hack or any port of this?

michaelbenson 09-23-2005 10:39 PM

Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/michael/public_html/articlebot/articlebot.php on line 42

Warning: main(./global.php): failed to open stream: No such file or directory in /home/michael/public_html/articlebot/articlebot.php on line 43

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/michael/public_html/articlebot/articlebot.php on line 43
I am being sent the following Cron Job error whenever it tries to run.
But the path to my forums is correct and working.

hbalagh1 09-23-2005 11:46 PM

i installed this last night and ended up removing it this morning... my members hated that it filled up the new post feature( i had 5-6 request by the time i woke up asking to remove it). If there is a way to not have it show up there, and not add to the total post count count of the forum it would be great

aciurczak 09-28-2005 01:11 AM

Hi all -

I installed Articlebot a few days ago, and it's working great. Mods I've done include:

- changing the posting template to show a clean link
- stripping out the postbot's user ID in new post searches

If someone wants a demo of what this thing is supposed to do, check out this link: *EDIT - LINK REMOVED*

Within the admincp, I can selectively move threads from my news forum to a discussion forum if they have > zero replies.

Here's what I need: What I want is help creating a script that will automatically do this every hour or so. Has anyone created an auto-move script before, or I should I start parsing through how the admincp component works? Thanks for any assistance one can provide...

- Alex

EDIT: Got it working. It moves threads with replies over to a discussion forum, and it also strips out threads with ADV: in the title as trash and puts them into a Trash forum, hidden from the public, for later review and deletion.

apshanon 09-30-2005 04:22 AM

I have installed articlebot hack in my 3.0.8 version. But I have upgaded vbulletin to 3.5.0. Please help me how I can setup articlebot again now

aciurczak 09-30-2005 04:33 AM

Not sure if Articlebot will be updated for 3.5.0. Here's a well-regarded RSS hack for 3.5.0: click here...

zachlee 10-17-2005 01:24 PM

has anyone found a better RSS feed solution for 3.5?

I have toyed with the Inferno system but would prefer Article Bot if possible

Byron 10-22-2005 03:22 AM

1 question.

How to uninstall this hack if i don't need it in future?

aciurczak 10-22-2005 03:59 AM

No automated uninstall, but it isn't rocket science either. Look at the install.php file, and you can see the 3 tables created (articlebot, articlebot_rss, articlebot_rss_cache), along with a new column in the thread table. If you want to make it inactive, just don't call the cronjob anymore. If you want to remove everything completely (whether or not it is doing anything), just drop the 3 tables, remove the column from the thread table, and remove the template mods you made.

Personally, this is one of my favorite hacks; it is working so well on my board and is one of the reasons I haven't yet jumped to 3.5.0. I've added a few add-on mods that make it more useful on a board:

- strip out any RSS news items that come through with ADV: in the title to a trash forum (this kill pretty much all the ads that come through on the feeds I use)
- auto-move any threads with 1 or more replies from the news forum to a discussion forum every hour.

Byron 10-22-2005 04:22 AM

Thanks,

Velocd, can you add a file to do an automated uninstall?

Byron 10-22-2005 04:28 AM

How do we add rel=nofollow to

PHP Code:

$article[description]

[
b][url="$article[link]"]$article[link][/url][/b


I tried

PHP Code:

[b][url="$article[link]rel=nofollow]$article[link][/url][/b

but it mess with the feed url.

aciurczak 10-22-2005 04:50 AM

Hi Byron - I don't think you can add it with only a template change; it needs to be added as vbulletin parses the bbcode into html. Here's a link for the mod in 3.0.X that can do it for all URL's:

https://vborg.vbsupport.ru/showthrea...threadid=74703

What I'd do is just add another clause to the if statement checking for >50 posts, and make it (user > 50 posts) & user != my posting bot user ID, or not in my posting bot user''s group ID).

You can mess with the if clauses to aim the nofollow parameter to as few or as many users/groups as you'd like.


All times are GMT. The time now is 03:30 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.02126 seconds
  • Memory Usage 1,844KB
  • 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_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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