Plugin / Avatar Tooltip

Axenso

Frequently Asked Questions (FAQ)

Because the avatar owner is registered neither to the blog nor to Gravatar.
We suggest that first of all you read the Gravatar FAQ.
Probably the default jQuery selector (#main ...) is not good for your theme. Look inside your theme html code and search for a class/id of your main content div: e.g. #content or something similar. Then, go in Settings > Avatar Tooltip and set up the new selector. This parent class is useful to avoid that the toolip is shown on undesired avatars (e.g. top Toolbar).
In Settings > Avatar Tooltip you can set up main options (main css theme, position). Then, you can edit axe-avatar-tooltip.css in plugin folder. A tip: copy this file to your theme directory and edit it there. Useful to prevent the loss of styles when you upgrade the plugin.
You can use the sample available at this link: 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.
You have some available filter hooks to manage the tooltip text. The following sample adds ugly debug info at the bottom of tooltip: function my_avatar_tooltip_content_after( $text, $user, $md5email, $grav_name, $grav_profile ) { if ( is_object($user) ) { $text .= '
USERDATA:
'. print_r( $user, true ) .'
'; } if ( is_array($grav_profile) ) { $text .= '
GRAVATAR PROFILE:
'. print_r( $grav_profile, true . '
'); } return $text; } add_filter('axe_avatar_tooltip_content_after', 'my_avatar_tooltip_content_after', 10, 5); The following sample replaces the account list (facebook, twitter…) with a link to Gravatar full profile: function my_avatar_tooltip_content_gravatar_accounts( $text, $md5email, $grav_profile ) { if ( isset( $grav_profile['profileUrl'] ) ) { return '' . __('view complete profile on Gravatar', AXE_AT_PLUGIN_DIR) .''; } else { return $text; } } add_filter('axe_avatar_tooltip_content_gravatar_accounts', 'my_avatar_tooltip_content_gravatar_accounts', 10, 3); You can look for more hooks inside plugin code. If you are brave, the function that returns the tooltip text is pluggable and you can replace it at all: create a php file in mu-plugins folder (if the folder does not exists, simply create it) add a new function called axe_at_tooltip_content (look for the orginal function inside plugin code to see how it works) from that moment, the plugin will load your custom function

Ratings

1
1 reviews

Rating breakdown

Details Information

Version

1.0.2

First Released

08 Jun, 2012

Total Downloads

2,029

Wordpress Version

3.0 or higher

Tested up to:

3.5.2

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.