Matias wrote:It looks like CB or Jomsocial module.
Matias, It is a Jomsocial module.
I have try you solution:
$o_user
, but It just doesn't work.
Im using com_kunena_v1.0.9_b1231_2009-04-03
and com_community_pro_unzip_first_1.1.145
The problem is only with, "My Discussions" and also "Recent Discussions"
and the Conflict is always the same
Fatal error: Call to undefined method stdClass::getDisplayName() in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\ mod_onlineusers.php on line 56
And on line 56, I have this:
$html .= ' <a href="'.$userLink.'" title="'.$user->getDisplayName().'"><img width="32" src="'.$user->getThumbAvatar().'" alt="'.$user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
How can I have both working together normally?
Im attaching the mod_onlineusers.php
If changing something in that file doesn't work, which changes can I perform in Kunena to stop this conflict?
Please your help is needed!
Regards,
Hélio
Code:
<div>
<div>
<ul style="list-style:none; margin: 0 0 10px; padding: 0;">
<?php
if( !empty( $total_online ) )
{
foreach( $row as $data )
{
$user =& CFactory::getUser($data->id);
$userLink = CRoute::_('index.php?option=com_community&view=profile&userid='.$data->id);
$html = '<li style="display: inline; padding: 0 3px 3px 0; background: none;">';
$html .= ' <a href="'.$userLink.'" title="'.$o_user->getDisplayName().'"><img width="32" src="'.$o_user->getThumbAvatar().'" alt="'.$o_user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
$html .= '</li>';
echo $html;
}
}
?>
</ul>
</div>
<div>