22
Hey demian,
To get user avatar in the block, try this...
In the file b_instantmessenger.php, replace the lines below(84,85,86):
if ($status == '0') {$image = XOOPS_URL."/modules/xim/images/Absent-blue16.png";}
if ($status == '1') {$image = XOOPS_URL."/modules/xim/images/busy-blue16.png";}
if ($status == '2') {$image = XOOPS_URL."/modules/xim/images/messenger-blue16.png";}
by this code:
$user = new XoopsUser($onlines[$i]['online_uid']);
$avatar =$user->user_avatar();
if ($avatar!='blank.gif') {
$image = XOOPS_URL."/uploads/".$avatar;
} else {
$image = XOOPS_URL."/modules/xim/images/default_avatar.png";
}
In the directory templates / blocks, modify the files onlinenow.html (line 6) and b_instantmessenger.html (line 13) and add the class "image" on the avatar image, as below:
<img class="image" src="<{$user.status}>" style="margin-bottom:-3px" title="<{$user.nome}>" /> <{$user.nome}>
I hope that helps you ...
Luiz Carlos (Andrax)
"whoever wants to become great among you must be your servant" – Jesus
http://guxbrasil.org
http://about.me/LuizCerqueira