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)

memobug 10-15-2004 09:05 PM

I got this working straight off, thanks!

I have 2 questions

Q1: I have a question concerning timing several feeds: how would i stagger the postings so they aren't consecutive - I don't want to annoy members with too frequent (consecutive) posting?

For example, if I set up the individual feeds for periods of 1hr 1.5 hr, 2hr, 2.5 hr, for example, will I need to cron it every 1/2 hour or so to avoid getting several at one time?

Q2 second question is about moving threads. If I move a post made by the robot to a different forum, or delete it, or even PURGE (remove completely) will it know that it has already postedthat news item, or will it try to post it again?

Regards,

Matt

Kwak 10-16-2004 12:41 AM

I am using CPanel and have the Cron jobs available.
I click it and select Standard Mode.

PHP Code:

Standard Cron Manager

This is a web 
interface to the crontab programIt allows you to run commands at any time you specifyEnter the command you would like to run as well as running times.

Please enter an email address where the cron output will be sent:myemail@addresshere.com 

And below that, Entry 1 and Command to run:
What is the command I need to type in??

Kwak 10-16-2004 12:47 AM

I get "Google Alerts" occasionally.

Could I use Google Alerts as RSS?

memobug 10-16-2004 03:29 AM

Quote:

Originally Posted by iKwak
I am using CPanel and have the Cron jobs available.
I click it and select Standard Mode.

PHP Code:

Standard Cron Manager
 
This is a web 
interface to the crontab programIt allows you to run commands at any time you specifyEnter the command you would like to run as well as running times.
 
Please enter an email address where the cron output will be sent:myemail@addresshere.com 

And below that, Entry 1 and Command to run:
What is the command I need to type in??

I would think it would be
Quote:

php /full/path/to/forum/articlebot/articlebot.php

buro9 10-16-2004 08:07 AM

Quote:

Originally Posted by iKwak
I get "Google Alerts" occasionally.

Could I use Google Alerts as RSS?

Absolutely.

But you need to have something receive the text email version of the alert and convert it to RSS for you.

There are free email2rss gateways out there, or you can work on your own ;)

This is precisely what I have in place use articlebot for... I have signed up to many music email news lists on sites that don't have RSS feeds. But I receive the emails, publish them as an RSS feed, and then consume them with the articlebot and thus they appear in as threads on my forum.

If you need a hand with the choices available for email2rss gateways, just ask.

Nick0r 10-16-2004 02:45 PM

Any ideas how I can make it post more of the description instead of just 1 line

example here http://www.cardschat.com/t4-%5Bblog-...ies-world.html

Tenny 10-16-2004 03:01 PM

Quote:

Originally Posted by Nick0r
Any ideas how I can make it post more of the description instead of just 1 line

example here http://www.cardschat.com/t4-%5Bblog-...ies-world.html

That is what the RSS feed is giving, and is not related to the article bot, the best option would be to try and find an RSS feed giving more!

gnawph 10-20-2004 12:01 AM

Great hack.

One problem I'm having is one of the BEST sites in my subject matter uses a weird RSS tag. Instead of having an description he uses <content:encoded> to list his news content. Is there anyway somebody could point me to what I have to modify? I'm decent at PHP, I just don't know where to start.

This would have to be a custom modification. Like asking IF this is that FEED use the content node instead of the description node.

Here is the feed:
http://halo.bungie.org/rss2channel.xml

Sooner95 10-26-2004 11:45 PM

took me a bit to figure out the whole cron thing, but got it going! thx for the work!

/me clicks install

Kwak 10-27-2004 02:57 AM

Quote:

Originally Posted by Sooner95
took me a bit to figure out the whole cron thing, but got it going! thx for the work!

[high]* Sooner95 clicks install[/high]

How did you get the cron setup??

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

memobug 10-29-2004 07:57 PM

Quote:

Originally Posted by Nordinho
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???

Yes, the robot has carte blanche. It can even post to forums that don't allow posting. Probably the pulldown list for forumids should skip them, but it doesn't. You'd probably need to hack the code and set whatever flag is associated with each post for moderation status.

Regards,

