Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't remove mantion name.

  • @shpitzyl

    Participant

    Hello all.
    I’m using the mention system in buddypress to allow users to post updates on others time line.
    The problem is that every mention activity item contains the mention name of the user (@username).
    Can’t find a way to get rid of that.
    Any help would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @shpitzyl

    Participant

    Bump

    @danbp

    Participant

    @shpitzyl

    Participant

    Thanks for your reply @danbp, but it’s not what I meant. I want to remove the mention name from activity updates (or posts) not from the header.

    Buddypress wrap the mention name in a link. Instead of wrapping it, I want it to delete it completely. (the mention name should still presented in the database but not visible on activity updates). Maybe there is a way to add to that link a css class and set it to display:none. The problem is that I can’t find in the code where it wraps the mention name.

    @danbp

    Participant

    Reference file: buddypress/bp-activity/bp-activity-filters.php
    How to remove @mention from updates, forum posts, etc

    When searching (and/or tweaking) code in BuddyPress, use a text editor like Notepad++. This editor provide also a robust search tool. It’s much faster to work with the right tool as to wait for a response on a forum…. 😉

    @shpitzyl

    Participant

    @danbp, thank you for the reply and for putting some effort.

    I’m familiar with that link and also checked bp-activity-filters.php before posted on this forum.
    I wouldn’t post here without trying to figure it out by myself.

    For some strange reason, when I tried to edit that file it haven’t done any change. Now I tried it again and it is working. Probably I was tired or something and did something wrong.

    Anyway, I wouldn’t go back to that file without you so thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't remove mantion name.’ is closed to new replies.
Skip to toolbar