This topic has 4 replies, 2 voices, and was last updated 10 years by creativesinside.
-
Author
Tagged: avatar, Notifications
-
June 4, 2015 at 09:56 #60992
creativesinside
ParticipantHow do I make the avatar of the corresponding users show up on the notifications?
June 4, 2015 at 21:43 #61056sharmstr
ModeratorBP doesnt give you and easy way to do that. The notification table only has a userid for who the notification belongs to, not who triggered it. I’m not saying it isn’t possible, but it would take a lot of custom coding to get the avatar of who initiated the notification because you’d have to search for it in the appropriate table (blog post, mentions, messages.)
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 4, 2015 at 21:58 #61067creativesinside
ParticipantI’m trying this to no avail:
function bp_the_notification_avatar() {
echo bp_get_the_notification_avatar();
}function bp_get_the_notification_avatar() {
$bp = buddypress();
$user_id = $bp->notifications->query_loop->notification->secondary_item_id;
echo bp_activity_avatar( array( ‘user_id’ => $user_id ) ); }Ok so … I need to access the database?
June 4, 2015 at 22:15 #61069sharmstr
ModeratorTry asking on the bp forums.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.

