I had a problem with this plugin (cb-profile-visitors-1_2) from Blisspark where it would only show an uploaded avatar and not a user selected gallery avatar.
This is how I fixed it, not the most elegant solution but it works! Hope it helps someone else.
In profile.visitors.php around line 83, find this code:
[code:1]if($visitor && strlen($visitor) > 0) {
if($ueConfig && !$visitor) {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnpendphoto.jpg';
} else {
$avatar_url = JURI::base() . 'images/comprofiler/tn' . $visitor;
}
} else {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnnophoto.jpg';
}[/code:1]
...and replace it with this:
[code:1]if($visitor && strlen($visitor) > 0) {
if($ueConfig && !$visitor) {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnpendphoto.jpg';
} elseif ( (strncasecmp($visitor, 'gallery', 7)) ==0) {
$avatar_url = JURI::base() . 'images/comprofiler/' . $visitor;
}
else {
$avatar_url = JURI::base() . 'images/comprofiler/tn' . $visitor;
}
} else {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnnophoto.jpg';
}[/code:1]
You need to be using the default gallery directory for it to function, otherwise change the path strings appropriately.