{"id":18496,"date":"2012-06-08T07:42:54","date_gmt":"2012-06-08T07:42:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/avatar-tooltip\/"},"modified":"2013-03-26T15:46:56","modified_gmt":"2013-03-26T15:46:56","slug":"avatar-tooltip","status":"publish","type":"plugin","link":"https:\/\/he.wordpress.org\/plugins\/avatar-tooltip\/","author":9597469,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"3.5.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Avatar Tooltip","header_author":"Axenso","header_description":"","assets_banners_color":"769175","last_updated":"2013-03-26 15:46:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=FSEGV7H8YNVLQ","header_plugin_uri":"","header_author_uri":"http:\/\/www.axenso.com","rating":1,"author_block_rating":0,"active_installs":10,"downloads":3190,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>Initial release<\/p>","1.0.1":"<p>Fixed a bug about not showing tooltip content for not-logged user<\/p>","1.0.2":"<p>Better integration with other plugins: the [rel] attribute is added after other filters<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"554757","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539386","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1539386","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539386","resolution":"1","location":"plugin"}},"screenshots":{"1":"Tooltip of a user registered to blog and registered to Gravatar","2":"Tooltip of a user not registered to blog but registered to Gravatar","3":"Tooltip of a user registered to blog but not registered to Gravatar"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[129,127,788],"plugin_category":[44],"plugin_contributors":[95549],"plugin_business_model":[],"class_list":["post-18496","plugin","type-plugin","status-publish","hentry","plugin_tags-avatar","plugin_tags-gravatar","plugin_tags-tooltip","plugin_category-discussion-and-community","plugin_contributors-axenso","plugin_committers-axenso"],"banners":{"banner":"https:\/\/ps.w.org\/avatar-tooltip\/assets\/banner-772x250.jpg?rev=554757","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/avatar-tooltip_769175.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/avatar-tooltip\/trunk\/screenshot-1.png?rev=1539386","caption":"Tooltip of a user registered to blog and registered to Gravatar"},{"src":"https:\/\/ps.w.org\/avatar-tooltip\/trunk\/screenshot-2.png?rev=1539386","caption":"Tooltip of a user not registered to blog but registered to Gravatar"},{"src":"https:\/\/ps.w.org\/avatar-tooltip\/trunk\/screenshot-3.png?rev=1539386","caption":"Tooltip of a user registered to blog but not registered to Gravatar"}],"raw_content":"<!--section=description-->\n<p>You can enable a tooltip that shows info about user\/author when you rollover\/click on related avatar.<\/p>\n\n<p><strong>Let's speak clearly: if you are loooking for a plugin that enables the standard Gravatar hovercards, this is not the plugin right for you. Please look for another one.<\/strong><\/p>\n\n<p>When you rollover\/click on an avatar (e.g. of a comment author), a tooltip popups and shows:<\/p>\n\n<ul>\n<li>some additional links if the author is a <strong>registered user<\/strong>: e.g. to user post archive, to user external website, to user blog (if multisite)<\/li>\n<li>some info from <strong>Gravatar<\/strong> if author is registered to that service: e.g. location, \"about me\" description, websites, other account pages (facebook, twitter....)<\/li>\n<\/ul>\n\n<p>In plugin settings you can set up the javascript and css main options.<\/p>\n\n<p>The plugin comes with some filter hooks, so you can customise the tooltip content at all.<\/p>\n\n<p>The plugin uses <a href=\"http:\/\/craigsworks.com\/projects\/qtip2\/\">qTip plugin for jQuery<\/a>.<\/p>\n\n<!--section=installation-->\n<h4>INSTALLATION<\/h4>\n\n<ol>\n<li>Upload plugin directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<\/ol>\n\n<h4>SETUP<\/h4>\n\n<ol>\n<li>Go to <code>Settings &gt; Avatar Tooltip<\/code> to set up options<\/li>\n<li>Edit <code>axe-avatar-tooltip.css<\/code> to customise tooltip styles<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why does a tooltip show \"No more info available\"?<\/dt>\n<dd><p>Because the avatar owner is registered neither to the blog nor to Gravatar.<\/p><\/dd>\n<dt>I think some existing gravatars are missing or not shown...<\/dt>\n<dd><p>We suggest that first of all you read the <a href=\"gravatar.com\/site\/faq\/\">Gravatar FAQ<\/a>.<\/p><\/dd>\n<dt>I can see that the plugin files (css, javascript) are properly loaded in my theme, but tooltips are not shown yet... What's wrong?<\/dt>\n<dd><p>Probably the default jQuery selector (<code>#main ...<\/code>) is not good for your theme.\nLook inside your theme html code and search for a class\/id of your main content div: e.g. <code>#content<\/code> or something similar.\nThen, go in <code>Settings &gt; Avatar Tooltip<\/code> and set up the new selector.\nThis parent class is useful to avoid that the toolip is shown on undesired avatars (e.g. top Toolbar).<\/p><\/dd>\n<dt>Can I customise the tooltip aspect?<\/dt>\n<dd><p>In <code>Settings &gt; Avatar Tooltip<\/code> you can set up main options (main css theme, position).\nThen, you can edit <code>axe-avatar-tooltip.css<\/code> in plugin folder.\nA tip: copy this file to your theme directory and edit it there. Useful to prevent the loss of styles when you upgrade the plugin.<\/p><\/dd>\n<dt>I don't care about Gravatar profile data. Can the tooltip show local user info?<\/dt>\n<dd><p>You can use the sample available at <a href=\"http:\/\/www.eventualo.net\/blog\/2013\/01\/avatar-tooltip-plugin-how-to-show-only-user-bio-and-social-links\/\">this link<\/a>: the tooltips will show the user bio (description), a link to user recent posts, the links to social network profiles (as filled in profile by user). Everything taken locallly from blog, nothing from Gravatar profile.<\/p><\/dd>\n<dt>Can I customise the tooltip content text?<\/dt>\n<dd><p>You have some available filter hooks to manage the tooltip text.<\/p>\n\n<p>The following sample adds ugly debug info at the bottom of tooltip:<\/p>\n\n<pre><code>function my_avatar_tooltip_content_after( $text, $user, $md5email, $grav_name, $grav_profile ) {\n    if ( is_object($user) ) {\n        $text .= '&lt;br \/&gt;USERDATA:&lt;br \/&gt;&lt;pre style=\"color:#000\"&gt;'. print_r( $user, true ) .'&lt;\/pre&gt;';\n    }\n    if ( is_array($grav_profile) ) {\n        $text .= '&lt;br \/&gt;GRAVATAR PROFILE:&lt;br \/&gt;&lt;pre style=\"color:#000\"&gt;'. print_r( $grav_profile, true . '&lt;\/pre&gt;');\n    }   \n    return $text;\n}\nadd_filter('axe_avatar_tooltip_content_after', 'my_avatar_tooltip_content_after', 10, 5);\n<\/code><\/pre>\n\n<p>The following sample replaces the account list (facebook, twitter...) with a link to Gravatar full profile:<\/p>\n\n<pre><code>function my_avatar_tooltip_content_gravatar_accounts( $text, $md5email, $grav_profile ) {\n    if ( isset( $grav_profile['profileUrl'] ) ) {\n        return '&lt;a href=\"'. esc_url($grav_profile['profileUrl']) .'\" title=\"'. esc_attr( __('view complete profile on Gravatar', AXE_AT_PLUGIN_DIR) ) .'\" target=\"_blank\" rel=\"nofollow\"&gt;' . __('view complete profile on Gravatar', AXE_AT_PLUGIN_DIR) .'&lt;\/a&gt;';\n    } else {\n        return $text;\n    }\n}\nadd_filter('axe_avatar_tooltip_content_gravatar_accounts', 'my_avatar_tooltip_content_gravatar_accounts', 10, 3);\n<\/code><\/pre>\n\n<p>You can look for more hooks inside plugin code.<\/p>\n\n<p>If you are brave, the function that returns the tooltip text is pluggable and you can replace it at all:<\/p>\n\n<ol>\n<li>create a php file in <code>mu-plugins<\/code> folder (if the folder does not exists, simply create it)<\/li>\n<li>add a new function called <code>axe_at_tooltip_content<\/code> (look for the orginal function inside plugin code to see how it works)<\/li>\n<li>from that moment, the plugin will load your custom function<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated: for a better integration with other plugins the get_avatar filter priority was increased to be sure that the [rel] attribute is added after other filters<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed: bug about not showing tooltip content for not-logged user<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"To show a tooltip with info (member info and Gravatar profile) when you mouseover\/click on an avatar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18496"}],"author":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/axenso"}],"wp:attachment":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18496"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18496"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18496"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18496"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18496"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}