Thanks. I will test if I placed that well.
I think the problem goes on where add this part:
Quote:
Add this both line after this line :$xoopsTpl->assign('lang_avatar', _US_AVATAR);
$xoopsTpl->assign('lang_ratethisuser', _US_RATETHISUSER);
$xoopsTpl->assign('lang_votes', _US_VOTES);
$xoopsTpl->assign('user_votes', $thisUser->getVar('votes'));
$xoopsTpl->assign('lang_hits', _US_HITSC);
$xoopsTpl->assign('user_hits', $thisUser->getVar('hits'));
$rating = $thisUser->getVar("rating");
if (!empty($rating)) {
$xoopsTpl->assign('user_rating', number_format($rating, 2));
}
$xoopsTpl->assign('lang_ratingc', _US_RATINGC);
there are many lines that repeat the line
Quote:
$xoopsTpl->assign('lang_avatar', _US_AVATAR);
So where do you add those lines?
The problem is there, because I added them in the if that sees if one is XOOPS user and admin. But the place to add it for any XOOPS user is not clear for me, as the userinfo.php file is a bit complex.
Where should I add those lines to get the hack working?
Thanks again.
Jordi