Matt

memobug 10-29-2004 08:02 PM

Quote:

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

I think you are asking not how to setup the Google News Alert but how to configure the Article Bot to post from a Google News Alert?

I don't think that's possible, yet.

But on a related point I am upset that about 1/2 the articles the Google News Alert turns up seem to require a password subscription. Sometimes not on the first visit from the mail link, but as the post ages a day or two, or perhaps on return visits.

Have you seen this? http://www.bugmenot.com (a system that provides free passwords for various news and subscription services)

Regards,

Matt

alzibub 10-29-2004 09:07 PM

Great hack!

Installed and working a treat, thanks :)

Kwak 10-29-2004 10:26 PM

Is that true? :(
I receive the google e-mails about the topic that I like and wanted to setup with the Article Bot hack.

I thought some other member in this thread (few pages earlier) mention that it does work. I should look back and post.

Kwak 10-29-2004 10:33 PM

Quote:

Originally Posted by buro9
Absolutely.

But you need to have something receive the text email version of the alert and convert it to RSS for you.

There are free email2rss gateways out there, or you can work on your own ;)

This is precisely what I have in place use articlebot for... I have signed up to many music email news lists on sites that don't have RSS feeds. But I receive the emails, publish them as an RSS feed, and then consume them with the articlebot and thus they appear in as threads on my forum.

If you need a hand with the choices available for email2rss gateways, just ask.

Here it is!
buro9, please help me on setting up Google News Alert to work together with the Article Bot. Thank you.

buro9 11-02-2004 12:45 PM

Quote:

Originally Posted by iKwak
Here it is!
buro9, please help me on setting up Google News Alert to work together with the Article Bot. Thank you.

You want to be looking at this:
http://wonko.com/software/mailfeed/

It's what I use with Article Bot to get emails into forums via RSS.

If you don't want to go so far as hacking scripts, then consider mail bucket:
http://www.mailbucket.org/

In both cases you'll need to modify Article Bot slightly to allow any sized RSS description to pass throught (so the email content isn't truncated).

dethfire 11-03-2004 01:26 AM

I can't get this to work, tried it with yahoo and bbc feeds, doesn't seem to get anything, I run the script and the page is blank with the text "ArticleBOT"

erikxxon 11-03-2004 07:52 PM

When i try to Add Article Bot I get this Error message?
What does it mean?

Do i have to create a member on the forum first with this "Bot name"?

ErikXXon
Ill have VB 3.0.3

permabanned.net 11-04-2004 10:45 AM

Quote:

Originally Posted by manguish
Triead manually running articlebot.php - still a blank screen, so i go into manage article bots to see if its changed and my bots have posted!!

The PHP script just updates the database entries, it is not supposed to display anything itself. It's like a "cron job" and not meant to generate any visible output.

permabanned.net 11-04-2004 11:01 AM

I'm using this as a way to incorporate Web links via My Furl from the RSS feed, see example. It could be cool, because then we could also have discussions about the web links if we want.

Is there any way to stop posts from Articlebot from showing up in New Posts? I had another feed set up, but I ended up deleting it because I didn't like all of the items from that feed showing up under New Posts.

Does vBulletin have a mechanism, or is there a hack available, to exclude forum(s) from the New Posts? I'm using separate forums for each feed, so if there was some way I could exclude a forum from the New Posts, that would work.

permabanned.net 11-04-2004 11:18 AM

Quote:

Originally Posted by erikxxon
When i try to Add Article Bot I get this Error message?
What does it mean?

Do i have to create a member on the forum first with this "Bot name"?



ErikXXon
Ill have VB 3.0.3

I had the same problem at first. You need to use the numerical user ID e.g. "12" not the user name when you set it up in Add Article Bot. After you have that set up with the number, it should display the user name

There are probably a dozen different ways to do it, but to find the number, I went to Admin CP -> Users -> Search for Users -> Show All Users and then just let the pointer "hover" over the User link in the left hand column, the last part of the link will say something like "userid=12" where "12" is the numerical user ID in this case.

