Modification Name: Anti-Spam I (No Replies Unless Someone Else Has Replied)
Author(s): AllenAyres
Description: This mod keeps someone from replying to their own post unless someone else has replied first - works great for those ADHD users who repeat nonsense all day long.
Demo: none
Requirements: 6.7.2
Download Link: none Credits: Original Version by
Graeme Open ubb_new_reply.cgi and find:
# grab last post
@rev_this_topic = reverse(@this_topic);
@last_post = split (/||/, $rev_this_topic[0]);
$last_post_num = $last_post[1];
$last_post_num++;
add after:
# Stop Spam Replies
if ($username eq $last_post[2]) {
&StandardHTML("You cannot reply to this thread again until someone else does.");
}
Update, thanks to LK
If you still want admins and moderators to be able to reply to their own posts, change the above code to this:
### Stop Spam Replies
@user_profile = &OpenProfile($user_number);
my $is_admin_mod = &boolean_is_admin_or_mod($in{f}, @user_profile);
if ($username eq $last_post[2] && !$is_admin_mod) {
&StandardHTML("You cannot reply to this thread again until someone else does.");
}
###