Skip to:

Opened 14 years ago

Closed 14 years ago

#2383 closed defect (bug) (no action required)

Output error message filters for Messaging Component

Reported by: r-a-y's profile r-a-y Owned by:
Milestone: 1.2.4 Priority: normal
Severity: Version:
Component: Messages Keywords:


I've finished creating a small plugin that blocks private messages from being sent if one of the recipients isn't a friend of the logged-in user who is composing the message.

The plugin works well, but rather than outputting the generic "There was an error sending that message, please try again" error, I need a way to customize the error message string.

Instead of telling users to use a language file, I'm suggesting the following two filters:

line 186 - bp-messages.php

bp_core_add_message( apply_filters( 'messages_compose_sent_error', __( 'There was an error sending that message, please try again', 'buddypress' ) ), 'error' );

line 485 - /bp-themes/bp-default/_inc/ajax.php

echo "-1<div id='message' class='error'><p>" . apply_filters( 'bp_dtheme_ajax_messages_send_reply_error', __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) ). '</p></div>';


I'm listing this as a defect so it'll get seen and hopefully included in BP 1.2.4, but understand if this gets bumped to v1.3.

The sooner this gets included, the sooner I can release the plugin.

Change History (2)

#1 @r-a-y
14 years ago

Hmm, I might use Paul's technique listed here instead:

@Paul - Open comments on your blog post ;)

#2 @r-a-y
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing this.

Thanks Paul for the info!

Note: See TracTickets for help on using tickets.