The question for the user is: Do you want feeds to show up as posts belonging to some user? For the set up with My Furl, it kind of makes sense to have web links that I added show up as from my user, but for many kinds of feeds, it is probably better to set up some bogus user like "Articlebot" and have the posts show up as belonging to that user.

You probably also want to create a New Forum where the articles will go rather than having them posted to another, already existing forum. When you create the forum, you may want to think about whether to "Count Posts Made in this Forum Towards User Post Counts." I decided to leave that "Yes" since people might post replies to some of the articles that show up. However, some people can get ridiculously competetive about post counts :rolleyes: and might complain that it is "unfair" so keep that in mind ;)

permabanned.net 11-04-2004 11:41 AM

Quote:

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

Why don't you just try typing in the path to the PHP script on the command line and see what happens :rolleyes: cron usually uses "sh" or "bash" to process commands in crontab, and those command shells may have no idea what to do with a PHP script, so you may actually have to invoke the PHP executable to process the PHP script :eek:

As someone else said, you could use "wget" (if it's installed on your web server) and point it to the URL instead if you prefer, and that should work just as well. The script has got to be parsed by PHP one way or another, it is not an executable binary, it is just a bunch of PHP commands. The only difference is what way you use to get PHP to process the script.

permabanned.net 11-04-2004 12:03 PM

Quote:

Originally Posted by School-Help
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!

Try this:

tcsh -c "which php"

or

csh -c "which php"

permabanned.net 11-04-2004 12:08 PM

Is it possible to exclude some user from showing up in New Posts? If I could do that, then I could just exclude the Articlebot user from new posts, and that would work too.

permabanned.net 11-04-2004 01:36 PM

I found this mod to the navbar template that's supposed to let you exclude forum(s) from New Posts, going to give it a try...
exclude forum(s) from New Posts

Torqued 11-07-2004 11:36 AM

Just installed. Works great! :)

Torqued 11-07-2004 03:24 PM

Quote:

Originally Posted by permabanned.net
Is it possible to exclude some user from showing up in New Posts? If I could do that, then I could just exclude the Articlebot user from new posts, and that would work too.

Does anyone have a way to exclude article bots from being considered for the "top poster" stats?


also:

Quote:

Originally Posted by dethfire
I can't get this to work, tried it with yahoo and bbc feeds, doesn't seem to get anything, I run the script and the page is blank with the text "ArticleBOT"

If you just installed it, I think you need to wait until there are new articles on your RSS feeds that are after the time you first ran it.

I checked the feeds I was going to use with a desktop RSS reader. My articlebots would not import information from the feeds the first time I ran it, but once new articles were added to the feeds after I ran my Articlebots the first time, the articles would then show up.

(someone please correct me if I am wrong, but that seemed to be the case with my install. If this is the case, it would be a good piece of info to include in the install notes...)

berberber 11-11-2004 12:36 AM

Hi, it is quite cool .... one thing i dont understand is why it does not work with the cron system of VB ? is there a way to do that ?

poolking 11-11-2004 02:54 PM

Quote:

Originally Posted by berberber
Hi, it is quite cool .... one thing i dont understand is why it does not work with the cron system of VB ? is there a way to do that ?

Do you mean a cron job to get new articles from the feed?

Torqued 11-15-2004 12:20 PM

I have encountered an interesting post display order issue...

I have one of my articlebots retrieve 5 articles at a time, when it does that, the posts displayed @ forumdisplay are ordered like this:

http://www.mydomain.com/forums/showthread.php?t=101
http://www.mydomain.com/forums/showthread.php?t=102
http://www.mydomain.com/forums/showthread.php?t=103
http://www.mydomain.com/forums/showthread.php?t=104
http://www.mydomain.com/forums/showthread.php?t=105

The problem with that is that the 5th post down is really the most recent post. This is a little confusing because @ the index.php, the thread "t=105" is shown as the "Last Post", but once the user enters the forum (forumdisplay.php), the thread "t=101" appears to be the most recent/last posted thread.

Any ideas on how to get bot to enter the posts in the correct order?


All times are GMT. The time now is 12:33 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.02387 seconds
  • Memory Usage 1,857KB
  • 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
  • (19)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