Page 1 of 1

Display Recipient's Avatar in Private Message

Posted: Sat Nov 21, 2015 6:39 am
by nicotinemilk
Does anyone know how to show the recipient's avatar in the posting_body.html of a private message... So that when you add the recipient it shows not only their name but also their avatar?

Something like {to_recipient.AVATAR}?

Re: Display Recipient's Avatar in Private Message

Posted: Mon Nov 23, 2015 9:08 am
by AmigoJack
PMs can have multiple recipients.

Re: Display Recipient's Avatar in Private Message

Posted: Tue Nov 24, 2015 12:23 am
by nicotinemilk
That's true.

Still, you could call the avatar into a div to display next to the recipient's name when you add them to the message using css to control the img's dimensions?

For example:

Code: Select all

<a href="{to_recipient.U_VIEW}">{to_recipient.NAME}</a>

<div class="recipientavatar">
<img src="{to_recipient.AVATAR}">
</div>
And display them inline above the subject line or however your board is styled? But, yeah, this {to_recipient.AVATAR} doesn't exist... I just thought it would be a cool/good idea. It's not necessary by any means... More just a hypothetical style option.

Re: Display Recipient's Avatar in Private Message

Posted: Tue Nov 24, 2015 12:49 am
by Lumpy Burgertushie
not sure what the point would be. the recipient of the PM already knows what their avatar is and what it looks like, why would they want to see it in a PM?


robert

Re: Display Recipient's Avatar in Private Message

Posted: Tue Nov 24, 2015 12:57 am
by nicotinemilk
Ah, yeah... Like I said, I just thought it would be a cool idea. It's not necessary by any means... More just a style option and something I noticed while pulling apart my board.

Also, to clarify, the recipient wouldn't be seeing the avatar, the sender would... Next to the person's name they're sending the message to. This would occur when they have added the recipient's name to the message.