5
I've put the following code into blocks/system_blocks.php but it
global $xoopsUser;
if (is_object($xoopsUser)) {
$block['uavatar'] = $xoopsUser->getVar('user_avatar');
if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$block['uavatar'])) {
$block['uavatar'] = '<img src="'.XOOPS_URL.'/uploads/'.$block['uavatar'].'" alt="avatar" />';
}else{
$block['uavatar'] = '';
}
And I've put the smarty tag <{$block.uavatar}> in the html template.. updated the system etc.. but it doesn't work. Could you please send me both files (if you have them) 2 my email (bowromir@gmail.com) or display them here entirely ? Your help is much apreciated