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 Undefined variable: msg_avatar

More
16 years 10 months ago #18587 by oldrock
I've just installed Kenuna 1.0.10 on Joomla 1.5.11. I have Community Builder 1.2.1 installed and have selected Community Builder in the configuration where available.

When I select "No" for "Allow Avatars" I get this message where the Avatar would normally show:

Notice: Undefined variable: msg_avatar in C:\wamp\www\components\com_kunena\template\default_ex\message.php on line 194

Any suggestions?

Thanks.

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

More
16 years 10 months ago #18592 by xillibit
Hello,

can you give me the code concerned by this error just before the line 194 and just after the line 194 because I don't use community builder ?

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 10 months ago #18595 by oldrock
Code:
<?php if ( $fbConfig->userlist_usertype ) echo '<span class = "msgusertype">('.$msg_usertype.')</span>'; ?> <br/> <?php if ($fmessage->userid > 0) { echo CKunenaLink::GetProfileLink($fbConfig, $fmessage->userid, $msg_avatar); } else { echo $msg_avatar; } ?>

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

More
16 years 10 months ago #18597 by xillibit
I don't know where is the line 194 but you can try this :
Code:
<?php if ( $fbConfig->userlist_usertype ) echo '<span class = "msgusertype">('.$msg_usertype.')</span>'; ?> <br/> <?php if ($fmessage->userid > 0) { echo CKunenaLink::GetProfileLink($fbConfig, $fmessage- >userid, $msg_avatar); } else { if(isset($msg_avatar)) { echo $msg_avatar; } } ?>

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 10 months ago #18601 by oldrock
Thanks for the suggestion. Line 194 is this one:

echo CKunenaLink::GetProfileLink($fbConfig, $fmessage- >userid, $msg_avatar);

I tried your suggested change anyway but of course it made no difference since it's not in the code that's being executed.

By the way, I also tried setting "Use avatar picture from" to Kunena and it has the same problem when "Allow Avatars" is set to No, so I'm not sure it's related to Community Builder. There's no "None" option for the "Use avatar picture from" setting.

I do appreciate your help in trying to sort this out.

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

More
16 years 10 months ago #18604 by xillibit
But this error is very strange, because by default there is an avatar set for each user.

You can try this :
Code:
<?php if ( $fbConfig->userlist_usertype ) echo '<span class = "msgusertype">('.$msg_usertype.')</span>'; ?> <br/> <?php if ($fmessage->userid > 0) { if(isset($msg_avatar)) { echo CKunenaLink:: GetProfileLink($fbConfig, $fmessage- >userid, $msg_avatar); } } else { if(isset($msg_avatar)) { echo $msg_avatar; } } ?>

I don't provide support by PM, because this can be useful for someone else.

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

Time to create page: 0.251 seconds