Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hidng the delete link from members in the activity stream


  • rossagrant
    Participant

    @rossagrant

    Hi guys,
    I have taken away my members ability to delet their topics and forum posts in BP by deleting bp_get_the_topic_post_is_mine() in my themes topic.php file.

    I would also like to hide the delete links in the activity stream for members, in both the main activity and each seperate groups activity.
    Obviously admin needs to be able to delete these but I don’t want members to be able to.

    Is it a similar process as the forum posts and group topics? I presume it is but don’t know where to locate it. I still need the ‘view’ link but don’t want the ‘delete’ link for members.
    Thanks.
    Ross :)

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

  • rossagrant
    Participant

    @rossagrant

    the delete links would need to be hidden in the profile activity of each member too.
    Thanks!

    filter on bp_activity_delete_link to remove it


    rossagrant
    Participant

    @rossagrant

    @nuprn1 Hi Rich! I have edited the bp_activity_delete_link in bp-activity/bp-activity-templatetags which seems to have removed the delete links for non admins in both the sitewide activity page and group activity but I can’t seem to track down where to filter for the activity on a members personal profile.

    Do you have any ideas where it might be and am I still looking for bp_activity_delete_link?
    Thanks
    Ross :0


    rossagrant
    Participant

    @rossagrant

    @nuprn1 any ideas on this Rich? Still can’t find how to hide the delete tag on the member’s personal profile activity. Cheers mate!

    ok, i found some delete references on the activty comments that do not have any sort of filter on them (actually this goes back to a trac i need to file – https://trac.buddypress.org/ticket/2530 )

    under the functions:
    bp_dtheme_new_activity_comment() – ajax.php
    bp_activity_get_comments( $args = '' ) – bp-activity-templatetags.php

    Otherwise everything uses the same activity template


    rossagrant
    Participant

    @rossagrant

    @nuprn1 Thanks Ruch! I actually just found what I had done wrong. I had left one filter as ‘is admin’ when it should have been ‘is site admin’.

    All is good now!
    Thankyou so much once again. We’d be lost without you!
    :)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hidng the delete link from members in the activity stream’ is closed to new replies.
Skip to toolbar