Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'spam'

Viewing 25 results - 1 through 25 (of 2,991 total)
  • Author
    Search Results
  • #244032
    Profile photo of djsteveb
    djsteveb
    Participant

    @projectslimited – yeah, welcome to the club! I had one bp site with registration turned off for 18 months.. turned it on to test some thing – hours later – dozens of new “groups” and spam accounts.

    My main site I depend on buddypress humanity as main line of defense.. but also add the plugin “good question” (changing the defaults on these two!)

    I also use “geo ip block” on all wp sites now. (changing some defaults)

    that seems to help 95% – then I got so tired of the manual spammers that I added the apache gep redirect thing from maxmind lite.. and block all visits from Russia, China, Ukraine, and a few others completely.

    Saves a ton of bandwidth and server resources – and makes it easier to find the cdir blocks of US and UK ISPs to block via htaccess (none of my web site visitors are using COLO Crossing Transport to visit my site- so all their cidrs eg:
    23.94.144.0/20
    23.94.144.0 – 23.94.159.255

    blocked…

    I have been messaging with a wordpress plugin author about modding his plugin that pulls info from failed logins and puts them into iptables – suggesting a few mods that can make that info useful to those of us who do not have access to or want to get into iptables modsec stuff – hopefully those suggestions will come into a new version of that plugin later this year.

    with my multi-site setup I use a ‘new blog defaults’ plugin to set any new blogs created to automaticcaly have the noindex setting in wordpress, and noinded nofollow settings from yaost.. so even if one manual spammer gets in and makes blog – it does no good, and does not show up on the radar of the other spammers.

    I recently had to block Japan entirely as I started getting daily spam hits from there.. of course each person’s setup will vary – I can’t block all countries on all my sites, so some sites I set the ip geo block to whitelist just one or two.. on other sites I setup a blacklist to block 20 or so..

    #244001
    Profile photo of Jason West
    Jason West
    Participant

    Hi,

    Ever since installing Buddypress, we seemingly have an influx of visitors which just continually visit the site. This increases server load and slows down the server considerably. We have blocked out some of the main troublesome IP’s, but it seems to be a relentless flow of spambot traffic. We did have over 6000 rogue registrations, which have now been removed and stopped by using the Buddypress Humanity plugin!

    I have also used Wordfence in order to track these “visits” and on the screenshot below you can see the kind of thing we are up against.

    Wordfence

    Can anyone recommend a decent way to block these out.

    Please note I am not blocking the troublesome IP’s at WordPress/Wordfence level however am using CSF on our WHM in order to add the IP’s to the IP tables block. We do want to have many of these sites on our server, which is a very high powered VPS, but at the moment we are unsure whether it is even worth continuing.

    I have done a search for this issue both on this forum and on Google and haven’t yet found a trusted way of getting rid of them.

    Any help would be appreciated!

    Buddypress: 2.3.3
    Wordpress: 4.3
    Theme: Snaptube

    Thanks!

    #243894
    Profile photo of DevynCJohnson
    DevynCJohnson
    Participant

    I shared some ideas and suggestions of mine for BBPress on BBPress’s forum. I would like to do the same here for BuddyPress.

    As I said at BBPress, I am the owner and admin of http://dcjtech.info/ and I love computer programming. Not only do I love programming, but I love to help other developers. I would like to contribute to BuddyPress by offering some suggestions and ideas.

    Please keep in mind that these are just my ideas; I understand that the BuddyPress team has ideas, needs, and concerns of their own that they must address. In addition, even though I learned a lot about the WordPress, BBPress, and BuddyPress framework and inner workings, I admit that there are some parts that I may have over-looked or mis-understood. In summary, I am trying to help make BuddyPress better and more powerful based on what I know, and I want to contribute my ideas as a thanks to all the developers that have spent time and effort making BuddyPress what it is today.

    My ideas –

    1. BuddyPress needs more options and configurable items – the more customizable, the better. Obviously, some developers are concerned about confusing or overwhelming users, so make a special admin page for “advanced” or “miscellaneous” options. Some additional options I think are needed or helpful include disable/enable feeds, disable the activity features while keeping “@” mentions (the activity profile pages attract spam), and fine-tuned settings for various features (like limiting what is shown in the activity streams, limits on messaging and activity stream age and size, etc.).

    2. Export/Import BuddyPress settings – Correct me if I am wrong, but I do not think BBPress has an easy way to export/save settings to be imported to use as a backup or transfer/share settings.

    3. Add a “clear/clean database” option – provide an easy way to selectively perform these various actions. (A) Remove “Manage Sign-up” users (my spam users never get past this, so some sign-ups may be weeks old or more). (B) Remove and delete all “friendships” from the SQL database if “friendships” is disabled (apply a similar feature for private messages and others). (C) Allow the option to delete the SQL tables of disabled BuddyPress modules and re-create them when enabled.

    4. 100% HTML5 Compliant – I have not studied BuddyPress in this perspective or tested anything concerning this idea, so it is possible that I may be very wrong or the developers have a plan already. However, use of HTML5 (or the option to do so) would be helpful.

    Here is an exact copy-paste of idea #12 that I posted on BBPress. I am including it here just in-case this is an idea that should be given to BuddyPress rather than BBPress.

    12. Implement a built-in avatar system (perhaps BuddyPress or WordPress should use this rather than BBPress) – This would allow local avatars and provide a way for Gravatar to be disabled or used as a secondary. True, BuddyPress provides a way to upload avatars, and “Basic User Avatars” and “Simple Local Avatars” are plugins offering that feature. However, after upgrading my theme to HTML5 and removing Flash from my browser, I can no longer upload avatars using any of the three mentioned possibilities (backend or frontend). However, I can still upload media via the backend (w/o Flash) and via the frontend (with Flash). NOTE: I do list “plupload.full.min.js” and other similar scripts in Autoptimze “Exclude list”

    If you see any features on my website that you want to implement in BuddyPress, feel free to let me know and then I can give you the code and tell you how I did it. Also, I use my own style sheets for BBPress, BuddyPress, and some plugins. I have been able to increase performance and decrease size by using a CSS minifier (http://csscompressor.com/) and implementing ideas from errors given by a CSS checker (http://csslint.net/). I saw significant improvements even before I changed the style sheets to specifically suit my website.

    By the way, making BuddyPress templates that can be placed in the regular WordPress theme was a great idea and feature for BuddyPress; smart thinking BuddyPress developers.

    #243816
    Profile photo of SJS719
    SJS719
    Participant

    For example, I have tried the following code and tried to call it onClick but it either doesn’t register or throws an error:

    function add_featured_activity(){
    
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $button_action = "<a href='".site_url()."/members/".$user_info->user_login."'></a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $button_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'component'         => 'profile',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $user_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the members's last activity
    update_last_activity( $user_id );
    
    return true;
    }  
    add_action('bp_activity_add', 'add_featured_activity' );
    #243707
    Profile photo of bfchris2
    bfchris2
    Participant

    @danbp:

    I have the buttons displaying fine in entry.php..thanks for that info however.
    To answer your questions milestones and momentum buttons really only need to act like the “spam” button, which when clicked, writes a “1” to the is_spam row in bp_activity table. So, I’ve created is_momentum and is_milestone rows in my db, and just need the logic on how I can get those buttons we have created to act like the “spam” button EXCEPT writing to a new row in table. ANd how to name the “php bp_activity_unfavorite_link” part of the button. That’s all.

    Hope that’s more clear now.

    Chris

    #243695
    Profile photo of bfchris2
    bfchris2
    Participant

    Here’s what I have done so far:

    /activity/entry.php

    <!-- BEGIN Custom Commenting Buttons -->
    
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    
    <!-- END Custom Commenting Buttons -->

    (Just grabbed the button code for “unfavorite/favorite”, so I could have placeholders for my 2 custom buttons)

    /bp-custom.php
    (code taken from bp-activity-functions.php, well the is_spam piece).

    
    // Mark each as milestone
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as milestone
    		bp_activity_mark_as_milestone( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as milestone
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_milestone = 1 WHERE user_id = %d", $user_id ) );
    	
    		// Mark each as momentum point
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as momentum point
    		bp_activity_mark_as_momentum( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as momentum point
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_momentum_point = 1 WHERE user_id = %d", $user_id ) );
    

    Hope this helps make sense of things somewhat.

    Chris

    #243676
    Profile photo of bfchris2
    bfchris2
    Participant

    @danbp:

    Here’s what I have done so far:

    /activity/entry.php

    <!-- BEGIN Custom Commenting Buttons -->
    
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    
    <!-- END Custom Commenting Buttons -->

    (Just grabbed the button code for “unfavorite/favorite”, so I could have placeholders for my 2 custom buttons)

    /bp-custom.php
    (code taken from bp-activity-functions.php, well the is_spam piece).

    
    // Mark each as milestone
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as milestone
    		bp_activity_mark_as_milestone( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as milestone
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_milestone = 1 WHERE user_id = %d", $user_id ) );
    	
    		// Mark each as momentum point
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as momentum point
    		bp_activity_mark_as_momentum( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as momentum point
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_momentum_point = 1 WHERE user_id = %d", $user_id ) );
    

    Hope this helps make sense of things somewhat.

    Chris

    #243646
    Profile photo of bfchris2
    bfchris2
    Participant

    @henrywright…javascript *is enabled yes.
    What I’m wanting to do, is duplicate those buttons with a new function close to how is_spam functions where it writes a “1” to a row in a db table. I can add the buttons in /activity/entry.php etc..but just need to know how exactly/where to copy the is_spam functionality and where to add to fire off a “replica”. if that makes sense.

    #243645
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    So, is that how the spam or favorite/un favorite buttons work?

    Maybe. It will depend if you have JavaScript enabled in your browser. If you do, then Ajax will be working. If you don’t, it’s likely the traditional POST or GET methods will be in operation.

    #243638
    Profile photo of bfchris2
    bfchris2
    Participant

    So, is that how the spam or favorite/un favorite buttons work?

    And how about the functions?

    Chris

    #243607
    Profile photo of lfeddern
    lfeddern
    Participant

    am trying to add a domain whitelist to the buddypress registration.

    all of the email address that will sign up to on my site will have the domain form @XX.yo.ac.uk with the XX varying in character length and number characters themselves.

    I basically would like to strip the domain of the entered email address down to the last 9 characters and then compare them to (.yo.ac.uk) and return an error message if not identical, if not then allow the registration to continue.

    I found this code:

    // ====================================
    // Limit signup by banning domains
    function bp_as_restrict_signup_domains( $result ) {
    
     $banned = array(
     'spam1.com',
     'spam2.com'
     );
     $error = 'Your email domain has been the source of spam. Please use another email address.';
    
     $email = $result['user_email'];
     $domain = array_pop(explode('@', $email));
    if ( in_array($domain, $banned))
     {
     $result['errors']->add('user_email', __($error, 'bp-restrict-email-domains' ) );
     };
     return $result;
    }
    add_filter( 'bp_core_validate_user_signup', 'bp_as_restrict_signup_domains' );

    here: http://alexschreyer.net/programming/limit-buddypress-registration-by-domain/

    But this is to block certain domains rather than allow. Any ideas how to change it? and to strip out the characters before the last 9?

    Thanks for any help!

    Profile photo of bfchris2
    bfchris2
    Participant

    Hello:

    Trying to insert a new function that uses the “favorite” button in Users Activity Stream.
    Instead of “favoriting”, I’d like it to basically mimic the spam button, but instead of writing to the is_spam row in the activity table, I’d like it to write to a new row I’ve created. Same functions, etc.

    How can I rename and revamp the favorite button function to do this?

    Thanks in advance for any assistance.

    Chris

    #243562
    Profile photo of XrossGG
    XrossGG
    Participant

    Does anyone know a solution for online spam and unwanted links, pictures etc?

    On Facebook you can report people and posts, I want that for my BP community as well. Any suggestions?

    #243538
    Profile photo of coffeywebdev
    coffeywebdev
    Participant

    Take a look at this code, I think it may be helpful for you…

    I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)

    It’s all about what you set for the $args array….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243537
    Profile photo of coffeywebdev
    coffeywebdev
    Participant

    Take a look at the code below to see how I use the post_comment action to hook my function vp_add_group_activity_comments(), which creates an activity stream item when a user posts a comment and adds it to their group’s activity stream… This is just what we are doing for our site, but if you look at the code you should be able to figure out how to do it for your site….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243477
    Profile photo of djsteveb
    djsteveb
    Participant

    @atfpodcast – quick chat is working 24/7 on my busiest bp site with 11,000 members.. only thing that screws up that page is when rtmedia has an update the screws with permalinks (messes up all of my static “pages” – have to change and resave.. but that is an issue with rtmedia and permalinks – nothing to do with quickchat.. it works fine and I deploy it on different sites in different ways. I did some write up about it on one of the comment threads I originally linked to in the first response to the original post I think..

    anyhow, I think quickchat is the perfect text-chat plugin for a small web site that does not hammer the chat system with hundreds of simultaneous users.

    It does chat, avatars, bad words filter, admin can delete stuff – it’s quite the package – I wish the original dev would of answered my emails offering some paid enhancements.. but it’s fine as it is. I did a long write up on one site talking about the drawbacks of ANY chat system that hooks into sql – but I doubt most people will run into those issues until they get more than 20 or so same-time chatters – that’s when you start to look at things to limit sql requests to keep your server from choking – which is usually more of an issue with robots and scrapers and brute force login stuff – comment spam – all that.. guess that’s more of a slightly different discussion – lol.

    #243410
    Profile photo of DJ9
    DJ9
    Participant

    Yes buddypress is on both pages, I control both pages through 1 cpanel, and yes I can activate 1 at a time, the bulk is what is not working. I always have had pending since I started my page and the bulk activate use to work just fine. I have separate plugin ins to catch spammers and spam. I only use the settings buddypress comes with, no mods at all.

    #243407
    Profile photo of danbp
    danbp
    Moderator

    Have you installed both site on a same or separate WordPress, and same question about BuddyPress ?

    Another question about 3500 pending request.

    Are you sure these aren’t spammers ? Why are they pending ? Have you setup this behave or is it a sudden amount of registerer ?

    Can you activate one account at time ? Or is only bulk activation defect ?

    Profile photo of Quinn Goldwin
    Quinn Goldwin
    Participant

    Hello Buddypress community!

    1. I had signed up for a social network and after signing up, the CEO posted something to my wall. I thought it was a great personal touch, letting the users know who he is and if they had questions to reach out to him. Now I know he didn’t personally post that on my wall, it had to be a scheduled or auto post for new users. Is there a plugin out there or some code I can add to have the ability to do something similar?

    2. I also have a another related feature that I would like. Does anyone know if there is a plugin that allows buddypress users to schedule content to the activity feed. I understand it could be abused with spammers but its more for an APP i’m developing. I would like the ability to create an activity post and tell the system to post this weekly or monthly. IE. Every Monday I would like this particular post to be shared on the activity stream. or 1 once a month I would like to share this on my activity feed.

    If anyone can direct me to a plugin or resources on being able to accomplish these 2 things, I’d greatly appreciate it.

    If no one has a solution, does anyone know good places I can hire PHP coders online or overseas to get this accomplished for a somewhat affordable rate? I tried this site called codeable, but they charge $75 an hour for custom coding. If anyone has a site or place to share that is far more affordable I would greatly appreciate it.

    Thanks!

    #243178
    Profile photo of dngerdave
    dngerdave
    Participant

    Registration emails are not being sent to the users. I have checked and no one is getting them in their spam folder.

    #242952
    Profile photo of Hugo Ashmore
    Hugo Ashmore
    Moderator

    @bobbingwide Existing user accounts should have edit capability, it was only newer accounts where we needed to manage the spam activity, so if you could try editing a page and let us know if you are having issues.

    #242915
    Profile photo of umar007
    umar007
    Participant

    If moderators could mark members as spam on front-end, it is also acceptable.

    But Moderator (test user) with list_user capability can’t see this option on front-end.

    If he clicks on settings, there should be a link Capabilities on user profile. But there is no Capabilities link.

    #242914
    Profile photo of shanebp
    shanebp
    Moderator

    >If moderator could mark a member as spam only via dashboard, i am ok with it.

    Due to the current_user_can check, afaik it is not possible via dashboard unless you hack core files.

    #242913
    Profile photo of umar007
    umar007
    Participant

    Members can also be marked as spammers via the front-end.

    Moderator (test user) with list_user capability can see spam option on Back-end/dashboard but he can’t see this option on front-end.

    As an admin i can mark a member as spam on front-end also.

    If moderator could mark a member as spam only via dashboard, i am ok with it.

    I am not a coder. Can you help me? How to edit it to achieve desired results? Is there a code that i can add in functions.php?

    I want this for 2 /users/moderators.

    #242912
    Profile photo of shanebp
    shanebp
    Moderator

    >I think spam and extended features have been added by buddypress therefore i am asking here.
    Sorry, my mistake.

    Before adding the ‘spam’ link BP checks to see if
    current_user_can( 'edit_user', $user_id )

    Members can also be marked as spammers via the front-end.
    Take a look at :
    \bp-templates\bp-legacy\buddypress\members\single\settings.php
    You might be able to adjust it to check for a cap of your choice.

Viewing 25 results - 1 through 25 (of 2,991 total)
Skip to toolbar