Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hiding the edit/ delete links in forum posts from members so only admin can edit/ delete


  • rossagrant
    Participant

    @rossagrant

    Hi guys,
    I’m sure I’m not the only one who would like to do this.
    I would like to hide the edit/ delete links in forum posts from my members so that once they post something it cannot be changed. I run a site where people can cause a nuisance by posting then editing their post before an admin sees what had been originally posted and I want to stop this.

    Hiding them may work but then if someone simply input the url they could still mess with the posts. Is there a fool proof way so that ONLY ADMIN can ever see and use these?

    Thanks so much!
    Ross :)

Viewing 4 replies - 1 through 4 (of 4 total)
  • have a look at the theme file /groups/single/forum/topic.php

    two sets of admin links which you can apply a filter or just change the if statement around those (probably remove bp_get_the_topic_is_mine() )


    rossagrant
    Participant

    @rossagrant

    @nuprn1 Thanks so much Rich, I simply removed the bp_get_the_topic_is_mine() section and now only admin can see any edit/ delete links, that’s great. Will the edit/ delete options still be found if a clever user knew the url or will that now be void. I doubt anyone is that clever to be honest anyway but thought I’d ask anyway!

    the edit/delete links are wrapped with wp_nonce_url() – so i’m assuming there is a level of protection if accessed directly.

    also bp_get_the_topic_post_is_mine() is on the reply posts


    rossagrant
    Participant

    @rossagrant

    @nuprn1 Sorry Rich, when you refer to bp_get_the_topic_post_is_mine() is on the reply posts do you mean there is somewhere else I need to get rid of that code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding the edit/ delete links in forum posts from members so only admin can edit/ delete’ is closed to new replies.
Skip to toolbar