Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom error message in profile edit page.

  • Profile photo of shpitzyl
    shpitzyl
    Participant

    @shpitzyl

    Hi, I need to do word censorship on the profile fields. I’m using the hook xprofile_updated_profile to achieve that. The problem is that I can’t find a way to generate an error message when the user uses a forbidden word. I’ve tried to do it with the function bp_core_add_message() without any success.

    Replacing the forbidden value with an empty array is not a problem, Generating the error message is what I have trouble with.

    How can I achieve that? Can anybody help me?

  • The topic ‘Custom error message in profile edit page.’ is closed to new replies.
Skip to toolbar