Faisal Alvi
Forum Replies Created
-
Forum: Reviews
In reply to: [Simple Local Avatars] Simply Doesn’t WorkHi @wporg4ssorg, Thank you for sharing your feedback. We’re sorry to hear that you’re experiencing issues with the SLA plugin. We understand how frustrating it can be when things don’t work as expected.
To address your concerns:
- Testing in a Different Setup: We recommend trying the SLA plugin in a different WordPress setup to determine if the issue is specific to your current environment. This will help us identify if there are any conflicts with your existing plugins or theme.
- (OR) Theme Compatibility: It’s possible that your theme might not include the necessary code to display avatars. Please try switching the existing theme to another theme like Twenty Twenty-Four and see if it works there.
Thank you for your patience and understanding.
- This reply was modified 4 months, 2 weeks ago by Faisal Alvi.
Forum: Plugins
In reply to: [Simple Local Avatars] Having trouble getting to display the profile picturesThanks for the report. Can you please share the steps to reproduce this issue along with the details about the settings from Settings > Discussion > Avatar? A screenshot would be helpful.
Forum: Reviews
In reply to: [Simple Local Avatars] Was good but no longer works@lillylark Thank you for the report. The release has been made, and the fix is included in version 2.7.9 of the plugin. Please upgrade to this version to resolve the issue. Thank you for your patience.
Forum: Plugins
In reply to: [Simple Local Avatars] Avatar from commentator is not displayedHi @meike297,
Could you kindly upgrade the plugin to the latest release (2.7.7) and confirm whether the issue has been resolved?
Forum: Plugins
In reply to: [Simple Local Avatars] Avatar from commentator is not displayedHi @meike297,
To troubleshoot the avatar display issue, could you please try temporarily deactivating any caching or minification plugins? This will help us determine if minification is causing the problem. Thank you for your cooperation.
Forum: Plugins
In reply to: [Simple Local Avatars] Avatar from commentator is not displayedHello @meike297,
I understand that you’ve been facing issues. The fact that the avatars are visible in the post/comments indicates that the core functionality is working as expected. The issue might be related to the dashboard display or a conflict with other plugins or updates.
Could you kindly attempt the steps outlined in my previous message and verify if they provide any assistance?
Forum: Plugins
In reply to: [Simple Local Avatars] Avatar from commentator is not displayedHi @meike297,
Thank you for reaching out. I’ve tested the scenario in PHP 8.1.9 and WP 6.3, and the avatars of the users in the comments are displaying properly.
To troubleshoot your issue, you could try the following steps:
- Disable Other Plugins: Temporarily deactivate all other plugins except the SLA plugin. This will help identify if there’s a conflict causing the avatars not to display.
- Review Recent Changes: Check for any recent updates or changes made to your theme or plugins. Sometimes updates can lead to compatibility issues.
- Downgrade PHP: If the issue persists, you might consider temporarily downgrading PHP to a previous version to see if the problem still occurs.
- Browser Cache: Clear your browser cache and refresh the page to ensure avatars are loaded correctly.
If the problem persists after these steps, please provide more details about your setup and any error messages you might be encountering. This will help us pinpoint the issue and assist you further.
Thank you!
Forum: Plugins
In reply to: [Simple Local Avatars] CheckoutHi @pipoulito,
Thank you for the clarification. The SLA plugin does not natively support the feature you’re looking for. However, I’m here to assist you in achieving this functionality. Please note that this process requires some technical knowledge. Here’s a concise breakdown of the steps involved:
- Customize Checkout Template: Create a custom template for the WooCommerce checkout page.
- Display Profile Photo: Integrate code to showcase the user’s profile photo.
- Add Photo Upload Field: Implement an upload field for users to submit a new photo.
- Handle Upload and Validation: Set up code to manage photo uploads and ensure they’re mandatory.
- Save Photo Data: Use WordPress functions to store the uploaded photo as user meta.
Feel free to reach out if you need anything else. I’m here to help!
Thank you!
Forum: Plugins
In reply to: [Simple Local Avatars] CheckoutHi @pipoulito,
Thank you for reaching out. Could you please provide a brief description for more clarity? This will help us offer a more accurate solution.
Thank you!
Forum: Plugins
In reply to: [Simple Local Avatars] Hide Gravatar from the profile page ?Hello @costino80,
Thank you for getting in touch with us. Unfortunately, SLA does not have the option to disable the text you see for Gravatar, as it is outside the scope for now. However, we do have a couple of solutions that you may find helpful.
- Firstly, you can use the “Disable User Gravatar” plugin.
- Alternatively, you can use the
user_profile_picture_description
filter hook to filter the profile page description. You can use the following snippet to hide the description:
add_filter( 'user_profile_picture_description', function ( $description = '', $profileuser = null ) { if ( IS_PROFILE_PAGE ) { $description = ''; } return $description; }
I hope that helps! Please let me know if you have any further questions or concerns.Forum: Plugins
In reply to: [Simple Local Avatars] Limit image file size?Hi @rghedin, thank you for reaching out!
You can easily limit the maximum upload size for images on your WordPress site by using a simple filter hook. To do this, you can add the following code snippet to your theme’s
functions.php
file, or to a custom plugin:add_filter('simple_local_avatars_upload_limit', function() { return 1024*100; // 100 KB });
This code will limit the upload size of images to 100 KB, which you can adjust by changing the number value to your desired file size limit. This will help ensure that your site’s users only upload images that are appropriately sized, which can improve site performance and reduce storage costs.
I hope this helps!
Forum: Plugins
In reply to: [Simple Local Avatars] Upload Avatar using PHPHi @msowah,
Thank you for writing to us! Yes, you can do so with a PHP function.
$sla = new Simple_Local_Avatars(); $sla->assign_new_user_avatar( $url_or_media_id, $user_id );
Where,
$url_or_media_id
is a URL for an image/avatar or an ID of the attachment available in the Media Library.Forum: Plugins
In reply to: [Simple Local Avatars] Still looks to Gravatar even with local default setHello, @eoinogrady, Thank you for reaching out. We are glad that you identified the source of the problem and that it is now working. Please do not hesitate to contact us again if you have any problems in the future.
Forum: Plugins
In reply to: [Simple Local Avatars] Cannot update the avatar via REST api@msowah the following is the sample request call in PHP, sending a?
media_id
?value in the?simple_local_avatar
.<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://mysite.local/wp-json/wp/v2/users/1/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "simple_local_avatar": { "media_id": 9218 } }', CURLOPT_HTTPHEADER => array( 'Authorization: Basic YWFais46bzlAvlVdCBrdVlnIGxPRTAgOG1ycCBiMzBzIFJYSEg=', 'Content-Type: application/json', 'Cookie: woocommerce_multicurrency_forced_currency=INR; woocommerce_multicurrency_language=en' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Forum: Plugins
In reply to: [Simple Local Avatars] v2.7.2 thows TypeError with PHP 8.1Ah sorry, not an issue of this plugin, but the update seems to have been just a trigger for some issue in combination with Wordfence and W3 Total Cache.
It’s?fantastic?that?you?figured it out!
- This reply was modified 1 year, 10 months ago by Faisal Alvi.