1
hi, i'm trying to do something with the userinfo page but it just won't work. I have created a field which is called 'vice_versa' in the registration form and it is a yes/no radio button. I have added this code in the userinfo.php:
$profile_handler =& xoops_getmodulehandler('profile', 'profile');
$profile = $profile_handler->get($uid);
if (is_object($profile)) {
$vice_versa = $profile->getVar('vice_versa');
}
and
$xoopsTpl->assign('vice_versa', $vice_versa);
and in the template userinfo.html
<{if $vice_versa == yes}>Something here<{/if}>
But it just won't show the text. does anybody know what's wrong?
thanks in advance