The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Article Bot Details »» | |||||||||||||||||||||||||
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. Show Your Support
|
Comments |
#422
|
||||
|
||||
Quote:
In articlebot.php, find: Code:
$DB_site->query(" INSERT INTO ".TABLE_PREFIX."thread (title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, iconid, visible, attach, similar, is_rss) VALUES ('".addslashes($article['title'])."', ".TIMENOW.", $articlebot[forumid], 1, 0, '".addslashes($articlebot['username']) . "', $articlebot[userid], '".addslashes($articlebot['username']) . "', ".TIMENOW.", $articlebot[iconid], 1, 0, '".addslashes($similarthreads)."', 1) "); Code:
$DB_site->query(" INSERT INTO ".TABLE_PREFIX."thread (title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, iconid, visible, attach, similar, is_rss) VALUES ('".addslashes($article['title'])."', ".TIMENOW.", $articlebot[forumid], 1, 0, '".addslashes($articlebot['username']) . "', $articlebot[userid], '".addslashes($articlebot['username']) . "', ".TIMENOW.", $articlebot[iconid], 0, 0, '".addslashes($similarthreads)."', 1) "); Also, after: Code:
/* +---------------------------------+ | Query: update thread | +---------------------------------+ */ $DB_site->query(" UPDATE ".TABLE_PREFIX."thread SET firstpostid = $post_id WHERE threadid = $thread_id "); Code:
$p = $DB_site->query_first("SELECT firstpostid from ".TABLE_PREFIX."thread where threadid = $thread_id"); $DB_site->query(" INSERT INTO ".TABLE_PREFIX."moderation (threadid, postid, type) VALUES ($thread_id, $p[firstpostid], \"thread\")"); Let's hope that VeloCD can now use this in the future so that we can specify which bots get moderated and which ones do not... |
#423
|
|||
|
|||
Since there is no support for the "There is no file located" error...how do I go about uninstalling this hack? (Specifically, the database changes)
|
#424
|
|||
|
|||
Quote:
One other thing, after a server out time of a few hours, many articles were indexed a second time. (it is quite rare too, but perhaps that could be improved ?) Thanks you for the hack. |
#425
|
|||
|
|||
I have installed this hack and am loving it.
I could use some help writing the cron to run articlebot.php. This whole idea is new to me and I dont do that well with this type of stuff to begin with. My database management tool provided by my server is called phpMyAdmin (I believe) and I have downloaded PUttY. I unfortunately have no idea what to do with either of these to set up the cron. Any help (especially examples) would be great! |
#426
|
|||
|
|||
Are you actually running cron jobs to get the feed?
|
#427
|
|||
|
|||
Quote:
Wait wait. I deleted my post because I *just* went back, changed to the use of the phpinclude_end option, and suddenly had incredible PHP errors at the top of the forums, hit refresh and *bing* there was slashdot. That tells me that the cron job isn't doing it's job. Or so I would think. But, the other RSS that I was really after still isn't working ... BUT, I don't think that is a problem of this mod. I think that's a problem of the source. |
#428
|
|||
|
|||
Okay ... this is the error that keeps coming back. Is this the source or the mod?
Code:
Warning: MagpieRSS: Failed to parse RSS file. (not well-formed (invalid token) at line 3579, column 35) in /home/xxx/public_html/xxx/articlebot/rss_fetch.inc on line 230 Warning: array_reverse(): The argument should be an array in /home/xxx/public_html/xxx/articlebot/articlebot.php on line 137 Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/xxx/articlebot/articlebot.php on line 141 Any thoughts? Thanks in advance. |
#429
|
|||
|
|||
Quote:
Thanks, hit me up on AIM: Tendollaz, maybe I can figure it out and try to explain to everyone else... |
#430
|
|||
|
|||
I did manage to get things worked out. Sorta. I finally got the cron job to function properly as well. (I didn't read carefully what I was inputing)
However, the cron job now kicks back the same exact error as the phpinclude_end option did when I tried that way. Code:
Warning: MagpieRSS: Failed to parse RSS file. (not well-formed (invalid token) at line 3657, column 35) in /home/xxx/public_html/xxx/articlebot/rss_fetch.inc on line 230 Warning: array_reverse(): The argument should be an array in /home/xxx/public_html/xxx/articlebot/articlebot.php on line 137 Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/xxx/articlebot/articlebot.php on line 141 (I'm at work and IMs are blocked, but I'd be more than willing to open things up and let you in to check around if you want to drop me an email. Currently the forums are in test mode anyway before we switch the main boards from SMF to vBulletin (a different headache, but oh well).) |
#431
|
|||
|
|||
I am not sure what I am doing wrong but I cant seem to get this to work. I set it all up and it even shows the control panel in my admincp but I cant seem to get this booger to post nothing. I even set up a cron job and still nothing. any possable clue on what i need to do please.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|