This is the official blog for the core development team of the WordPress open source project. Follow our progress with weekly meeting agendas, project schedules, and the occasional code debate.
Is the link to the plugin author profile on the plugin detail page gone for good? I liked that users could click through and see all of the plugins I’ve released.
There’s an API where the page can add additional stuff to the hovercard, so we could actually put # plugins and # of themes linked directly to those pages in the hovercard… next version.
The current implementation of the hovercards overrides the A tag (if there is one) wrapping the Gravatar. If that tag were split out so that there was one wrapping the image and one wrapping the text/name, then the name could be linked directly to the profile page.
We currently have a pretty basic callback system in place so that you can do things to cards as they are generated (one card, per profile on a a page). You can hook into that by creating a callback method (called profile_cb) on the Gravatar object, before calling attach_profiles(). That might look something like this:
hash = the md5 hash of the email of the user
dom_id = the DOM id=”" of that hovercard (you can use this to isolate a jQuery selector within that card)
From there, you can use some DOM magic to inject things into the card wherever you want, just take a look in Firebug or something similar to see the structure of the HTML that’s created and you should be able to figure it out
You might need to bump the ver=1 part once in a while, because we’re still tweaking things a little bit, so you won’t get the latest version unless that increments (CDN will be caching the old version).
Otto, can you use that callback to keep the link pointing to the WordPress.org profile?
Also, when someone doesn’t have a hovercard (which many people don’t, because they’re using a secondary Gravatar addresss), it removes the link. Go to one of my plugins, hover my name, and watch the text go from blue to grey and unclickable.
Hovercard appears with the info alright, but the edges are rugged and just don’t look good. I’m guessing it’s just a browser thing (I’m on Ubuntu 10.10 Chrome 6.0.472.63). There should really be some kind of fallback, or just hold back the unnecessary advanced feature that is the tilt. Just the zoom would be awesome enough
Some of the hovercards don’t seem to be working – mine for example, and Esmi’s – the little loading spiral just goes round and round infinitely. Is there some requirement that makes the card work?
Peter Westwood 9:13 pm on October 7, 2010 Permalink
Thank you for the speedy service
Brad Williams 10:16 pm on October 7, 2010 Permalink
Is the link to the plugin author profile on the plugin detail page gone for good? I liked that users could click through and see all of the plugins I’ve released.
Matt 12:29 am on October 8, 2010 Permalink
There’s an API where the page can add additional stuff to the hovercard, so we could actually put # plugins and # of themes linked directly to those pages in the hovercard… next version.
Beau Lebens 6:13 pm on October 8, 2010 Permalink
The current implementation of the hovercards overrides the A tag (if there is one) wrapping the Gravatar. If that tag were split out so that there was one wrapping the image and one wrapping the text/name, then the name could be linked directly to the profile page.
We currently have a pretty basic callback system in place so that you can do things to cards as they are generated (one card, per profile on a a page). You can hook into that by creating a callback method (called profile_cb) on the Gravatar object, before calling attach_profiles(). That might look something like this:
<script type='text/javascript' src='http://s.gravatar.com/js/gprofiles.js?ver=1'></script> <script type='text/javascript'> jQuery(document).ready(function($){ Gravatar.profile_cb = function( hash, dom_id ) { // do stuff here }; Gravatar.attach_profiles(); }); </script>hash = the md5 hash of the email of the user
dom_id = the DOM id=”" of that hovercard (you can use this to isolate a jQuery selector within that card)
From there, you can use some DOM magic to inject things into the card wherever you want, just take a look in Firebug or something similar to see the structure of the HTML that’s created and you should be able to figure it out
You might need to bump the ver=1 part once in a while, because we’re still tweaking things a little bit, so you won’t get the latest version unless that increments (CDN will be caching the old version).
Mark Jaquith 9:14 pm on October 8, 2010 Permalink
Otto, can you use that callback to keep the link pointing to the WordPress.org profile?
Also, when someone doesn’t have a hovercard (which many people don’t, because they’re using a secondary Gravatar addresss), it removes the link. Go to one of my plugins, hover my name, and watch the text go from blue to grey and unclickable.
Otto 1:38 pm on October 9, 2010 Permalink
Fixed the name link. The image now links to the gravatar profile, the name points to the profiles page.
Erlend 10:10 pm on October 8, 2010 Permalink
Hovercard appears with the info alright, but the edges are rugged and just don’t look good. I’m guessing it’s just a browser thing (I’m on Ubuntu 10.10 Chrome 6.0.472.63). There should really be some kind of fallback, or just hold back the unnecessary advanced feature that is the tilt. Just the zoom would be awesome enough
Mrmist 9:14 am on October 9, 2010 Permalink
Some of the hovercards don’t seem to be working – mine for example, and Esmi’s – the little loading spiral just goes round and round infinitely. Is there some requirement that makes the card work?