My comments tpl displays a user's "user image" or avatar from their profile.

When a user adds a comment via the Ajax Comments module, the image that shows up next to their comment is the default site image, not the user's image.

A page refresh fixes the problem, so everything seems to be getting stored correctly on the back end, but whatever process generates the HTML to be injected into the page after the AJAX callback seems to be incorrectly handling user images.

I've attached an image to better illustrate.

CommentFileSizeAuthor
ajax_issue.png434.59 KBSlayJay

Comments

acouch’s picture

Status: Active » Postponed (maintainer needs more info)

Can you post your comments.tpl.php?

acouch’s picture

Can you post your comments.tpl.php?

Aurochs’s picture

I have same issue and i tried default templates from core themes - no luck

Aurochs’s picture

Thats critical to me i spent all day looking for alternative modules and failed because its a good way of nice display and caching for anonymous users... the only one problem really is avatar

acouch’s picture

Assigned: Unassigned » acouch

Im sure this is solvable. Will take a look as soon as I can.

Aurochs’s picture

i disabled boost module - no help, i use nginx+apache2 and i dont use node.js integration.

lelutin’s picture

experiencing the same issue here.. however I personally don't consider this a major issue, since it doesn't prevent anything from working right. it's just annoying.

Aurochs’s picture

i am considering turning back to disqus :(

javdich’s picture

Same problem here, it uses the default user picture, than once the page is refreshed it displays the actual user picture.

acouch’s picture

Status: Postponed (maintainer needs more info) » Needs work

I made a partial fix for this. The module will now show your user profile picture. This is a temporary fix. I need to update it to run through the theme process. Would someone someone share, or email me their tpl file so I have something to play with?

javdich’s picture

The new fix seemed to work great for me. Thanks!

Aurochs’s picture

new fix worked great
pls let me have your email to send you files
also pls advise which tpl files i should send?

  • acouch committed 2c686b2 on 8.x-1.x
    Issue #1352734 adding user profile picture to comment preview
    
    
formatC'vt’s picture

Issue summary: View changes
Status: Needs work » Postponed (maintainer needs more info)

try latest dev

formatC'vt’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)