Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Activity stream spam (4 posts)

Started 6 months, 3 weeks ago by: ewebber

  • Profile picture of ewebber ewebber said 6 months, 3 weeks ago:

    Hi all,
    I’m having an issue with a human spammer that keeps signing up. They are clearly human spam rather than a bot, so there is only so much I can do about stopping them, but the biggest problem they are causing is replying to activity stream items which sends emails out to the original poster and is making the members nervous!

    I’m not yet on BuddyPress 1.5 so I can’t take advantage of @djpaul ‘s wonderful BP labs/ activity spam plugin. So I am going to take the temporary measure of removing the ability to reply on the activity stream until they leave me alone.

    I’ve taken activity/enty.php from my child theme and commented out the code

    <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    				<a href="<?php bp_activity_comment_link() ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id() ?>"><?php _e( 'Reply', 'buddypress' ) ?> (<span><?php bp_activity_comment_count() ?></span>)</a>
    			<?php endif; ?>

    This removes the reply button from activity, but I cannot see how to remove the reply from the replies (here’s what I mean https://img.skitch.com/20111101-ctd8kkwk5qmhpfwciip1cgigq1.jpg).

    Does anyone know where I can remove that too?

    Thanks

  • Profile picture of Paul Gibbs Paul Gibbs said 6 months, 3 weeks ago:

    It is in bp_activity_recurse_comments() in bp-activity-templatetags.php line 647 ono. (In 1.5 we moved it out to a theme template, where it belongs).

  • Profile picture of ewebber ewebber said 6 months, 3 weeks ago:

    Cheers @djpaul :-)

  • Profile picture of trebilvabchip trebilvabchip said 5 months, 3 weeks ago:

    Every English poet should master the rules of grammar before he attempts to bend or break them