Skip to:
Content
Pages
Categories
Search
Top
Bottom

control location of error messages


  • shanebp
    Moderator

    @shanebp

    Looking for hints re how to control the location of error messages.
    For example, changing avatar: “Upload Failed! Error was: No file was uploaded.”
    This message appears at the top of the Profile Area – so it is easily missed.

    Anyone know how to control where the output of bp_core_add_message appears?
    IOW. How to control where the message is rendered on the page ?
    Or how to control where the class=”error” div is rendered?

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

  • Virtuali
    Participant

    @gunju2221

    You will have to manually move all of the `<div class="error"` In the bp-core, avatar uploads.php to the locations of your liking in the file.


    shanebp
    Moderator

    @shanebp

    I see no instance of <div class="error" in bp-core files.
    But there are plenty of bp_core_add_message calls.

    Anyone know where bp_core_add_message is defined?


    Virtuali
    Participant

    @gunju2221

    I can tell you, that it’s not defined as bp_core_add_message.

    The messages are a Div class defined in default CSS from buddypress. And the messages are placed in the same position in the php file in every instance you are seeing. There is no universal function for this.


    shanebp
    Moderator

    @shanebp

    Thanks for the info.

    Yes, we saw div#message and .error in default.css.

    But there must be a place in the code where the div is rendered to the page.
    Anyone know where that place is?


    abysshorror
    Member

    @abysshorror

    Bump. I’m trying to add some styling to the error messages using jGrowl.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘control location of error messages’ is closed to new replies.
Skip to toolbar