![]() |
Trying to display senders avatar
I have the following code and it somewhat works:
Code:
if ($vbulletin->userinfo['userid']) { https://img001.prntscr.com/file/img0...hHD5Wk30jg.png The second avatar in the image should be in the first space while the third avatar should be in the second and third space as it's from the same user. I feel like I'm on the right track just don't know where to go from here, can anyone help? |
well shit the advanced reply seems to be broke here so I cant attach images but, your thinking too hard for this =)
in private_messagelist_messagebit all you need is a var to fetch the avatar, then display that var in the template. in example.. Plugin: Code:
$drc_pmpic = fetch_avatar_url($userid); Code:
<img src="$drc_pmpic[0]" /> wrap your if conditions for a default pic and all that straight in the template, rather than in the php. edit: got a pic for you =) https://i.imgur.com/D1GPTd0.png |
Quote:
|
All times are GMT. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|