{"id":26793,"date":"2013-12-18T07:13:42","date_gmt":"2013-12-18T07:13:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/author-avatar\/"},"modified":"2014-03-07T23:19:38","modified_gmt":"2014-03-07T23:19:38","slug":"author-avatar","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/author-avatar\/","author":13537110,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"3.8.41","requires":"3.5.1","requires_php":"","requires_plugins":null,"header_name":"author_avatar","header_author":"Guillaume Kanoufi","header_description":"","assets_banners_color":"dcdddd","last_updated":"2014-03-07 23:19:38","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/lostwebdesigns.com","header_plugin_uri":"http:\/\/lostwebdesigns.com","header_author_uri":"http:\/\/lostwebdesigns.com","rating":0,"author_block_rating":0,"active_installs":20,"downloads":4843,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"guillaume-lostweb","date":"2014-03-07 23:19:38"}},"upgrade_notice":{"1.0.2":"<p>Removed <code>screen_icon<\/code> as deprecated with wordpress 3.8<\/p>","1.0.1":"<p>Updated <code>update_usermeta()<\/code> with <code>update_user_meta()<\/code> as update_usermeta is deprecated since v3.0<\/p>","1.0":"<p>No upgrade notice yet, first version of this plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":824519,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from\nthe \/assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the \/assets\ndirectory take precedence. For example, <code>\/assets\/screenshot-1.png<\/code> would win over <code>\/tags\/4.3\/screenshot-1.png<\/code>\n(or jpg, jpeg, gif).","2":"This is the second screen shot"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9249,9247,127,7894,9246],"plugin_category":[44],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-26793","plugin","type-plugin","status-publish","hentry","plugin_tags-author-avatar","plugin_tags-custom-user-profile-picture","plugin_tags-gravatar","plugin_tags-profile-picture","plugin_tags-user-profile","plugin_category-discussion-and-community","plugin_committers-guillaume-lostweb"],"banners":{"banner":"https:\/\/ps.w.org\/author-avatar\/assets\/banner-772x250.png?rev=824519","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/author-avatar_dcdddd.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Add an upload field in the user profile admin - Don't want to use gravatar profile picture, or just don't have one, just download this plugin. It will add a custom field in the user admin with the possibility to upload your own. Once uploaded, it will add the picture url inside the usermeta table so you can easily display it with <code>get_the_author_meta<\/code> .<\/p>\n\n<p>Translation ready and already available in French.<\/p>\n\n<ul>\n<li><p>Easy to use, once activated and your picture uploaded, grab the source url with:<\/p>\n\n<\/li>\n<\/ul>\n\n<p>Just add an image tag where you want the picture to be displayed like so:<\/p>\n\n<pre><code> &lt;img src=\"&lt;?php echo $user_meta_image;?&gt;\" alt=\"My Custom user Profile Picture\"&gt; \n<\/code><\/pre>\n\n<p>Et voil\u00e0!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload `` to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress<\/li>\n<li>grab the source url with <code>$user_meta_image = esc_attr( get_the_author_meta( 'user_meta_image', get_the_id() ) );<\/code>. Just add an image tag where you want the picture to be displayed like so: <code>&lt;img src=\"&lt;?php echo $user_meta_image;?&gt;\" alt=\"My Custom user Profile Picture\"&gt;<\/code><\/li>\n<li>Style as you wish.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20about%20if%20i%20want%20to%20use%20a%20user%20profile%20picture%20outside%20of%20it%27s%20author%20page%3F'><h3>What about if i want to use a user profile picture outside of it's author page?<\/h3><\/dt>\n<dd><p>It's pretty easy, just change the last parameter \"get_the_id()\" wjth the id of the user you want to show, as follow:\n      $user_meta_image = esc_attr(get_the_author_meta('user_meta_image', 1));<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Commit<\/li>\n<\/ul>","raw_excerpt":"Add an upload field in the user profile admin to add a custom profile picture into usermeta table.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26793"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/guillaume-lostweb"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26793"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26793"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26793"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26793"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26793"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}