• Welcome to PHPVIBE Forums. Please log in.

When making a comment your profile not show

Started by spirog,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spirogTopic starter

Hi when I go and make a comment and I don't have a profile photo added,
- the comment shows up but the profile image is a dead image - Until you refresh page.
Then it works.
Is there a quick fix for this ?

Thanks

Spiro
  •  

PHPVibe R

Hi,

If you don't have a profile avatar the behavior is normal, as the replacements are jquery created.

try calling the initial() plugin on that avatar in the on the fly box, but it may fail. Have to test this.
Important!
The forums are not intended for support! There is Dedicated support available.
The troubleshooting can help a lot!
  •  

spirogTopic starter

#2
in comments.php i found this code below


} elseif($to < 1) {
   $uhtml .= '<li id="reply-'.$cobj.'-'.$to.'" class="addcm '.$xtra.'">
   <img class="avatar" data-name="'.addslashes(user_name()).'" src="'.thumb_fix(site_url().'/storage/uploads/def-avatar.jpg', true, 55, 55).'">

but in storage/uploads/    there is only def-avatar.png
when I make a copy of avatar and rename it to def-avatar.jpg it works but its not the letter  of the user its the actual def-avatar.jpg if I remove def-avatar.jpg and leave only def-avatar.png I have to refresh to see the profile image ( letter of Image) example is >> user name : Mike
the image shows the letter M as default image.

so anyway we can make the default profile image with the letter M show right away, without refresh page ?

thanks
unless you make page refresh every time you add a comment when you press comment button ? then it will show the default profile Letter M all the time

thanks

Spiro
  •  

Similar topics (2)

Replies: 0
Views: 1639

Replies: 1
Views: 2153