×
Blue Eagle (1.5.0) for K5.1 is released (20 Jul 2018)

Please update the Kunena Blue Eagle to 1.5.0 if you use Kunena 5.1.
We made several bug fixes and improvements. Also Blue Eagle has now all the features from Crypsis.
Download: www.kunena.org/download/templates/category/blue-eagle-5

× 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
4 years 1 month ago - 4 years 1 month 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: 4 years 1 month ago by hazael.

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

More
4 years 1 month 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 10 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 6 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.231 seconds