Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable Group Activity updates?

  • @ultimateuser

    Participant

    As there is already a Forum I do not see the need for members to give updates as on the Home tab of a group. This is confusing.

    Does anyone know an easy way on how to disable this option in the latest version of BP?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @mercime

    Participant

    If your BP theme or bp-default child theme doesn’t have one yet, copy over https://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-themes/bp-default/groups/single/activity.php to your theme folder following the directory structure, i.e. yourthemefolder/groups/single/

    Open up activity.php file and delete the following lines:
    `

    `

    Save.

    @ultimateuser

    Participant

    Hi @mercime,

    I’m trying to this again but on another blog. I can’t see the code in your previous post.

    Could you repost the code I need to delete?

    Thank you

    @shanebp

    Moderator

    change this:

    <?php bp_get_template_part( 'activity/post-form' ); ?>

    to this:

    <?php //bp_get_template_part( 'activity/post-form' ); ?>

    or just delete this:

    <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
    
    	<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    <?php endif; ?>

    @ultimateuser

    Participant

    @shanebp Thank you.

    I could not find the first code but by delete the second code it work.

    However on the Activity page in the status update I can still select a group in the Post in dropdown…

    @sakarya

    Participant

    Hi..

    I’m using default theme and deleted that code, but still, showing status update form..

    What’s wrong, is there anything do I have to do?

    Code is:

    <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
    
    	<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    <?php endif; ?>

    @mercime

    Participant

    Did you remove it from this file https://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-themes/bp-default/groups/single/activity.php

    I hope you’re using a child theme of the BP Default theme instead of making those changes on that theme in your server. Otherwise, your changes will be overwritten when BP is updated.

    @sakarya

    Participant

    Yes, I deleted codes from activity theme, and I don’t use child theme..

    @mercime

    Participant

    @sakarya Just to be clear, you’re removing the status update form from the group’s activity, so that should work. Have you cleared cache? Or were you trying to remove the status update form everywhere?

    I can only say that the best practice is to create a child theme.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to disable Group Activity updates?’ is closed to new replies.
Skip to toolbar