{"id":19103,"date":"2012-07-19T23:26:11","date_gmt":"2012-07-19T23:26:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/baw-gravatar-google-image\/"},"modified":"2012-09-27T07:14:50","modified_gmt":"2012-09-27T07:14:50","slug":"baw-gravatar-google-image","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/baw-gravatar-google-image\/","author":6016133,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.9.3","stable_tag":"trunk","tested":"3.4.2","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"BAW Gravatar Google image","header_author":"juliobox","header_description":"","assets_banners_color":"fdf1d9","last_updated":"2012-09-27 07:14:50","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=RB7646G6NVPWU","header_plugin_uri":"http:\/\/www.BoiteaWeb.fr\/ggi","header_author_uri":"http:\/\/www.BoiteaWeb.fr","rating":2.5,"author_block_rating":0,"active_installs":40,"downloads":7655,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Nothing.<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":"1","5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"574910","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"604518","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"604518","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"604518","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"604518","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"604518","resolution":"5","location":"assets"}},"screenshots":{"1":"Discussion options with news","2":"Avatars before this plugin","3":"Avatars after this plugin!","4":"New possible generated avatars (v1.9)","5":"Comment moderation with 3 more action links","6":"The mail sent to the the user for whom a google photo have been selected"}},"plugin_section":[],"plugin_tags":[129,146,150,11157,127],"plugin_category":[44,50,52],"plugin_contributors":[78208],"plugin_business_model":[],"class_list":["post-19103","plugin","type-plugin","status-closed","hentry","plugin_tags-avatar","plugin_tags-cache","plugin_tags-google","plugin_tags-google-image","plugin_tags-gravatar","plugin_category-discussion-and-community","plugin_category-media","plugin_category-performance","plugin_contributors-juliobox","plugin_committers-juliobox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/baw-gravatar-google-image_fdf1d9.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/baw-gravatar-google-image\/assets\/screenshot-1.png?rev=604518","caption":"Discussion options with news"},{"src":"https:\/\/ps.w.org\/baw-gravatar-google-image\/assets\/screenshot-2.png?rev=604518","caption":"Avatars before this plugin"},{"src":"https:\/\/ps.w.org\/baw-gravatar-google-image\/assets\/screenshot-3.png?rev=604518","caption":"Avatars after this plugin!"},{"src":"https:\/\/ps.w.org\/baw-gravatar-google-image\/assets\/screenshot-4.png?rev=604518","caption":"New possible generated avatars (v1.9)"},{"src":"https:\/\/ps.w.org\/baw-gravatar-google-image\/assets\/screenshot-5.png?rev=604518","caption":"Comment moderation with 3 more action links"}],"raw_content":"<!--section=description-->\n<p>This plugin takes place between the gravatar picture and the default avatar return. If an email is not associated with a gravatar account, a Google Image request is sent to grab the first best relevant face picture of this member.<\/p>\n\n<p>When a google image photo have been chosen, the user will receive a mail with 3 links, 1st to delete this avatar if not relevant enought, 2nd to refresh it, if its email is not associated with a gratavar account, 3rd an invitation to create a gravatar account.<\/p>\n\n<p>Also, you can add you own avatar by uploading your picture, easily !<\/p>\n\n<p>Then, you can use a gravatar cache to keep all avatar files on your server and, limit the HTTP request on gravatar.com<\/p>\n\n<p>Here comes a (french, just watch ;p) demo video, 15mn length. (video = version 1.8 !)\nhttp:\/\/www.youtube.com\/watch?v=90mBwyNd5zU<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the plugin folder from the downloaded ZIP file.<\/li>\n<li>Upload BAW Gravatar Google image folder to your \/wp-content\/plugins\/ directory.<\/li>\n<li>Activate the plugin from the \"Plugins\" page in your Dashboard.<\/li>\n<li>Go to discussion settings!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I'm a developper, what can i hook from your plugin ?<\/dt>\n<dd><p>Here come the filters list:\n1. \"get_avatar\" : from WP core, included in get_avatar() function, i \"overwrite\" it, it's a pluggable function.\n1. \"ggi_get_avatar\" : same as above, included in get_avatar() function, same place, but instead of \"$id_or_email\" var, i put \"$email\" which is more logical\n1. \"default_size\" : triggers every time we need to get_avatar(), default is 96 (like WP core)\n1. \"mail_avatar_signature\" : Used to change the default email signature \"Best regards - Blog_Name\"<\/p>\n\n<p>Here come the actions list:\n1. \"baw_google_download_img\" : Triggers when a picture have to be downloaded for caching\n1. \"gravatar_from_cache\" : Triggers at the end of grabbing the cache file\n1. \"gravatar_from_google\" : Triggers at the end of grabbing the google file<\/p>\n\n<p>and \"get_avatar_comment_types\" already and still exists too, from WP core.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.9.3<\/h4>\n\n<ul>\n<li>31 jul 2012<\/li>\n<li>Bug fix when someone delete its avatar, an empty one was given.<\/li>\n<\/ul>\n\n<h4>1.9.2<\/h4>\n\n<ul>\n<li>22 jul 2012<\/li>\n<li>Bug fix : incorrect char :\/<\/li>\n<li>Bug fix : Faces was not \"default\" in options discussion page<\/li>\n<\/ul>\n\n<h4>1.9.1<\/h4>\n\n<ul>\n<li>22 jul 2012<\/li>\n<li>Some code improvments<\/li>\n<li>Forgot to remove a comment in .js ;)<\/li>\n<li>Readme file filled :)<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>21 jul 2012<\/li>\n<li>Add a new default avatar, \"tyniaf.php\" for \"Turn Your Name Into A Face (.com)\", this is a face generator based on string.<\/li>\n<li>Add a filter on \"get_avatar\" for this generated avatar, it changes \"height\" into \"data-height\"<\/li>\n<li>Add a filter named \"default_size\" (96px), it's used on the first call of get_avatar(), so this is the height\/width of the cached file!<\/li>\n<li>Add a filter named \"ggi_get_avatar\", same as core filter named \"get_avatar\" but in place of \"id_or_email\", i put \"email\" <\/li>\n<li>Add a filter named \"mail_avatar_signature\" to change the default signature in the sent email<\/li>\n<li>Add an action named \"baw_google_download_img\", triggers when a image have to be downloaded<\/li>\n<li>Add an action named \"gravatar_from_cache\", triggers at the end of grabbing the cache file<\/li>\n<li>Add an action named \"gravatar_from_google\", triggers at the end of grabbing the google file<\/li>\n<li>Add feature : You can now empty the cache folder<\/li>\n<li>Change : Options &gt; 2 radio button blocks now with more choices<\/li>\n<li>Change : Help improved<\/li>\n<li>Change : Much better get_avatar() overwrite with better returns and cache<\/li>\n<li>Change : Much better baw_google_download_img() with beter resize and return + security improvment<\/li>\n<li>Change : Better install script<\/li>\n<li>Change : Better uninstall script<\/li>\n<li>Fix admin_enqueue_scripts =&gt; admin_print_styles, my bad<\/li>\n<li>Info : \"get_avatar_comment_types\" filter from WP core still exists<\/li>\n<\/ul>\n\n<h4>1.8.1<\/h4>\n\n<ul>\n<li>20 jul 2012<\/li>\n<li>Bug fix on some installations, <code>global $upload_dir;<\/code> was a bad idea... ;)<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>20 jul 2012<\/li>\n<li>First release on WP repo<\/li>\n<li>Code improvment<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>19 jul 2012<\/li>\n<li>Add caching system and help<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>18 jul 2012<\/li>\n<li>Add the email stuff<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>17 jul 2012<\/li>\n<li>Add possibility to upload you own default avatar<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>16 jul 2012<\/li>\n<li>First try<\/li>\n<\/ul>","raw_excerpt":"Add a step between &quot;no gravatar account&quot; and &quot;default gravatar sent back&quot;, using Google Images Search Service + 2 bonus usage","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19103"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/juliobox"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19103"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19103"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19103"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19103"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19103"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}