5
and at first i tired assign a smarty variable like this
if (is_object($xoopsUser)) {
$xoopsTpl->assign('user_pmlink', "
");
} else {
$xoopsTpl->assign('user_pmlink', '');
}
but failed
Maybe after change $topic_post[poster_uid] to $eachposter->getVar('uid') and change $topic_post[poster_uname] to $eachposter->getVar('uname') as Predator has posted the code will work~~ just guess