Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Advertise on this site

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Re:"Fixed": Plugin Last views - image path
Date: 2008/03/13 23:14 By: user8600 Status: CB Doc subscriber  
Karma: 2  
Fresh Joomlapolitan

Posts: 21
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:"Fixed": Plugin Last views - image path
Date: 2008/06/11 20:14 By: nater77 Status: CB Doc subscriber  
Karma: 1  
Fresh Joomlapolitan

Posts: 14
graphgraph
Thanks user8600 - this worked perfectly for 0.2.9. Karma on the way.

Nate
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC2, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login