Display Recipient's Avatar in Private Message

Discussion forum for MOD Writers regarding MOD Development.
Locked
nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Display Recipient's Avatar in Private Message

Post 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}?
User avatar
AmigoJack
Registered User
Posts: 6106
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Display Recipient's Avatar in Private Message

Post by AmigoJack »

PMs can have multiple recipients.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Re: Display Recipient's Avatar in Private Message

Post 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.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Display Recipient's Avatar in Private Message

Post 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
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Re: Display Recipient's Avatar in Private Message

Post 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.
Locked

Return to “[3.0.x] MOD Writers Discussion”