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 » Sat Nov 21, 2015 6:39 am

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: 4999
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Display Recipient's Avatar in Private Message

Post by AmigoJack » Mon Nov 23, 2015 9:08 am

PMs can have multiple recipients.
The worst thing about censorship is ███████████

nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Re: Display Recipient's Avatar in Private Message

Post by nicotinemilk » Tue Nov 24, 2015 12:23 am

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Display Recipient's Avatar in Private Message

Post by Lumpy Burgertushie » Tue Nov 24, 2015 12:49 am

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

nicotinemilk
Registered User
Posts: 13
Joined: Sun Nov 08, 2015 3:10 pm

Re: Display Recipient's Avatar in Private Message

Post by nicotinemilk » Tue Nov 24, 2015 12:57 am

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”

Who is online

Users browsing this forum: No registered users and 13 guests

cron