×
Kunena 6.0.8 Released (17 Jan 2023)

The Kunena team has announce the arrival of Kunena 6.0.8 [K 6.0.8] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.

× This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question Guest avatar

More
13 years 10 months ago #1 by OPEN365
Guest avatar was created by OPEN365
I just noticed that when guests create a post there is no avatar added to post. Any ideas on guest avatars?

J!1.59
Jom Social 1.1.142
PHP Version: 5.2.6
Image Processor: GD2
Attachments:

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

More
13 years 10 months ago #2 by Matias
Replied by Matias on topic Re:Guest avatar
This is true. We are looking for a fix for this one.

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

More
13 years 10 months ago #3 by OPEN365
Replied by OPEN365 on topic Re:Guest avatar
OK, awesome Matias!

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

More
13 years 10 months ago #4 by maniek
Replied by maniek on topic Re:Guest avatar
I have this bug on my board too. :)!

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

More
13 years 10 months ago #5 by NLkaiser
Replied by NLkaiser on topic Re:Guest avatar
Matias wrote:

This is true. We are looking for a fix for this one.


jomcomment with jomsocial intergration has the same problem so I think it is a jomsocial bug and not a kunena bug

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

More
13 years 10 months ago #6 by hoefti
Replied by hoefti on topic Re:Guest avatar
Hello from Germany

open flat.php in default_ex

edit
<!-- Avatar -->
<?php // (JJ) AVATAR
if ($fbConfig->avataroncat > 0) { ?>


<span class="topic_latest_post_avatar">
<?php
if ($leaf->userid) 
{
if ($fbConfig->avatar_src == "jomsocial")
{
// Get CUser object
$user =& CFactory::getUser($last_reply[$leaf->id]->userid);
$useravatar = '<img class="fb_list_avatar" src="' . $user->getThumbAvatar() . '" alt=" " />';
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, $useravatar);
}
else
{
$javatar = $last_reply[$leaf->id]->avatar;
if ($javatar!='') {
if ($fbConfig->avatar_src == "cb") {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="images/comprofiler/'.$javatar.'" alt="" />');
} else {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="'.(!file_exists(KUNENA_ABSUPLOADEDPATH . '/avatars/s_' . $javatar)?KUNENA_LIVEUPLOADEDPATH.'/avatars/'.$javatar:KUNENA_LIVEUPLOADEDPATH.'/avatars/s_'.$javatar) .'" alt="" />');
}
} else {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="'.KUNENA_LIVEUPLOADEDPATH.'/avatars/s_nophoto.jpg" alt="" />');
}
}
}?>
</span>
<?php } ?>
<!-- /Avatar -->

to
<!-- Avatar -->
<?php // (JJ) AVATAR
if ($fbConfig->avataroncat > 0) { ?>


<span class="topic_latest_post_avatar">
<?php
if ($leaf->userid) 
{
if ($fbConfig->avatar_src == "jomsocial")
{
// Get CUser object
$user =& CFactory::getUser($last_reply[$leaf->id]->userid);
$useravatar = '<img class="fb_list_avatar" src="' . $user->getThumbAvatar() . '" alt=" " />';
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, $useravatar);
}
else
{
$javatar = $last_reply[$leaf->id]->avatar;
if ($javatar!='') {
if ($fbConfig->avatar_src == "cb") {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="images/comprofiler/'.$javatar.'" alt="" />');
} else {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="'.(!file_exists(KUNENA_ABSUPLOADEDPATH . '/avatars/s_' . $javatar)?KUNENA_LIVEUPLOADEDPATH.'/avatars/'.$javatar:KUNENA_LIVEUPLOADEDPATH.'/avatars/s_'.$javatar) .'" alt="" />');
}
} else {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="'.KUNENA_LIVEUPLOADEDPATH.'/avatars/s_nophoto.jpg" alt="" />');
}
}
}

else {
echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, '<img class="fb_list_avatar" src="'.KUNENA_LIVEUPLOADEDPATH.'/avatars/nophoto.jpg" alt="" />');
                        }



?>
</span>
<?php } ?>
<!-- /Avatar -->

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

More
13 years 8 months ago - 13 years 8 months ago #7 by stickman1984
Replied by stickman1984 on topic Re:Guest avatar
Hi, does anybody have a fix for this issue yet? This forum doesn't have this issue!

I have tried Hoefti's code (above), but it results in all avatars looking the same, i.e. the avatars my users upload are not shown, and instead user and guest avatars are all the same.
Last edit: 13 years 8 months ago by stickman1984.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.057 seconds