Dear,
we created an intranet using the easysocial module and we wanted to display a general field in the listing page.
So we added a custom field (COM_EASYSOCIAL_FIELDS_PROFILE_DEFAULT_GENERAL) and we have overwritten the \templates\ja_intranet\html\com_easysocial\helpers\listing\user.php file and added the following code snippet.
<?php $generalinfo = null;
foreach($user->getCustomFields() as $struct) {
if ($struct->title==="COM_EASYSOCIAL_FIELDS_PROFILE_DEFAULT_GENERAL"

{ echo trim($struct->data);break;}}
?>
This at first seemed to work nicely, and the custom info is displayed. But now it seems to be unstable. For some users it appears. For some users it does not. Even for one user when saving the user data the extra field appears, after saving the user again (without changing anything, the extra fields dissappears). So I guess there is some cache which prevents the loading properly.
As an extra info and also weird thing, when I we go to the listings page (by following the link in the main menu) the field is not retrieved. But when searching for the user in the search box the user is found with the extra information displayed....
(See screenshots empty general info / with general info)
Can you check what is wrong here?
W