AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Restrict avatar size

10 Posts
4 Users
1 Reactions
6,572 Views
Johnny
Posts: 19
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@johnny)
Eminent Member
Joined: 10 years ago
[#3684]

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: 10729
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@johnny)
Eminent Member
Joined: 10 years ago

Hello Robert,

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


Robert
Posts: 10729
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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
Share: