Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Solved] Resizing avatars to optimize site speed

4 Posts
2 Users
1 Reactions
904 Views
Posts: 118
 eel
Topic starter
(@eel)
Estimable Member
Joined: 5 years ago

I hate a slow website! What is the best way to allow avatars without slowing the site?

Currently, I have gravatar enabled. Members can also upload avatars, which they choose to do, but they are  large and slow the site. If I resize them, it's fine for the widget and the forum but the pic on the profile page is distorted.

What am I missing here?

 

Thanks!

3 Replies
Alvina
Posts: 1861
Moderator
(@alvina)
Member
Joined: 6 years ago

Hi @eel,

If I resize them, it's fine for the widget and the forum but the pic on the profile page is distorted.

Avatar thumbnail generator script is located in wpforo/wpf-includes/class-members.php file.

Find this line and change the value as you need:

$image->resize( 150, 150, true );

Also please read this FAQ topic: https://wpforo.com/community/faq/forum-is-slow/

Posts: 118
 eel
Topic starter
(@eel)
Estimable Member
Joined: 5 years ago

Thank so much. This was my last question. Off to leave a review. I really appreciate how helpful you are. It's astonishing, really. Have a good day!

 

1 Reply
Alvina
Moderator
(@alvina)
Joined: 6 years ago

Member
Posts: 1861

Hi @eel,

Nice!

Thank you very much for your kind words and for your review too. Nice!