Skip to:
Content
Pages
Categories
Search
Top
Bottom

Passing bp_message_thread_avatar() a width and height

  • Profile photo of Henry
    thirstcard
    Member

    @thirstcard

    Unlike bp_displayed_user_avatar(), I don’t seem to be able to pass the bp_message_thread_avatar() function a height and width to display avatars a custom size.

    Do we know if this is expected behaviour?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    If you have a look at the bp_message_thread_avatar() function in the BuddyPress codebase, you can see which arguments it accepts, and also which functions it calls onto to get an avatar.

    That should help you determine which alternative avatar function to use.

    Profile photo of Henry
    thirstcard
    Member

    @thirstcard

    Thanks Roger. This particular function doesn’t seem to accept such arguments. I assume that means you can’t change the size of the avatar on the inbox and sent message pages?

    Profile photo of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    Yes, but you could modify those pages to use an alternative avatar function

    Profile photo of Henry
    thirstcard
    Member

    @thirstcard

    Thanks I’ll give it a go!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Passing bp_message_thread_avatar() a width and height’ is closed to new replies.
Skip to toolbar