Notifications
Clear all

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

4 Posts
2 Users
1 Reactions
667 Views
Posts: 114
 eel
Topic starter
(@eel)
Estimable Member
Joined: 4 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: 1863
Moderator
(@alvina)
Member
Joined: 5 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: 114
 eel
Topic starter
(@eel)
Estimable Member
Joined: 4 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: 5 years ago

Member
Posts: 1863

Hi @eel,

Nice!

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