BuddyDev

Search

[Resolved] Eliminating the “What’s New” line on the user Profile->Activity

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #46288

    I’d like to eliminate the “What’s New” line on the user’s Profile->Activity page. I found this post:

    https://buddydev.com/support/forums/topic/where-to-change-bp-text-for-activity-update/

    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, in order to completely eliminate that field. I don’t see it in activity/index.php, but maybe I simply don’t know how to recognize it?

    Any thoughts on this?

    Thanks!

    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #46300

    Hi Mike,
    Is your goal is to only change the text? If yes, Please use poedit or any of the localization plugin to translate. That would be a lot better.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #46301

    No, my goal is to eliminate the “what’s new” field completely.

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #46308

    In that case, you will need to edit the buddypress/activity/post-form.php to completely remove it.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #46311

    So post-form.php should just be an empty file?

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #46321

    That is the easiest way to do it everywhere. Otherwise, you can do it in buddypress/groups/single/activity.php, buddypress/members/single/activity.php and buddypress/activity/index.php

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #46625

    I appreciate your advice on this. It took me a while to try it.

    I have deleted basically all the content from buddypress/activity/post-form.php (in my child override directory). Now the file just looks like:

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

    This *appears* to work. Does that look right? I do need the closing ?> at the end, right?

    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #46629

    Hi Mike,
    That’s good.

    You can safely remove the last closing tag.

    
    
    ?>
    

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved