Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need some suggestions on this…

  • @modemlooper

    Moderator

    I’m updating the External RSS feeds plugin and Andy had the user id attached to the activity update set to 0. This kills the current delete button. The reason it was set to 0 is because the update is not attached to a person but a group. What would be the best way to get the group avatar to display instead? Core seems to be pulling avatar from user_id. Is this something that could be added to core for group plugins to tap into to display a group avatar instead of a user?

    I’m thinking along the lines of say a group announcement plugin that when sent would push a notice into stream from xx group instead of the user.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @modemlooper

    Moderator

    Found the avatar filters but not sure how to change it to display the associated group avatar.

    $object = apply_filters( ‘bp_get_activity_avatar_object_’ . $current_activity_item->component, ‘user’ );

    return apply_filters( ‘bp_get_activity_avatar’, bp_core_fetch_avatar( array( ‘item_id’ => $item_id, ‘object’ => $object, ‘type’ => $type, ‘alt’ => $alt, ‘class’ => $class, ‘width’ => $width, ‘height’ => $height, ’email’ => $email ) ) );

    EDIT: seems just changing user to groups will get the image.

    @qrahaman

    Participant

    @modemlooper, I’m too new at this to help you but I just wanted you to know that your group announcement plugin that could broadcast across the stream from the “group” itself is a fantastic idea! Here’s a thought. What if there is so much activity in the stream that a observer/member (not of that group) misses it? Do you think providing a subscription feature for a specific group’s Group Anouncements would be something folks would want?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need some suggestions on this…’ is closed to new replies.
Skip to toolbar