BuddyPress Gifts
High Five Error/Link Resolution (1 post)

  1. Amber
    Posted 4 years ago #

    Hey Everyone,

    This is a really neat plugin, but I did notice that when sending a gift the notification that popped up was "High Five" and if you clicked on it it would go to a broken link.

    I checked the forms here on how to fix it and there was an attempted resolution to fix it by Yallways, but it still didn't work. I would have also posted this in that topic but it has since been locked.

    For anyone else getting that same issue, open your includes/bp-gifts-core.php in your buddypress-gifts plugin, navigate to line 626 and replace:

    return apply_filters( 'bp_gifts_single_newgifts_notifications', '<a href="' . 'gifts' . '?new" title="' . $user_fullname .'\'s profile">' . sprintf( __( '%s sent you a high-five!', 'bp-gifts' ), $user_fullname ) . '</a>', $user_fullname );

    with the following snippet:

    return apply_filters( 'bp_gifts_multiple_newgifts_notifications', '<a href="' . $bp->loggedin_user->domain . $bp->gifts->slug . '/" title="' . __( 'Multiple gifts', 'bp-gifts' ) . '">' . sprintf( __( '%s sent you a gift', 'bp-gifts' ), $user_fullname ) . '</a>', $user_fullname );

    This is tested and working on wp 3.2.1 and buddypress 1.2.9.

    Keep in mind if and when this is ever updated by the author this change could be overwritten.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Gifts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Amber
  • This topic is not a support question
  • WordPress version: 3.2.1