Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Profile photo of rossagrant
    rossagrant
    Participant

    @rossagrant

    Hi guys,
    My site is financial based and has to abide by governing rules set by the Financial Authorities. Therefore when someone posts a forum post it has to be uneditable and undeletable by the member who posted it as it. An admin can edit it or delete it but not the member. Is there anyway to hide the buttons from the member or disable them altogether?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It takes 9 months to answer how to hide 2 buttons! I need the same thing , any buddy alive here?

    Profile photo of rossagrant
    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!

    :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Anyway to hide or disable the ‘edit’ and ‘delete’ buttons on forum posts?’ is closed to new replies.
Skip to toolbar