4
Can someone help me
I'm using XOOPS 2.42
I'm trying to customize my user info template
i want to display a custom field manually in my user info template
(gender)here's what i did
1. in modules/profile/userinfo.php
i add this line near the footer
$profile_handler =& xoops_getmodulehandler('profile','profile');
$profile = $profile_handler->get($xoopsUser->getVar('uid'));
$gender = $profile->getVar('gender');
$xoopsTpl->assign('gender',$gender);
2. and in modules/profiles/templates/profile_userinfo.html
i use
<{$gender}>
to display the value...
i viewed my profile
and it showed the value of the gender
but when i view other user profile its showed the same value of gender like in my profile
can someone correct my code?
i found this fix for yogurt+profile
https://xoops.org/modules/newbb/viewtopic.php?post_id=302702#forumpost302702how to fix this if i'm not using yogurt
please help
TQ