Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notification Messages

  • @martineasywebsitesky

    Participant

    Hi,

    I would like to add additional notification “request_accepted”.

    if the record is inserted in bp_notifications table, component_action = request_accepted.

    The notification on frontend is blank.

    Do you know where I can add custom notification message?

    Thanks in advance.

    -Martin

Viewing 1 replies (of 1 total)
  • @martineasywebsitesky

    Participant

    I was able to add notification message.

    I added this code in bp-activity-functions.php

    case ‘request_accepted’:
    $activity_id = $item_id;
    $poster_user_id = $secondary_item_id;
    $at_mention_link = bp_loggedin_user_domain() . bp_get_activity_slug();
    $at_mention_title = sprintf( __( ‘@%s Mentions’, ‘buddypress’ ), bp_get_loggedin_user_username() );

    if ( (int) $total_items > 1 ) {
    $text = sprintf( __( ‘You have %1$d pet requests’, ‘buddypress’ ), (int) $total_items );
    $filter = ‘bp_activity_multiple_at_mentions_notification’;
    } else {
    $user_fullname = bp_core_get_user_displayname( $poster_user_id );
    $text = sprintf( __( ‘%1$s accepted your pet request’, ‘buddypress’ ), $user_fullname );
    $filter = ‘bp_activity_single_at_mentions_notification’;
    }
    break;

    my problem is I need to remove the notification once clicked.

    Do you know where it is triggered?

Viewing 1 replies (of 1 total)
  • The topic ‘Notification Messages’ is closed to new replies.
Skip to toolbar