Hi dears,
I want to write a plugin to show the user avatars in PM list (inbox/outbox....etc)
I added this plugin:
Code:
require_once('./includes/functions_user.php');
if (THIS_SCRIPT == 'private')
{
$pm[avatarurl] = fetch_avatar_url($pm['fromuserid']);
if (!$pm[avatarurl]) {
$pm[avatarurl] = $stylevar['imgdir_misc'] . 'images/misc/unknown.gif';
} else {
$pm[avatarurl] = $vbulletin->options['bburl'] . '/' . $pm[avatarurl][0];
}
}
Then I added this to template(pm_messagelistbit)
Code:
<img src="{vb:raw pm.avatarurl}" />
It is working and the avatar shows but only in first row !
I mean there is avatar only in FIRST pm (one avatar in each page).
Any help?