×
Blue Eagle 5 v1.5.4 has been Released (13 Sep 2020)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.5.4 which is now available for download. This version addresses most of the issues that were discovered in development.

× 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
6 years 3 months ago - 6 years 2 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: 6 years 2 months ago by hazael.

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

More
6 years 2 months ago #2 by hazael
Replied by hazael on topic My temporary solution
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
5 years 11 months ago #3 by xamire
Replied by xamire on topic My temporary solution
Thanks SOOO much! This has saved a buttload of time and effort!

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

More
5 years 7 months ago #4 by xamire
Replied by xamire on topic My temporary solution
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 edit your message.
Time to create page: 0.270 seconds