Bangbay Siboliban
Forum Replies Created
-
Could you paste the entire profile template code?
You’ll have to specify the author of the post when you put the avatar code into the excerpt.
[avatar user="username"]Is this happening for you on the regular wp-admin user profile page?
You’ll have to add
enctype="multipart/form-data"to your form like this:<form enctype="multipart/form-data"> ... your code ... </form>First, I want to be sure that you’re using my plugin WP User Avatar and not the similarly -named User Avatar. Sometimes users mix the two up.
The only difference I see between the posts is the newer post has article:modified_time and og:updated_time added to the meta tags. When I run the post through the debugger, it still gives the error for the og:title.
So, to be clear, WP User Avatar is disabled now? If so, it doesn’t seem like it is a problem with my plugin.
It’s disabled now or was when you first posted the URL? Because I still see the same OG error.
Okay, could you disable WP User Avatar so I can see what changes on the page?
get_wp_user_avatar– please excuse the typo.Could you send me a URL to view with the problem? I assume image:url is added as a meta tag on the page. I’d like to see what value it’s holding.
@jabbamonkey – If you uploaded the avatar and it shows correctly in your user profile, then it’s likely not a problem with my plugin but rather that your theme is set up incorrectly. Are you using a free theme or a custom theme?
Please note that I am very active in helping users of my plugin, and feel free to post a support question.
I’m curious how many users you have and if you have “Disable Gravatar and use only local avatars” checked?
My plugin checks for permissions that distinguish Subscribers from the other standard roles (Contributors, Authors, Editors, Administrators). Your special roles don’t have those permissions either, so they get treated as Subscribers. For a quick solution, you can add this to your functions.php file of your theme:
function wpua_allow_access($offlimits) { // Don't restrict any pages $offlimits = array(); return $offlimits; } if(current_user_can('edit_products')) { // Apply this only to users with 'edit_products' permission; change this to whatever you like add_filter('wpua_subscriber_offlimits', 'wpua_allow_access'); }I don’t know yet how to handle this issue long-term.
I actually don’t see in your CSS that you’ve added those lines that I suggested. If you’re using a caching plugin, you would need to clear your cache. As for why Gravatar images are sized correctly, this is something that I addressed in another topic:
When you use Gravatar, if you ask for a 16×16 image, you’ll get an image exactly that size. If it’s a local avatar, as with any image in your Media Library, you’ll get the image closest to the size you want sized down with HTML width and height attributes. CSS overrides those attributes so that’s why you’re seeing the images in their true sizes. You either need to remove the width: auto or set CSS widths for specific images.
You could uncheck “Show Avatars” in your settings and then in your theme files you would have to change any reference to
get_avatartoget_wp_user_avtaar. If you don’t want avatars in your comments at all, you would have to modify your comments template.