Hello, i installed the component and for some reason the inbox was showing the list of messages all with a height of 133px.
I looked around the code and found that the inbox.php recalls getpiclink.php:uddeIMgetStyleForThumb to set the style for the username link(or pic) cell in the inbox table.
the actual function is
Code:
function uddeIMgetStyleForThumb($config) {
global $ueConfig;
$st = "style='text-align:center; vertical-align:middle";
if ($config->avatarw)
$st .= "; width:".((int)$config->avatarw + 64)."px";
if ($config->avatarh)
$st .= "; height:".((int)$config->avatarh + 16)."px";
$st .= ";'";
return $st;
}
this function will always style the user link/avatar to avatarh+16 size (117+16=133) no matter if you set "Show thumbnails in lists" to no in the Integration tab of UddeIM backend.
I changed it to
Code:
function uddeIMgetStyleForThumb($config) {
global $ueConfig;
$st = "style='text-align:center; vertical-align:middle";
if($config->getpiclink){
if ($config->avatarw)
$st .= "; width:".((int)$config->avatarw + 64)."px";
if ($config->avatarh)
$st .= "; height:".((int)$config->avatarh + 16)."px";
}
$st .= ";'";
return $st;
}
to fix the behavior.
DId i miss something in the configuration that will enable the correct behavior or its a code bug?