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
Less
More
Posts: 28
Thank you received: 0
15 years 1 month ago #1
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
Please Log in or Create an account to join the conversation.
Less
More
Posts: 7245
Thank you received: 566
Less
More
Posts: 28
Thank you received: 0
Less
More
Posts: 3
Thank you received: 0
Less
More
Posts: 32
Thank you received: 0
15 years 1 month ago #5
by NLkaiser
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.
Less
More
Posts: 14
Thank you received: 0
15 years 1 month ago #6
by hoefti
Hello from Germany
open flat.php in default_ex
edit
Code:
<!-- 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
Code:
<!-- 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.
Less
More
Posts: 8
Thank you received: 0
14 years 11 months ago - 14 years 11 months ago #7
by stickman1984
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.
Please Log in or Create an account to join the conversation.