From 5e3fa378fff89f842e63bac16e407fe59fefde56 Mon Sep 17 00:00:00 2001 From: Giri Date: Fri, 11 Sep 2015 20:25:53 +0530 Subject: [PATCH 1/2] Added filters and actions for whoop theme compatibility --- change_log.txt | 1 + .../templates/buddypress/members/single/compliments.php | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index 8f6c6c2..5855bbf 100644 --- a/change_log.txt +++ b/change_log.txt @@ -5,6 +5,7 @@ Added placeholder text to message textarea - ADDED Compliments in activity dropdown filter is ambiguous - FIXED Undefined property ID notice - FIXED Changed textdomain from defined constant to a string - CHANGED +Added filters and actions for whoop theme compatibility - ADDED v0.0.7 Compliments can be renamed to anything Ex: "Gifts" - ADDED diff --git a/includes/templates/buddypress/members/single/compliments.php b/includes/templates/buddypress/members/single/compliments.php index 4aab2d2..8c19ea1 100644 --- a/includes/templates/buddypress/members/single/compliments.php +++ b/includes/templates/buddypress/members/single/compliments.php @@ -95,12 +95,14 @@ class='preview-upload'/>
display_name; - $user_link = bp_core_get_user_domain($author_id); + $name = apply_filters('bp_compliments_item_user_name', $user->display_name, $user); + $user_link = apply_filters('bp_compliments_item_user_link', bp_core_get_user_domain($author_id), $author_id); + $avatar_size = apply_filters('bp_compliments_item_user_avatar_size', 60); ?> - +
+
From e8039ee4becd9e7886671afa98e200a9d880e9da Mon Sep 17 00:00:00 2001 From: Giri Date: Mon, 14 Sep 2015 14:05:45 +0530 Subject: [PATCH 2/2] Notification not showing properly - FIXED --- change_log.txt | 7 +++++-- includes/bp-compliments-notifications.php | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index 5855bbf..ee09bb8 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,11 +1,14 @@ +v0.0.9 +Changed textdomain from defined constant to a string - CHANGED +Added filters and actions for whoop theme compatibility - ADDED +Notification not showing properly - FIXED + v0.0.8 Option added to enable/disable activity component - ADDED Option added to enable/disable notifications component - ADDED Added placeholder text to message textarea - ADDED Compliments in activity dropdown filter is ambiguous - FIXED Undefined property ID notice - FIXED -Changed textdomain from defined constant to a string - CHANGED -Added filters and actions for whoop theme compatibility - ADDED v0.0.7 Compliments can be renamed to anything Ex: "Gifts" - ADDED diff --git a/includes/bp-compliments-notifications.php b/includes/bp-compliments-notifications.php index 036db5c..945ac25 100644 --- a/includes/bp-compliments-notifications.php +++ b/includes/bp-compliments-notifications.php @@ -98,7 +98,10 @@ function bp_compliments_format_notifications( $action, $item_id, $secondary_item */ return apply_filters( 'bp_compliments_new_compliment_notification', '' . $text . '', $total_items, $link, $text, $item_id, $secondary_item_id ); } else { - return false; + return apply_filters( 'bp_compliments_new_toolbar_compliment_notification', array( + 'link' => $link, + 'text' => $text + ), (int) $total_items, $item_id ); } }