Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Anyway to hide or disable the ‘edit’ and ‘delete’ buttons on forum posts?


rossagrant
Participant

@rossagrant

@zoran100

Hi mate,
I worked this out in the end.

If you go into your buddypress file on your ftp, then go into the Bp forums file, you will see something called bp-forums-templatetags.php.

You are looking for references like these:

‘ function bp_get_the_topic_admin_links( $args = ” ) {
global $bp, $forum_template;

$defaults = array(
‘seperator’ => ‘|’
);

$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );

$links[] = ‘‘ . __( ‘Edit Topic’, ‘buddypress’ ) . ‘‘;

if ( $bp->is_item_admin || $bp->is_item_mod || is_super_admin() ) {‘

Look at the last line of that code.

To only allow a admin to see the edit / delete links delete the other permissions as appropriate.

Hope that helps!

:)

Skip to toolbar