<{if ($message.postername != "")}>
<{* what if user does not exist? *}>
<{assign var="tempPosteruid" value=$message.posteruid}>
<img src="<{$xoops_url}>/uploads/<{php}>
$user_handler = xoops_getHandler('user');
if($posterObj = $user_handler->get($this->get_template_vars('tempPosteruid'))) {
echo $posterObj->getVar('user_avatar');
}
<{/php}>" class="img-responsive img-rounded img-thumbnail">
<{/if}>
<{php}>
$user_handler = xoops_getHandler('user');
$posterObj = $user_handler->get($GLOBALS['message']['posteruid']);
echo $posterObj->getVar('user_avatar');
<{/php}>