swampy wrote:
uddelIM is looking for images/comprofiler/
but no file name for user with no image i would have thought that uddelIM would be looking for
/com_comprofiler/images/english/nophoto.jpg
I think I know where the problem is.
Do you have the CB Gallery enabled? If so you could try following:
In
getpiclink.php > getPicOnly() replace the existing if-block with this one:
if (file_exists($filenamelocal) && is_file($filenamelocal)) {
$gimmeback="<a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$ofanid)."'>";
$gimmeback.="<img class='uddeim-tn' src='".$filenamelive."' alt='' />";
$gimmeback.="</a>";
} elseif (file_exists($filenameglocal) && is_file($filenameglocal) && $config->CBgallery) {
$gimmeback="<a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$ofanid)."'>";
$gimmeback.="<img class='uddeim-tn' src='".$filenameglive."' alt='' />";
$gimmeback.="</a>";
} elseif (file_exists($filename2local) && is_file($filename2local)) {
$gimmeback="<a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$ofanid)."'>";
$gimmeback.="<img class='uddeim-tn' src='".$filename2live."' alt='' />";
$gimmeback.="</a>";
}
The problem seems to be that the gallery filename is empty so the check checks the existing directory name and not the file name.
Please give feedback if it works.