Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Conflict between My Discussions and mod_onlineusers.php

More
16 years 11 months ago #16796 by Matias
It looks like CB or Jomsocial module.

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #16807 by zaks
Matias wrote:

It looks like CB or Jomsocial module.


Thanks Matias

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago - 16 years 11 months ago #16819 by heliolopes
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>
Last edit: 16 years 11 months ago by heliolopes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.286 seconds