Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Public message on profiles

  • @werny

    Participant

    Hi there,

    how can I deactivate the “Public message” button on all profile pages?
    I think those 2 buttons are too confusing for the users.
    The “Private message” button is more then enough, I think

Viewing 7 replies - 1 through 7 (of 7 total)
  • @anonymized-18187419

    Inactive

    Put in your functions.php , or use Code Snippets plugin to add it.

    
    add_filter( 'bp_get_send_public_message_button', '__return_empty_array' );
    

    @werny

    Participant

    Great!
    Thanks, mate!

    @mike80222

    Participant

    Thanks @michaelabf, I’ve started using this too. Do you happen to know if there’s a similar way to get rid of the “What’s New” line on the user Profile->Activity?

    @anonymized-18187419

    Inactive

    Hi Mike Witt,

    A little bit more involved ….

    Where to change BP Text for activity update

    @mike80222

    Participant

    I’m using Legacy, so that link tells me to override activity/post-form.php. But that whole file just creates that one form, right? So it seems like I should be overriding the thing that *includes* that form. I don’t see it in activity/index.php, but maybe I simply don’t know how to recognize it?

    Any thoughts on this? Sorry for me level of ignorance here 🙂

    @anonymized-18187419

    Inactive

    Sorry can’t help with that.
    I’m using Nouveau so the snippet alone was enough.

    Raise the issue with Brajesh at Buddydev, he will certainly assist you.

    @mike80222

    Participant

    For what it’s worth, I’ve overridden buddypress/activity/post-form.php and basically deleted all the content from that. This *appears* to work on my test site, removing the What’s New field from both the user’s profile and their “group” page.

    
    <?php
    /**
     * BuddyPress - Activity Post Form
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     * @version 3.0.0
     *
     */
    
    ?>
    

    I’m a little unsure if I should actually have that closing ?>, but it appear to work that way.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.