C?t?lin Dogaru
Forum Replies Created
-
Hey,
Thanks for your feature request! I’ll consider it for the next release.
Best,
C?t?linForum: Plugins
In reply to: [Avatar Manager] Are We Able To Remove Avatar Rating Part Completely?Closing this, I don’t think I can do anything like this in the plugin. If any suggestions please reopen.
Forum: Plugins
In reply to: [Avatar Manager] Are We Able To Remove Avatar Rating Part Completely?Hey vitaelis,
Short answer, not really. The avatar rating is part of WordPress core. Avatar Manager overrides the get_avatar() function to pull a self-hosted image instead of Gravatar without affecting or limiting any core functionalities.
An workaround would be to simply hide it via CSS or replace the avatar rating part with a hidden input.
<input type="hidden" name="avatar_manager_custom_avatar_rating" value="G">
If this works for you the best option would be to copy the
avatar_manager_edit_user_profile()
function to your theme/plugin and change it there. Useadd_action()
/remove_action()
functions to add your customized action action.// Remove Avatar Manager actions remove_action( 'edit_user_profile', 'avatar_manager_edit_user_profile' ); remove_action( 'edit_user_profile', 'avatar_manager_edit_user_profile' ); // Replace with your modified actions add_action( 'edit_user_profile', 'my_avatar_manager_edit_user_profile' ); add_action( 'show_user_profile', 'my_avatar_manager_edit_user_profile' );
This way you can always update Avatar Manager to newer versions without getting your modifications rolled back. Please let me know if this helps.
Best,
C?t?linForum: Plugins
In reply to: [Avatar Manager] Choose Image from Media Library button not workingGreat, thanks for your patience! If you want to show some love, there’s more you can do.
rblythe, please let me know your name as I would like to add you to the contributors list. You helped solving this issue. ??
Awesome, glad I was able to help! Thanks for your kind words and for getting involved, Natalia! Also you don’t need to apologise for not being happy from the first time. You were helpful in the end, don’t worry ??
Great! Let me know if we can close this as resolved.
You can find yourself here, on the contributors list. It will be updated on the plugin description too in the next release.
If interested how you can help preserve this project, there’s more you can do.
Good luck to you too!
Forum: Plugins
In reply to: [Avatar Manager] BuddyPress conflictHey LordZoltan,
Sorry I’ve missed that. Thanks for your kind words! Yes, BuddyPress has it’s own code to handle profile pictures. My primary focus is to keep Avatar Manager updated with the WordPress core. Unfortunately I haven’t tested it recently with BuddyPress so I don’t know how can I help you. If you want to keep the BuddyPress functionality I think you can write a migration script which gets your users avatars and inserts them into BuddyPress. Another solution would be to take a look at the available BuddyPress hooks and try to replace the uploading form. Please let us know if you manage to find a solution.
Good luck,
C?t?linHello MrWp007,
Can you help me understand what’s the request? Are you suggesting to add support for WooCommerce? I haven’t tested it yet with WooCommerce but I think it’s good idea. I’ll mark this as a feature request.
Thanks,
C?t?linHey,
Sorry for this. It was an intented change in v1.4.0 targeting to increase compatibility with themes and plugins providing front-end profile editors. The plugin uses
wp_enqueue_media()
to make the media uploader available.This will be restricted to profile pages only in the next release. I’ve added a fix on the development branch of the plugin. Would you mind downloading the zip and testing again?
Best,
C?t?linNote: the above code, dumped on every page (for logged in users) after activating the plugin, is part of the WordPress core. It is also loaded by WordPress when media component is used (media library, posts, and other admin pages like customizer etc.). It’s not something unusual, but it should be required (by Avatar Manager) only on profile pages.
I’ve added a fix on the development branch of the plugin. Would you mind downloading the zip and testing again?
Please let me know if this works as expected and I’ll figure out what’s the best solution to keep everyone happy until a proper release. Thanks for helping out!
Great, finally got it! ?? The issue is that it adds too much code in front-end, apparently unused, right?
It was an intended modification in v1.4.0 due to an increasing number of feature requests to support themes/plugins adding front-end profile editors. But I think you are right, this shouldn’t be the default behavior, the code has changed and introduced dependencies (like media library support) that aren’t that light anymore.
I’ll update the code accordingly in the next release (v1.6.1 was released just 2 days ago). It is safe to use, if you want to, the fix provided in the other thread until a new release is out. A similar patch will be included with upcoming updates.
Please let me know your name as I would like to add you to the contributors list. You just helped resolving the other issue too.
Ok, let me understand. That code does appear in the page source only or is it affecting your page display?
If it’s not breaking the page layout, does it have any side effects (like errors), except it is loaded?
Thank you for the data provided. I’ll look into it and let you know what happened once I figure it out. The dumped code isn’t part of Avatar Manager, it’s actually the WordPress uploader code. Do you have a theme or plugin that enables front-end editing for user profiles?
Please see this related issue for a possible fix. Can you confirm if this works?
I haven’t discovered yet how to reproduce the issue with a fresh install of WordPress. It would be great if I can take a look at your website or if you can help with the steps to get the exact same results on a WordPress copy.
Hey nnz,
Can you provide an example of what you’ve encountered? This doesn’t sound familiar at all with what the plugin really does (you can check yourself the plugin code). It may be caused by another plugin conflicting with Avatar Manager?
Please let me know if there’s anything that I can do to help.
Best,
C?t?lin