17
Yay it works!
Thank you phppp and all of u guyz that helped me doing this. The code didn't work cuz of a little mistake (an extra bracket actually).
Here is the code for those who would need to do the same :
Paste it right before "?>" in the last line of header.php
Quote:
$NeoPlug_avatar = $xoopsUser->getVar('user_avatar');
if(file_exists(XOOPS_ROOT_PATH.'/uploads/'.$NeoPlug_avatar))
$NeoPlug_avatar = 'src="'.XOOPS_URL.'/uploads/'.$NeoPlug_avatar.'">';
else $NeoPlug_avatar='';
$xoopsTpl->assign("NeoPlug_avatar",$NeoPlug_avatar)
Then modify theme.html (themes/yourtheme/theme.html) and add this where you want the user avatar to be displayed.
Quote: