![]() |
Article Bot
Article Bot
by velocd Article Bot is a script that allows you to assign a user account (preferably an exclusive one) to an article bot that will post RSS feeds in select forums at designated intervals. These articles are derived from RSS (Really Simple Syndication) feeds. RSS files are assigned to article bots, as well to individual forums, which in turn directs what, when and where your article bot will post. Features
News
Upgrading
Files
RSS Feeds There are several in the install.html, but if you're looking for more than you could ever want, check out NewsIsFree's directory: http://www.newsisfree.com/sources/bycat/ Remember to click install if you use this hack. ;) Also be sure to read through the what you haven't of the thread before asking a question, for it may have been answered. |
Ah yeah, enjoy the modification. ;)
|
This looks great well done and thanks, Does this mean we have to like write articles or can it automatically pull them from another site or something?
|
It pulls articles from RSS feeds. RSS is a xml format primarily used for syndicating news. Many news related sites provide RSS files of their recently posted articles so their readers can use an RSS aggregator (e.g. http://www.sharpreader.net) to read the data.
With PHP's XML libraries, parsing RSS is done very easily. Sample RSS: http://rss.news.yahoo.com/rss/topstories Anyhow, you first create an article bot, by assigning it a user it will control. You add an RSS feed by specifying the path to the RSS file, the article bot it applies to, the forum the thread will be posted in, and an interval (in minutes) that a new thread will be posted. It's preferred that you use a crontab to execute the articlebot.php file, every couple hours or so. The script will work from the bottom of the RSS file (oldest articles) to the top (latest articles). It will post the title of the article as the thread subject, and then the RSS description as the body content. It then tags the URL to the actual full article. I've had it running on my forum for about 2 weeks, and it works quite well. Make the intervals quite large, like every 5 hours, or else you'll have a flood of bot threads on your forum. ;) This of course depends on the RSS feed and how often the news source updates it. Hopefully I didn't make things more convoluted. :rolleyes: |
Nice I like this a lot :)
|
There is another hack just like this one that I installed a month or two ago. :) How is this different to that one? Just wondering.
|
Hm, I didn't know others existed.
Well, it's different in that it's coded by another person. ;) Feature wise, you'll just have to try it out. Article bots can have unlimited RSS feeds assigned to them, and RSS feeds can be in multiple forums. Meaning, 1 article bot can post in many forums. Not sure if the other RSS mods are restricted of this. It's very query efficient also. |
cool
Is there a way to create an RSS feed from your site, for other sites with this hack? (ie: new events on my forum automaticaly get RSS'd to other sites) |
alkatraz - I could be mistaken but I believe thats a default feature of vb3. Check the online manual for it.
|
crazy, just checked the vb3 manual..
thx |
would be good from Erwin to post a link, so we can all compare!
|
Erwin is talking about Slapyo's New Modifies RSS feed hack - there is a search button for just such an occasion ;) :D
|
This is a great hack (y)
|
Ok stupid question, where do you get RSS feeds from? I mean what site will this info be pulled from? I run a F0RD website, where would i find info on stuff like that?
*sorry disregard opened the zip and you have lots of feeds for me :-D |
Silly question time, but would this work on 3.01 as iam not planning on updating yet
|
nice job! *clicks install*
|
Quote:
|
It doesn't seem to like table prefixes. :ermm:
Appears to be line 377 in articlebot_admin.php Replace Code:
FROM user Code:
FROM ".TABLE_PREFIX."user |
How do we find RSS sites :/ Think you could post a list of sites please?
|
It would depend on what you are interested in. If you want gaming, try your favorite fansite and look for their RSS link. If you want world news, head to a news website and find their link.
There are tons of links, hard to just post some that you may or may not like. He already gave examples in the install file. *edit Velocd, how about the option to prefix the titles with something we can use to identify the different feeds. Like a feed from Blues could be [Blues] Morning Q&A's and ShackNews could show as [Shack] Game Reviews. The cron also shows up in the whois online as the base path. |
Great - love RSS!
|
Ford blogs? are they out there?
|
Google is your best bet to find blogs. There are thousands out there, search around. use keywords like Movabletype, Los Angeles Blogs, Xanga.com, Blogger, etc. If you want more traditional sources, find large news sites, like BBC, that provide RSS files.
Quote:
Quote:
I'll take a second look though. ;) Quote:
|
Im having a problem and not sure what it is.
Code:
Warning: chdir(): No such file or directory (errno 2) in /home/drewster/public_html/forums/articlebot/articlebot.php on line 42 Code:
chdir('home/drewster/public_html/forums'); |
I tried this
Code:
chdir('/home/drewster/public_html/forums/'); Code:
Warning: main(home/drewster/public_html/forums/global.php): failed to open stream: No such file or directory in /home/drewster/public_html/forums/articlebot/articlebot.php on line 43 |
Ok, no errors now, but also don't see anything when the php runs... Is that normal?
http://www.insidersportszone.com/for...articlebot.php |
Hmm, something isnt right. Its either not reading the feed I have in there or isnt working altogether. Not sure which.
I have this feed running on other sites, so should work here as well, but isnt. http://xml.newsisfree.com/4/43/4306f...6d8c1dd74c.xml |
Ok, well its working as far as showing a feed on the forums.
Problem now is, it looks like this.. Code:
-------------------------------------------------------------------------------- |
Is there a way to get it to read the html in the RSS feeds?
I have HTML enabled in the forums, but when my Bot posts the HTML in the feeds stil show as <b> and </b> etc... Is there a way to enable it to read the HTML so the bold is bold and etc? |
Quote:
I have not seen any others as of yet that are Ford Specific. I have not been looking too hard, but i have had a look. |
Quote:
I'm thinking I'll probably throw in strip_tags() to remove the HTML tags. Good RSS feeds don't provide HTML anyway, so you might look for others. |
All of ESPN's feeds have HTML, and seeing as Im a sports forum, then I dont have alot of choices to choose from as far as getting the latest up to date feeds in those areas.
Thanks though, I'd love to get those tags either removed or working, either or. Let me know if or when you figure out how to remove or enable them :) I love the addition of the Bot, although he may surpass the world posting records! lol |
Quote:
BTW romeshomey, you should really edit previous posts rather than posting a stream of them. |
Quote:
Im not sure what you are trying to tell me to edit.. |
Just wondering what version of RSS can this hack handle. The other hack can only handle RSS 0.91. Can it parse RSS 2.0, like that of VB3's?
Thanks. |
Quote:
|
I don't see anything on this one, it wont parse anything if nothing is there for it to parse.. You sure the link is right? http://www.mini2.com/news/rss.php
Then this one should work fine. http://www.motoringfile.com/rss.xml Everytime I make an edit in my ACP to add or update a feed for my bot, I have to run the forums/articlebot/articlebot.php manually by loading the page before my feeds will start posting. So try that. But your 1st feed link is completely blank.. It might have something to do with it not being an XML extension. |
Quote:
Suggestion: can this hack handle ATOM in the future? ;) |
Quote:
RSS 0.9x, RSS 2.0, RSS 1.0, and Atom 0.3 Quote:
Your error would probably disappear if you commented the fetch_similar_threads() function call in articlebot.php, like so: PHP Code:
Quote:
Quote:
If you set the interval to 1 minute, then it should proceed automatically. I'm assuming you are using a cron job. Quote:
|
Quote:
I also noticed, it wont post an article unless the article has a 'discription' in it. It wont post just a title and link. If the feed doesnt include discription tags, it seems to skip those articles. Not that I need it too, but just pointing that out. |
All times are GMT. The time now is 04:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|