Keyword

Display user images in comments

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago - 8 years 11 months ago #148478 by NormanBLN
Display user images in comments was created by NormanBLN
Hello,

how I can actived the user profil images from registred users in the comment system? Now it show the standart "people.jpg" but the the profil image from the user ?! For a example you can see it here offensichtich

A second question. How I can clear the comment form after transmit?

Greetings Norman
Last edit: 8 years 11 months ago by NormanBLN. Reason: a error

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #148489 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display user images in comments
Hello Norman,

Gravatar is being used for the commenter's avatar. If that mail is registered on gravatar.com (or multiple other sites) then their avatar is being loaded automatically.

Finally registered users (once they login) can use their own avatar in the user profile's page.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago #148511 by NormanBLN
Replied by NormanBLN on topic Display user images in comments
Hi Krikor,

Thanks for your answer. We had not so much authors, so we don't need Gravatar and the loading time of our site is better.

Our problem is our image from the finally registered users will don't showed. In our example is Torsten a finally registered user. He is author and is Logged-In in front- and backend. He answered the comment from Hanna and he was logged-in at the frontend, but K2 don't show his profile-image?!

Greetings Norman

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #148531 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display user images in comments
Is the avatar uploaded through K2's profile?
Finally have you tried browsing the site using a different. This will eliminate the possibility of a template issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago #148539 by NormanBLN
Replied by NormanBLN on topic Display user images in comments
Hello Krikor,

all our authors have a profile images. In the articles it will showed - only in the comments we miss the images?!
We try firefox and chrome (32&64) all the same - no author images. :(

Here you can see it. Jana is author and has a profile image under the article, but her commend has again no image :( !

Greetings

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #148542 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display user images in comments
jmp.sh/uqoO6Iq This code I am seeing is not the default code of K2.

If you are using a lazy load extension, try disabling this extension.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago #148547 by NormanBLN
Replied by NormanBLN on topic Display user images in comments
Hi Krikor,

Sorry, the lazy load is not the reason. We use the jch optimizer and the result with missing proflie images is the same with and without the lazy load. We try it. Our screenshot shows the problem the image "people.jpg" is the standard image and not the correct profile image. This is in that case "/media/k2/users/14.jpg"


And this will load for the author image, but why not for the comment area?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #148568 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display user images in comments
By default, it works fine.
You can see it in action here: www.joomlaworks.net/blog/item/186-simple-image-gallery-pro-version-3-and-a-new-design-approach-for-our-components

It is either a template issue or a 3rd party conflict.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago - 8 years 11 months ago #148582 by NormanBLN
Replied by NormanBLN on topic Display user images in comments
Yes, that is what we like to see. We don't change things on the comments and you can see the profiles have images.

Okay - we check the 3rd party - but with the same result.
We cheak that with the standard template protostar - and yes, you are right - here we found the missing the images. So we have obviously a problem in our template – damn!

Do you had a idea where I can look what makes the problem?
Last edit: 8 years 11 months ago by NormanBLN.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #148584 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display user images in comments
I would place my bet on the item.php file.
The original code which generates the avatar is:
          <?php if($comment->userImage): ?>
          <div class="itemCommentsAvatar">  
            <img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" />
          </div>
          <?php endif; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum