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
17 years 8 months ago #7013
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: 565
Less
More
Posts: 28
Thank you received: 0
Less
More
Posts: 3
Thank you received: 0
Less
More
Posts: 32
Thank you received: 0
17 years 8 months ago #7516
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
17 years 8 months ago #7627
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.