Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing BuddyPress user profile pages (General BP question)


  • bibblybob
    Participant

    @bibblybob

    Hi All,

    Bit of a BuddyPress n00b here. I’m looking to edit the ‘Activity’ section when a user goes to their profile page so that they can’t post status updates. While I’m not specifically asking how to do this, I have a more n00bish question.

    In order to edit something like what I’ve mentioned above, I’ve gone through the back-end of WP and looked at all WP settings in the admin area. Generally with other plugins I have, basic functionality changes are options that one can change in the WP admin area. Is this not the case with BuddyPress? Unless I’ve completely missed something simple, does this mean that a small functional change as I’ve mentioned above will require direct code amendments to specific files?

    Thanks for the help/info.

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Exposing every aspect as an option is untenable.
    You need to adjust a template file.
    The file in question depends on which BP template pack you are using.
    Go to wp-admin > Settings > BuddyPress > Options and note the setting for the Template Pack option.
    If you are using Nouveau, then this is the file:
    wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\activity\index.php

    In that file, find this: <?php bp_get_template_part( 'activity/post-form' ); ?>
    And change it to this:

    <?php 
         if ( ! bp_is_user() ) {
             bp_get_template_part( 'activity/post-form' ); 
         }
    ?>

    Note: it is recommended that you do not edit the template files in the BuddyPress plugin.
    Your changes will be wiped out when you update the plugin on a new release.
    Instead, create a template overload and then edit that file.
    More info re template overloads:.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar