Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable user status updates


  • amotylszary
    Participant

    @amotylszary

    Hello everyone,

    Can someone tell me how we can disable users’ ability to post status updates? We only want admins to be able to create statuses and add to the activity feed. Users will be allowed to comment on those items, but not to post their own.

    Seems simple enough, but I can’t figure it out. Turning off Activity Streams in BuddyPress removes the whole activity page for participants. We just want to remove their ability to post status updates.

    thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    You don’t say which template pack you’re using… Depending on which you’re using:
    Find this file:
    buddypress\bp-templates\bp-legacy\buddypress\activity\index.php
    Or this one:
    buddypress\bp-templates\bp-nouveau\buddypress\activity\index.php

    Then find this code:

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

    And change it to:

    	<?php if ( is_super_admin( get_current_user_id() ) ) : ?>
    
    		<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    	<?php endif; ?>

    Rather than make the changes to the BP templates, use a template overload instead.


    amotylszary
    Participant

    @amotylszary

    Thank you! I am using legacy. Can you please specify where I make this change?


    shanebp
    Moderator

    @shanebp

    Please read my first post again – all the specifics are there.

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