Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

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
12 years 4 months ago - 12 years 4 months ago #157087 by hazael
In the posts written by guests appear avatars of users who browse the forum.

in forum - I see as a user
image missing http://piekielko.com/images/zewn/login.jpg

in forum - I see as a guest
image missing http://piekielko.com/images/zewn/guest.jpg

in module - I see as a user
image missing http://piekielko.com/images/zewn/login2.jpg

in module - I see as a guest
image missing http://piekielko.com/images/zewn/guest2.jpg

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

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

More
12 years 4 months ago #157135 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
Code:
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
chnage to
Code:
<?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
Code:
<span class="kavatar"><?php echo $this->profile->getLink( $avatar ); ?></span>
chnage to
Code:
<?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
12 years 4 weeks ago #159385 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
11 years 8 months ago #161867 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.

Time to create page: 8.138 seconds