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 [Closed] Restrict avatar size

10 Posts
4 Users
1 Reactions
5,495 Views
Johnny
Posts: 19
Topic starter
(@johnny)
Eminent Member
Joined: 9 years ago

Hi,

I've been searching since yesterday for a solution, i did not find it.

Is there some option / script to limit the uploaded avatar size (by user) to 100 x 100 px ?

Can i input somewhere this dimensions ?

Regards,

John

9 Replies
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

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

Find this line and change 150 to 100:

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

 

Johnny
Posts: 19
Topic starter
(@johnny)
Eminent Member
Joined: 9 years ago

Hello Robert,

and IF i update wpforo in the near future i must do the modification again ?

Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Sure, you're changing core code, you'll have to do that with each update. There is no other options yet to change avatar thumbnail generation sizes.

Glue42
Posts: 23
(@glue42)
Eminent Member
Joined: 9 years ago

Hi, I've tried using the "wpForo Online Members" with avatars. However they appear in the original size (96px I think) and are too big to use in that way. How to resize them in the widget ( I guess I need to write sth in Styles>Custom CSS)? So that they appear like 32px by 32 px and maybe add their names next to them (or under)?

Page 1 / 2