9
i found the trick..
1st open modules/system/blocks/system_blocks.php
insert this code just before the ?> sign..
le="color: #000000"><?php GLOBAL $xoopsUser; if (is_object($xoopsUser)) { $uavatar = $xoopsUser->getVar('user_avatar'); if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$uavatar)) { $GLOBALS['xoopsTpl']->assign('uavatar', XOOPS_URL.'/uploads/'.$uavatar); }else{ $GLOBALS['xoopsTpl']->assign('uavatar', ''); } }
then after that edit the User Block template from the block administrations menu..
add the following code at the place you want the avatar to be displayed.
le="color: #000000"><?php <{if $uavatar != ""}> <img src="<{$uavatar}>" alt="" width="100" /><br /> <{/if}>
you can change the width if you want...
besides you can also display the user's username by using the code
le="color: #000000"><?php <{$xoops_uname}>
that's all
tanx