Installed. Very nice.
But.
How can I make it so articlebot's post are NOT immediately posted, but queued for moderation? Is this a small change to an insert query?
Nevermind, I figured it out. Here's what I did.
in articlebot.php
Find:
Code:
/* +---------------------------------+
| Query: insert thread |
+---------------------------------+ */
AFTER it, add:
Code:
// Change to make new threads moderated
$visible = 0;
Find:
Code:
'".addslashes($articlebot['username']) . "', ".TIMENOW.", $articlebot[iconid], 1, 0,
REPLACE with:
Code:
'".addslashes($articlebot['username']) . "', ".TIMENOW.", $articlebot[iconid], $visible, 0,
Find:
Code:
$post_id = $DB_site->insert_id();
AFTER it, add:
Code:
/* +------------------------------------+
| Query: set thread to be moderated |
+------------------------------------+ */
if (!$visible) {
$DB_site->query("
INSERT INTO ".TABLE_PREFIX."moderation
(threadid, postid)
VALUES
($thread_id, $post_id)
");
}
That's it. Set the $visible value to 0 to make the articlebot posts moderated. Set it to 1 for the default behavior. Hope that helps someone. I'm not sure if you need to set the post.visible value or not?
Also, what'd I'd really like is if the bot would actually check the permissions of its user in the forum it is posting to and set whether the post should be moderated or not. Actually, it'd probably just be better if you could toggle the "visible" on and off in the articlebot CP.
"Moderating" feeds this ways allows your moderators to control the flow of the feed. Many articles in a feed will be irrelevant or duplications, this way, there's still a human filter on it when necessary.