This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

User avatars issues


avatar
error 232
From: -
User avatars issues

In the news comment section some avatars show up, some not.

CT RC3
IPB2.3.5

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: User avatars issues
avatar
OP 232
From: -
That works. Thank you.
1 Re: User avatars issues
avatar
Editor
0
From: -
Interesting, it looks like that the way IPB resize things is different then in other products. Basically, it seems that they are using the width/height parameters to resize the image in the browser rather then resizing it directly on the server.

You could try the following small modification in template news_story_comment_avatar to resize all avatars to 100x100.

Replace:
<img src="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}users{$insert['param_action']}avatar{$insert['param_id']}{$insert['newscomment_author_avatar']}" alt="" />


with:
<img src="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}users{$insert['param_action']}avatar{$insert['param_id']}{$insert['newscomment_author_avatar']}" height="100" weight="100" alt="" />
1 Re: User avatars issues
avatar
OP 232
From: -
Works like a charm. Just one thing. Big avatars are not resized.
1 Re: User avatars issues
avatar
Editor
0
From: -
Thanks for that table. This table was a great help to understand IPB's avatar system better. I attached an updated classes/class_uwrapper_ipb2.php to this post.

Please try it out and let me know how it works.
   class_uwrapper_ipb2_fix.zip
1 Re: User avatars issues
avatar
OP 232
From: -
Table sent.
1 Re: User avatars issues
avatar
Editor
0
From: -
Are they blank? Can you possibly send me a SQL dump of your IPB member_extra table?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.