The forum is in read only mode.
Hello :) I try many ways to display the gender of the visited profile but none of these solutions work. I try this :
// load jomsocial library require_once( JPATH_ROOT .'/components/com_community/libraries/core.php'); // create the owner object $owner = CFactory::getUser($listing['User']['user_id']); ?> <?php echo $owner->getInfo('FIELD_GENDER'); ?> <?php echo $listing['Community']['Field']['FIELD_GENDER']['value']; ?>
<?php $gender = $user->getInfo('FIELD_GENDER'); echo $gender; ?>
$user =& CFactory::getUser(); echo $data = $user->getInfo('FIELD_ABOUTME');
require_once JPATH_SITE.DS.'components'.DS.'com_community'.DS.'libraries'.DS.'core.php'; $value =& CFactory::getUser($userid)->getInfo('FIELD_GENDER');
Doesn't it exist an SQL query for getting this field ?
Hi Laura, This is the Pre-Sales section, For technical support you would need to post in the correct category, you will require an active licence to do that then our support staff can help you there
JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a full -fledged, social networking site
TRY NOW BUY NOW