At me the patch doesn't work with cb 1.1 and lastviewtab 0.29 and gallery images.
And I think 0.29 is the newest version.
I modified the code (beginning line 174) like this:
if ($lastview->avatar && $lastview->banned != '1' && $lastview->avatarapproved !='0') {
$testimage = "/images/comprofiler/tn$lastview->avatar";
$galleryimage = "/images/comprofiler/$lastview->avatar";
if (file_exists($mosConfig_absolute_path.$testimage)) {
$image = $mosConfig_live_site.$testimage;
}
else {
if (file_exists($mosConfig_absolute_path.$galleryimage)) {
$image = $mosConfig_live_site.$galleryimage;
}
else {
$testimage = "/components/com_comprofiler/plugin/language/$mosConfig_lang/images/tnnophoto.jpg";
if (file_exists($mosConfig_absolute_path.$testimage)) {
$image = $mosConfig_live_site.$testimage;
} else {
$image = "$mosConfig_live_site/components/com_comprofiler/plugin/language/default_language/images/tnnophoto.jpg";
}
}
}
} else {
$testimage = "/components/com_comprofiler/plugin/language/$mosConfig_lang/images/tnnophoto.jpg";
if (file_exists($mosConfig_absolute_path.$testimage)) {
$image = $mosConfig_live_site.$testimage;
} else {
$image = "$mosConfig_live_site/components/com_comprofiler/plugin/language/default_language/images/tnnophoto.jpg";
}
}
Post edited by: user8600, at: 2008/06/11 21:58
Post edited by: user8600, at: 2008/06/11 22:08