Well, I tried to get it with CSS but for that image in the connection plugin there is some hard coded style settings. My hack was to replace them with class tags.
Code:
$return .= "<div class=\"connectionBox\" style=\"position:relative;height:" . ( $boxHeight + 24 ) . "px;width:" . $boxWidth . "px;\">" . "<div style=\"position:absolute; top:3px; width:auto;left:5px;right:5px;\">" . $actionIMG . '</div>' . "<div style=\"position:absolute; top:18px; width:auto;left:5px;right:5px;\">" . $tooltipAvatar . '</div>' . "<div style=\"position:absolute; bottom:0px; width:auto;left:5px;right:5px;\">" . $onlineIMG . " " . getNameFormat( $connection->name, $connection->username, $ueConfig['name_format'] ) . "<br /><a href=\"" . cbSef( "index.php?option=com_comprofiler&task=userProfile&user=" . $connection->memberid ) . '"><img src="' . $live_site . "/components/com_comprofiler/images/profiles.gif\" border=\"0\" alt=\"" . _UE_VIEWPROFILE . "\" title=\"" . _UE_VIEWPROFILE . "\" /></a> " . $emailIMG . " " . $pmIMG . "\n";
Changed to this:
Code:
$return .= "<div class=\"connectionBox\">" . "<div class=\"connectionImage\">" . $actionIMG . '</div>' . "<div class=\"cb-connection-frame\">" . $tooltipAvatar . '</div>' . "<div class=\"cb-connect-image\">" . $onlineIMG . " " . getNameFormat( $connection->name, $connection->username, $ueConfig['name_format'] ) . "<br /><a href=\"" . cbSef( "index.php?option=com_comprofiler&task=userProfile&user=" . $connection->memberid ) . '"><img src="' . $live_site . "/components/com_comprofiler/images/profiles.gif\" border=\"0\" alt=\"" . _UE_VIEWPROFILE . "\" title=\"" . _UE_VIEWPROFILE . "\" /></a> " . $emailIMG . " " . $pmIMG . "\n";
And then in the CSS file I included this to get control over the image sizes and the surrounding frame.
Code:
.cb-connection-frame img {width: 40px; height: 40px;}
.connectionBox {width: 40%;}
Jan