Hello.

I have a problem with user_badges (module).
I would like to bring up a tooltip that displays the $title each badge by the module qtip.
Place a span between each picture (badge) generated including.

The original code:
http://nsa34.casimages.com/img/2013/04/22/130422100102756775.png

Here's what I want add for each image:
http://nsa33.casimages.com/img/2013/04/22/130422102328614036.png

In user_badges.module, where i can add the span code ?:

function theme_user_badge_group($variables) {
  $badgeimages = $variables['badgeimages'];
  if (!empty($badgeimages)) {
    return '<div class="user_badges">' . implode('', $badgeimages) . '</div>';
  }
}
/**
* Helper function to produce badge image.
*/
function _user_badges_build_image($badge) {
  $style_name = variable_get('user_badges_imagecache', '');
  $alt = check_plain($badge->name);
  if (!isset($badge->class)) {
    $badge->class = "badge badge-{$badge->bid} badge-" . drupal_html_class($badge->name);
  }
  if (file_valid_uri($badge->image)) {
    $badge->image = file_create_url($badge->image);
  }
  $variables = array(
    'style_name' => $style_name,
    'path' => $badge->image,
    'alt' => $alt,
    'title' => $alt,
    'attributes' => array('class' => array($badge->class)),
  );
  $theme = $style_name ? 'image_style' : 'image';
  $image = theme($theme, $variables);
  return $image;
}

Thank you :)

Comments

Can you help me please ?

:)