Skip to Content Skip to Menu

Plugin Last views - image path

  • user8600
  • user8600
  • OFFLINE
  • Posts: 24
  • Thanks: 0
  • Karma: 3
16 years 8 months ago #58902 by user8600
Replied by user8600 on topic Re:"Fixed": Plugin Last views - image path
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

Please Log in or Create an account to join the conversation.

  • nater77
  • nater77
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 1
16 years 5 months ago #65369 by nater77
Replied by nater77 on topic Re:"Fixed": Plugin Last views - image path
Thanks user8600 - this worked perfectly for 0.2.9. Karma on the way.

Nate

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum