Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Public message on profiles


  • werny
    Participant

    @werny

    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)

  • Anonymous User 18187419
    Inactive

    @anonymized-18187419

    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

    @werny

    Great!
    Thanks, mate!


    Mike Witt
    Participant

    @mike80222

    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?


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    Hi Mike Witt,

    A little bit more involved ….

    Where to change BP Text for activity update


    Mike Witt
    Participant

    @mike80222

    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 🙂


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    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.


    Mike Witt
    Participant

    @mike80222

    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.
Skip to toolbar