cotonti.com : Header avatar problems https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 22 Dec 2025 12:23:08 -0000 jacken
but i used ur image code instead and it worked great.

thx!]]>
чт, 13 авг 2009 02:02:25 -0000
Trustmaster The most correct place is about line 233:
$usr['newpm'] = $row['user_newpm'];
$usr['auth'] = unserialize($row['user_auth']);
$usr['profile'] = $row;
$usr['avatar'] = $row['user_avatar'];
Alternatively, you could try using this tag to get the image source in any TPL instead without any modifications in PHP files:
<img src=https://www.cotonti.com/"{PHP.usr.profile.user_avatar}" />
]]>
чт, 13 авг 2009 01:50:37 -0000
jacken
im trying to get the user avatar in the header under the control panel.

i found this thread - http://www.cotonti.com/forums.php?m=posts&p=13554
and ive done like medj did.

in common.php i added
$usr['avatar'] = $row['user_avatar'];

in header.php i added
"HEADER_USER_AVATAR" => sed_build_userimage($usr['user_avatar'], 'avatar'),

and in the header tpl file i added {HEADER_USER_AVATAR} where i wanted it.

the problem is that it only gives me a pic of the default avatar instead of the one that the user is using

all help is appreciated]]>
чт, 13 авг 2009 00:29:16 -0000