4
I appreciate your replies, Ghia i read that thread and found this code
<{php}>
global $xoopsTpl, $xoopsUser;
$myField = '';
if (is_object($xoopsUser)) {
$profile_handler = xoops_getmodulehandler('profile', 'profile');
$profile = $profile_handler->get($xoopsUser->getVar('uid'));
$myField = $profile->getVar('myfield');
}
$xoopsTpl->assign('myField', $myField);
<{/php}>
<{$myField}>
but i don't know where to put it.
In newbb_thread.html there is
<tr>
<td width="20%" class="odd" rowspan="2" valign="top">
<{if $topic_post.poster.uid != 0}>
<div class="comUserRankText"><{$topic_post.poster.rank.title}><br /><{$topic_post.poster.rank.image}>div>
<{if $topic_post.poster.avatar}>
<img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" />
<{/if}>
<div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_JOINED}>:span><br /><{$topic_post.poster.regdate}>div>
<{if $topic_post.poster.from}>
<div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_FROM}>span> <{$topic_post.poster.from}>div>
<{/if}>
<{if $topic_post.poster.groups}>
<div class="comUserStat"> <span class="comUserStatCaption"><{$smarty.const._MD_GROUP}>span>
<{foreach item=group from=$topic_post.poster.groups}> <br /><{$group}><{/foreach}>
div>
<{/if}>
I guess that the first code should go somewhere here, is that right?
I am not a coder can you help me please?