BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on in reply to: Homepage buddypress activity LOAD MORE button error #21170

    Hi Brajesh,

    No there isn’t.

    So far, we have only restricted the Members Page from everyone except Admin. Is there any conflict?

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on in reply to: Homepage buddypress activity LOAD MORE button error #21140

    Hi Brajesh,

    Thanks so much for your prompt response! Really appreciate it. I’ve done what you instructed and here’s the results:

    “Failed to load resource; the server responded with a status of 404 (not found).”

    Is there a plugin or some code that I can use to fix the problem of the Load More not working?

    Thanks again Brajesh.

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    Thanks again. Looking forward to another great piece of work from you!

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on in reply to: [Resolved] Hiding Members Page from everyone except Admin #21026

    Hi Brajesh,

    The code works like a charm! Really appreciate all those other scenarios which may come in handy as our community progresses.

    Thanks again for your prompt and wonderful response.

    Best regards,
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    Thanks so much for your kind offer!

    Basically, we just want to keep our community clean and safe i.e. no profanity in all postings including in private messages. Hopefully, your plugin can offer a way to input a list of keywords to flag or deny when people are posting bad or swear words.

    We’ve tried putting the keyword list in the Discussions setting but it was too restrictive and people were not able to post even when there was absolutely nothing wrong with the content (i.e no profanity, etc).

    On another note, since our community requires registration and there are explicit community rules (including suspension for infringements), is this sufficient safeguard even WITHOUT any profanity filter? (people can’t post if they are not registered).

    Would really appreciate your invaluable feedback.

    Thanks again

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    This is the correct code and its worked perfectly when placed in themes functions.php:

    /**
    * Exclude Users from BuddyPress Members List by WordPress role.
    *
    * @param array $args args.
    *
    * @return array
    */
    function buddydev_exclude_users_by_role( $args ) {
    // do not exclude in admin.
    if ( is_admin() && ! defined( ‘DOING_AJAX’ ) ) {
    return $args;
    }

    $excluded = isset( $args[‘exclude’] ) ? $args[‘exclude’] : array();

    if ( ! is_array( $excluded ) ) {
    $excluded = explode( ‘,’, $excluded );
    }

    $role = ‘administrator’;// change to the role to be excluded.
    $user_ids = get_users( array( ‘role’ => $role, ‘fields’ => ‘ID’ ) );

    $excluded = array_merge( $excluded, $user_ids );

    $args[‘exclude’] = $excluded;

    return $args;
    }

    add_filter( ‘bp_after_has_members_parse_args’, ‘buddydev_exclude_users_by_role’ );

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on in reply to: [Resolved] Social media profile picture not shown #20501

    Thanks for your reply Brajesh.

    I have posted in the forum but still no reply as it is not very active. Anyway, I received news the developer of my website theme has decided to change the social login plugin in a new update, hopefully soon.

    Cheers!

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    This issue is resolved for my site!

    I’ve placed the code in the child theme functions.php which was wrong. When the code was placed in the main theme’s functions.php, the export data tab is hidden and it works wonderfully.

    Thanks so much for your kind and prompt assistance.

    Warm regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    Just tried placing the code in the theme’s functions.php (child theme) but it doesn’t work as well.

    Is it possible to do this as a plugin?

    I recalled downloading your plugin for changing the username on Buddypress forums and it work wonderfully and speedily (it was also for the same site that we are currently developing).

    Hope that this route using a plugin is possible. Really hope to fix this issue soonest.

    Thanks so much Brajesh for your kind assistance and prompt replies!

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21

    Hi Brajesh,

    I tried exactly as you explained it and it is still not working (i.e. the export data tab is still in the Settings).

    I really don’t know what went wrong….

    If I have to place the code in functions.php of my theme, how do I do it? There’s quite a lot of code there as it is.

    Kindly advise.

    Thanks again.

    Best regards
    Edward