Hello.
I am using Olaf Lederer's plugin, to moderate only the first post made by an user. The plugin can be found here.
I think that this is the section of the plugin that does the job:
function mod_notification_new_post() {
global $bbdb, $topic_id, $bb_current_user;
$all_moderators = notification_select_all_mods();
if(!is_moderator($bb_current_user->ID)) {
$sql = "
SELECT COUNT(*)
FROM $bbdb->posts
WHERE poster_id = $bb_current_user->ID AND post_status = 0
";
$userpostcount = intval($bbdb->get_var($sql));
if($userpostcount <= POST_NUMBER_MODERATION) {
$sql2 = "
UPDATE $bbdb->posts
SET post_status = 2
WHERE poster_id = $bb_current_user->ID
";
$markedasspam = $bbdb->get_results($sql2);
}
}
But is not working for me. Instead of allowing the user that has had his first post approved to post un-moderated, the admin email get notified for every post.
Any help much appreciated.
Regards,
Bob