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)

weaver 08-04-2004 07:12 PM

PHP - 4.3.8 (That's what I got from the Admin Panel with VB).

These are a few of the links I've tried... I also tried without the http:// but that didn't work either.

http://rss.news.yahoo.com/rss/entertainment

http://csmonitor.com/rss/top.rss

http://www.infoworld.com/rss/columnists.xml

KW802 08-04-2004 08:46 PM

Velocd,

Would there be an easy way of adding a conditional to the logic so that if I search for the article and found a particular text value that I could over-ride the forum number and icon number that it's going to use?

Where I'm going with this is the scenario of having multiple RSS feeds but I would want one particular subject matter, no matter from which feed it came from, to always end up in the same forum.

Thoughts? :D

Maikeru 08-04-2004 10:48 PM

Quote:

Warning: MagpieRSS: Failed to fetch http://rss.news.yahoo.com/rss/music. (HTTP Error: connection failed () in /home/maikeru/public_html/forums/articlebot/rss_fetch.inc on line 230

Warning: array_reverse(): The argument should be an array in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 136

Warning: Invalid argument supplied for foreach() in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 140

Warning: MagpieRSS: Failed to fetch http://rss.news.yahoo.com/rss/tech. (HTTP Error: connection failed () in /home/maikeru/public_html/forums/articlebot/rss_fetch.inc on line 230

Warning: array_reverse(): The argument should be an array in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 136

Warning: Invalid argument supplied for foreach() in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 140
This started appearing on the top of my forum a couple days ago... :\

Anything I can do to fix it?

Oh and none of my yahoo feeds will work, so I'm guessing that's why.

Kwak 08-05-2004 04:10 AM

NEW Modified RSS News Feed Hack - https://vborg.vbsupport.ru/showthrea...&highlight=rss


What is the difference of the above hack and this Article Bot hack? I'm new in the RSS feed.

KW802 08-05-2004 12:25 PM

Quote:

Originally Posted by iKwak
NEW Modified RSS News Feed Hack - https://vborg.vbsupport.ru/showthrea...&highlight=rss

What is the difference of the above hack and this Article Bot hack? I'm new in the RSS feed.

Same end results, just different ways of achieving it.

weaver 08-05-2004 03:17 PM

Well I found out that it is something my server is restricting that is causing it not to work. :( Thanks for trying to help though.

Velocd 08-06-2004 03:42 AM

Quote:

Originally Posted by KW802
Velocd,

Would there be an easy way of adding a conditional to the logic so that if I search for the article and found a particular text value that I could over-ride the forum number and icon number that it's going to use?

Where I'm going with this is the scenario of having multiple RSS feeds but I would want one particular subject matter, no matter from which feed it came from, to always end up in the same forum.

Thoughts? :D

Hmm. :\

My best recommendation is to use specific RSS feeds. e.g. If you have a general forum and a Yahoo! Latest News feed inside it, it's going to get content of all types.. that perhaps you have other specific forums for. Use more specific RSS feeds.

Doing conditionals would be rather rough, and I don't really have the time to experiment with it. :\

Quote:

Originally Posted by maikeru
This started appearing on the top of my forum a couple days ago... :\

Anything I can do to fix it?

Oh and none of my yahoo feeds will work, so I'm guessing that's why.

Maikeru, what version is your PHP? Maybe you have the same problem as snobbymom, and it's a server-related issue.

KW802 08-06-2004 05:01 AM

Quote:

Originally Posted by Velocd
Hmm. :\

My best recommendation is to use specific RSS feeds. e.g. If you have a general forum and a Yahoo! Latest News feed inside it, it's going to get content of all types.. that perhaps you have other specific forums for. Use more specific RSS feeds.

Doing conditionals would be rather rough, and I don't really have the time to experiment with it. :\

No problem. I wasn't thinking anything fancy, maybe just some hard-coded conditionals before the inserts that if "X" is found in article[title] or article[description] then to over-ride the value of articlebot[forumid] & articlebot[iconid]. It'd be ugly, but useful.

fonzerelli_79 08-06-2004 12:27 PM

Quote:

Originally Posted by snobbymom
Well I found out that it is something my server is restricting that is causing it not to work. :( Thanks for trying to help though.

do you know what the problem is

i cant get this working (tried various feeds) - i run my own server but im not sure of anything that would conflict with the blogs

fonzerelli_79 08-06-2004 12:33 PM

this is strange - i tried a test feed and it kind of worked - several articles pulled through but they all had no content

im still congused as to why the other feeds arent pulling through as there has been updates to them

Maikeru 08-06-2004 03:36 PM

Quote:

Originally Posted by Velocd
Maikeru, what version is your PHP? Maybe you have the same problem as snobbymom, and it's a server-related issue.

My version of PHP is 4.3.8.

KW802 08-09-2004 04:59 PM

Velocd, is the "RSS Label" value available as a variable name to use in the template? I'd like to have that value appear in my template so I'm hoping that there's a variable name for it. :D

Velocd 08-09-2004 06:50 PM

Yeah, it should be accessible by the variable $articlebot[label], which pertains to each RSS feed.

I found an awesome RSS feed directory on the web, whom also have a cool RSS news aggregator application in .NET.

http://www.newsisfree.com/sources/bycat/

Cool beans.

KW802 08-09-2004 07:15 PM

Quote:

Originally Posted by Velocd
Yeah, it should be accessible by the variable $articlebot[label], which pertains to each RSS feed.

I found an awesome RSS feed directory on the web, whom also have a cool RSS news aggregator application in .NET.

http://www.newsisfree.com/sources/bycat/

Cool beans.

To borrow a phrase from the 80's...... Most excellent! :D

FirstStepBlake 08-09-2004 08:26 PM

Great hack, working well. However the posts added by AB don't trip whatever gets tripped to send out an email to the forum members... Any way around this?

Thanks,
Blake

Velocd 08-09-2004 11:28 PM

What do you mean by trip?

egn 08-10-2004 04:54 AM

I still get..

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

Fatal error: main(): Failed opening required '/admincp/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mgunnin/public_html/forums/admincp/articlebot/articlebot.php on line 43

I am not sure what to do to fix this, did everything step by step and check 100 times. I know it is something simple that I am just overlooking.

chdir('/home/mgunnin/public_html/forums/');
require_once './global.php';
include_once './articlebot/rss_fetch.inc';

Is that correct?

Velocd 08-10-2004 06:32 PM

The articlebot directory was not meant to go inside the admincp folder (according to install.html)

Still, if you're using chdir() it should relocate. The path seems to be referencing to /admincp/global.php though.

Are you sure the following line is correct?

Code:

chdir('/home/mgunnin/public_html/forums/');
The include_once certainly will give errors for your articlebot directory is in the admincp dir.

So change:

Code:

include_once './articlebot/rss_fetch.inc';
To:

Code:

include_once './admincp/articlebot/rss_fetch.inc';

FirstStepBlake 08-11-2004 07:01 PM

by trip, I mean that what I have here:

Email Addresses to Notify When there is a New Post
(Separate each address with a SPACE)

doesn't seem to be used when AB posts. Threrefore the people I want to see the new post aren't getting the normal email. They have to happen upon it, which isn't timely.

Thanks!

KW802 08-11-2004 07:19 PM

Quote:

Originally Posted by FirstStepBlake
by trip, I mean that what I have here:

Email Addresses to Notify When there is a New Post
(Separate each address with a SPACE)

doesn't seem to be used when AB posts. Threrefore the people I want to see the new post aren't getting the normal email. They have to happen upon it, which isn't timely.

Thanks!

Pardon my curiousity but..... what kind of RSS feed are you receiving that your users would want to get an email every time there is a new item received? Seems like an overkill to have site XYZ.com send an email every time there is a new item at ABC.com.

FirstStepBlake 08-11-2004 09:26 PM

Long story short on why, KW802: When I find an article of interest, I post it (quickly via FeedDemon) to my personal weblog. This is the RSS feed pulled by the bot to our internal vBulletin setup... I could log into the forum and post, but this is a quicker way. I only post a few items per day at most, so the volume isn't much.

roundhost 08-15-2004 06:32 PM

Wonderful, im about to install it, thanks a bunch :)

roundhost 08-15-2004 08:52 PM

Hmm, its all setup fine but the bots arent posting my feeds, i have set them to post every minute and have the cron executing every minute so im going to see if i can fix it and once i have them post once i will know its fixed :S

roundhost 08-15-2004 09:06 PM

ok its not working for me :( The bots just dont post, i use yahoo feeds and i have the cron set for every minute and i have the articles set for every minute but they just dont post....what can i do?

roundhost 08-16-2004 04:47 AM

Quote:

Originally Posted by roundhost
ok its not working for me :( The bots just dont post, i use yahoo feeds and i have the cron set for every minute and i have the articles set for every minute but they just dont post....what can i do?

Still not posting for me...:cry:

Velocd 08-17-2004 05:11 AM

Go to the file articlebot.php in your browser, and see if it gives you any error.

Additionally, what is your PHP version?

roundhost 08-17-2004 07:21 AM

Quote:

Originally Posted by Velocd
Go to the file articlebot.php in your browser, and see if it gives you any error.

Additionally, what is your PHP version?

PHP Version 4.3.8

articlebot.php returns a blank page...

*sighs*

roundhost 08-17-2004 07:24 AM

Two articles have posted :-o, hmm thats interesting. Maybe its randomly decided to work now...i shall get back to you if i get any more problems, thanks for the help anyways :)

FirstStepBlake 08-17-2004 01:36 PM

Hey, can you give me an answer on this on way or another? I need the email to go out on a new post. If you can't make it work, please let me know. Thanks!

Velocd 08-17-2004 01:43 PM

You certain you have the cron configured correctly? (something like /usr/local/bin/php /home/myfolder/public_html/forums/articlebot/articlebot.php). This is a cron tab, and not the vBulletin task system, eh?

Even so, running articlebot.php manually should get the bots going.

Not that this should matter, but your vBulletin version is?

Megareus Rex 08-18-2004 08:01 PM

Whenever I try to add a RSS feed to an article bot, I get this error:

Error: There is no file located at http://www.nytimes.com/services/xml/...Technology.xml

This happens with any and all RSS feeds from any site. What could the problem be?

croft 08-18-2004 08:58 PM

ok lol i must be stupid or something cause every time i try to add a news feed to a bot i get this error.

Quote:

Error: There is no icon of ID 1.

Megareus Rex 08-18-2004 11:17 PM

That means that you have no Post Icon with an ID of 1. Go to Post Icons, and select which Icon you want all posts by the bot to make, and then check out its ID number, and put that in the field.

But, I still need MY question answered =/

roundhost 08-18-2004 11:50 PM

my article bots havent posted since the first time :( , i set the cron perfectly and i also tried manually without results, ver 3.0.3

Maikeru 08-19-2004 11:56 PM

Quote:

Warning: MagpieRSS: Failed to fetch http://rss.news.yahoo.com/rss/music. (HTTP Error: connection failed () in /home/maikeru/public_html/forums/articlebot/rss_fetch.inc on line 230

Warning: array_reverse(): The argument should be an array in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 136

Warning: Invalid argument supplied for foreach() in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 140

Warning: MagpieRSS: Failed to fetch http://rss.news.yahoo.com/rss/tech. (HTTP Error: connection failed () in /home/maikeru/public_html/forums/articlebot/rss_fetch.inc on line 230

Warning: array_reverse(): The argument should be an array in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 136

Warning: Invalid argument supplied for foreach() in /home/maikeru/public_html/forums/articlebot/articlebot.php on line 140
Would this stop if I used something for my feeds other than yahoo?

Megareus Rex 08-20-2004 06:52 PM

Would someone please answer my question?

sully02 08-21-2004 12:02 AM

I appear to be having the following problems. It worked just fine the first time through, but now, here are the results:

Quote:

Warning: Warning: MagpieRSS: Failed to parse RSS file. (junk after document element at line 233, column 16) in /home/sportsd/public_html/forums/articlebot/rss_fetch.inc on line 230

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

Warning: Invalid argument supplied for foreach() in /home/sportsd/public_html/forums/articlebot/articlebot.php on line 141
This error repeats several times throughout (Likely once for each rss source I have). I've attached my articlebot.php file, if it'll help.

Coyote75 08-22-2004 05:50 AM

I know someone else had this problem but didnt see what the solution was

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

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

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/hardcore/public_html/articlebot/articlebot.php on line 43

Wential 08-22-2004 03:24 PM

Installed and very impressed!

Geographic2 08-22-2004 06:24 PM

When I run my articlebot it made posts with no title and no description, only the link would be within the post...

I tracked it down to determin the problem and the entire pregreplace section doesn't seem to be working right with me... perhaps it's my regular expressions retardedness or perhaps it's something else...


When I comment out this section and the corresponding one for the title it works fine and posts titles and descriptions... Otherwise it turns the article[title] and article[description] strings into empty strings.... :(

PHP Code:

/*                if ($articlebot['global_regex_desc_search'] || $articlebot['regex_desc_search'])
                {
                    if ($articlebot['regex_desc_search'])
                    {
                        $articlebot['global_regex_desc_search']   = $articlebot['regex_desc_search'];
                        $articlebot['global_regex_desc_replace']  = $articlebot['regex_desc_replace'];
                    }

                    $article['description'] = @preg_replace(
                        "$articlebot[global_regex_desc_search]",
                        "$articlebot[global_regex_desc_replace]",
                        $article['description']
                    );
                }
*/ 

I've also tried leaving the reg ex's blank as well as using search: * and replace $1


Could anyone give me some ideas?
Could you also tell me why we call the preg_replace function with:
@preg_replace(...)?

Also, very nice hack. An idea for future implementation would be to search the RSS feeds for keywords... each feed having it's own set of keywords or a global keyword much like you have the pregreplace. so if you were interested in news about pumpkins, or video games, or bottlecaps you could then only post news about bottlecaps, videogames or pumpkins... ;) I may do myself but I figured you might like the idea.

Alternatly we could all create an RSS feed from our forums with entries being threads that match our keywords, links in the posts would be displayed with our keyword linked, an XML feed with participating sites could be hosted somewhere and we could all deploy some nice keyword linking out across the net...

Thanks.


All times are GMT. The time now is 04:17 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.01932 seconds
  • Memory Usage 1,848KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (14)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