-
Author
-
February 8, 2019 at 17:47 #218260
infodale
ParticipantHi!
The results of my user searches show me (attached screenshot) boxes with a very small image of the user, how can I make it show me bigger images of the person? I have tried to modify it through CSS styles but I do not get what I want.
Thanks for your help,Aurelio.
February 9, 2019 at 12:07 #218289Kieran_SQ
ModeratorHi,
Sorry to hear you’re having an issue with the avatar size. I cannot see your members page without being logged in and therefore cannot assess the issue. Please can you update this ticket, in a private reply, with admin credentials for your site so I can assist you with this.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 9, 2019 at 19:51 #218302infodale
ParticipantOK,
Admin: Teresa
Pass: rmndlvrd1740Thank you.
February 10, 2019 at 10:59 #218315Kieran_SQ
ModeratorHi,
The account you provided doesn’t appear to be an admin account as I cannot access /wp-admin/. As I cannot access the back-end please can you carry out the below test and let me know the outcome.
– Disable JetPack lazy image loading
– Clear all caches on server and WordPress
– Visit members page and purge browser cache (Ctrl+F5)Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 11, 2019 at 16:14 #218339infodale
ParticipantHi Kieran!
I did what you told me but everything is the same. I give you the data of another administrator:
aaca65
12345rmndlvrdThank you.
February 11, 2019 at 19:24 #218361Kieran_SQ
ModeratorHi,
Please check this support article on how to change the avatar image size https://archived.seventhqueen.com/general/article/increase-profile-profile-image-size-increase-avatar-size-buddypress.
For the avatar you have highlighted you should use the below code
COPY CODEif ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) ) define( 'BP_AVATAR_THUMB_WIDTH', 120 ); //change this with your desired thumb width if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) define( 'BP_AVATAR_THUMB_HEIGHT', 120 ); //change this with your desired thumb height120 represents 120px, change the two 120 values to an equal number of your choosing. This snippet should be added to your KLEO Child theme’s functions.php file.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 12, 2019 at 18:32 #218409infodale
ParticipantHi Kieran!
I did what you told me, even I created bp-custom.php file but there is no expected changes like i thought. I include a screenshot. What could be the problem?
Thanks,Aurelio.
February 12, 2019 at 18:35 #218412infodale
ParticipantThere is something preventing the resizing of avatars. Curiously, the first time I wanted to see the changes, the images seemed larger and then returned to the size you can see.
Thanks.
Aurelio
February 12, 2019 at 19:18 #218414Kieran_SQ
ModeratorHi Aurelio,
I’ll assign this ticket to a higher level of support for review. They’ll be in touch with you as soon as they can, Monday to Friday, East European Time.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 12, 2019 at 23:48 #218429infodale
ParticipantOk, thanks for your support.
It is very curious this, the images that correspond to online users widget modified their sizes, But, they do if I upload a new photo, the old ones do not recognize them to change their size (see the screenshot). The bad thing is avatars or users images from a search result do not resize and that is what I need.
Thank you,
Aurelio.
February 13, 2019 at 17:28 #218485Radu
ModeratorHi,
I think you should re-generate the photos using a plugin like this one https://wordpress.org/plugins/regenerate-thumbnails/
Also i think you should specify also the BP_AVATAR_FULL_HEIGHT and BP_AVATAR_FULL_WIDTH : https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
Also after that our theme wraps the avatar to certain sizes and for example for directory the avatar size can be increased using the next css snippet
COPY CODE#buddypress #friend-list li div.item-avatar, #buddypress #member-list li div.item-avatar, #buddypress #members-list li div.item-avatar { width:150px; height:150px; }Also it may interfere with your current custom css, making the avatars non-centered, remove your custom css for that.
Let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 14, 2019 at 00:25 #218523infodale
ParticipantHi Radu!
Thanks for your advice, finally with a few turns I could solve the problem. The only thing not expected is that a new problem has appeared, now I can not upload the profile image, the following message appears: “Upload error! The error was: That photo is too big, please upload less than 0 B”
How could I give a solution to this?
Thanks for your help,
Aurelio.
February 14, 2019 at 15:14 #218537Radu
ModeratorHi,
I think it’s related to the allowable avatar size in kb
add also this to bp-custom.php or in wp-config.php
//1 MB file
COPY CODEdefine( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', 10 * 1024 )or
COPY CODEadd_filter( 'bp_core_avatar_original_max_filesize', function() { return 5120000; // 5mb } );https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
https://www.google.com/search?q=BP_AVATAR_ORIGINAL_MAX_FILESIZE
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 14, 2019 at 17:38 #218546infodale
ParticipantHi!
Thanks for your help, the problem was solved correctly. Now, I forgot to consult you something that always happens, when I upload a new profile image, after selecting it, it asks me to adjust the image (size), the inconvenience is image can not be seen, how can I solve that? I enclose a screenshot.Thank you.
February 14, 2019 at 19:06 #218557Radu
ModeratorHi,
There should be the resize avatar step but for some reason the photo isn’t there or it’s very very small, in general this kind of issues are caused by some custom css from child theme or by some template of buddy-press overwritten in the child theme. so i recommend you to disable child theme by activating parent and all plugins except buddypress and the css modifications if you had place them in other place then style.css from child theme.
Make sure you have theme updated.
Let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.