×
K5.1.1 is released (10 Jun 2018)

The Kunena team is pleased to announce Kunena 5.1.1 [K 5.1.1].
Please read the blog post for information:

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Solved Problem with avatars in posts of guests

More
3 years 11 months ago - 3 years 11 months ago #1 by hazael
In the posts written by guests appear avatars of users who browse the forum.

in forum - I see as a user


in forum - I see as a guest


in module - I see as a user


in module - I see as a guest


  • Joomla 3.3
  • Kunena 3.0.5
  • Jomsocial 3.2.0.5
  • PHP Version 5.4.28
  • piekielko.com
Last edit: 3 years 11 months ago by hazael.

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

More
3 years 11 months ago #2 by hazael
in components/com_kunena/template/blue_eagle/html/topic/default_profile_vertical.php

Ad.1 My temporary solution - guest without avatar:

in line 24
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
chnage to
<?php if ($this->profile->userid > 0): ?>
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
<?php endif; ?>

Ad.2 My temporary solution - guest with avatar:

in line 24
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
chnage to
<?php if (strpos($this->profile->getLink( $avatar ), 'kwho-user')) : ?>
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
<?php elseif (strpos($this->profile->getLink( $avatar ), 'kwho-guest')) : ?>
<span class="kavatar"><img src="/images/profiletype/guest.png" alt="guest"></span>
<?php endif ;?>

:)
The following user(s) said Thank You: xamire

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

More
3 years 8 months ago #3 by xamire
Thanks SOOO much! This has saved a buttload of time and effort!

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

More
3 years 4 months ago #4 by xamire
Did you figure out which file handles the guest thumbnail? Those are still showing up as my own avatar if the person posted as a guest.

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

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