Well i used a sligtly different approach to the matter
in fireboard integration config change the avatar control to fireboard
but to show this avatar to the CB profile you need to change some of the code
below i will post the code i changed in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
function getDisplayTab($tab,$user,$ui) {
global $cbMyIsModerator, $ueConfig, $mosConfig_lang, $database, $my;
//first we gather some information about this person
$database->setQuery("SELECT * FROM #__fb_users as su " . "nLEFT JOIN #__users as u on u.id=su.userid WHERE su.userid=$user->id"
;
$userDetails = $database->loadObjectList();
$fbavatar = $userDetails[0]->avatar;
list($avWidth, $avHeight) = @getimagesize($avatar);
//that's it we got now; later the 'future_use' columns can be used..
echo "Avatar: ". $fbavatar;
// Display Avatar/Image:
$return = "";
if ($ueConfig['allowAvatar']=="1"
{
if($tab->description != null) $return .= "tt".unHtmlspecialchars(getLangDefinition($tab->description))."n";
$name = htmlspecialchars(getNameFormat($user->name,$user->username,$ueConfig['name_format']));
$return .= "ntttt";
$uimage=$fbavatar;
if (file_exists("components/com_comprofiler/plugin/language/".$mosConfig_lang."/images"
)
$uimagepath="components/com_comprofiler/plugin/language/".$mosConfig_lang."/images/";
else $uimagepath="components/com_comprofiler/plugin/language/default_language/images/";
if($user->avatarapproved==0) $uimage=$uimagepath."pendphoto.jpg";
elseif($user->avatar=='' || $user->avatar==null) $uimage=$uimagepath."nophoto.jpg";
else $uimage="components/com_fireboard/avatars/".$uimage;
$return .= "";
if ($user->avatarapproved==0 && $cbMyIsModerator) {
$uimage="components/com_fireboard/avatars/".$fbavatar;
$return .= ""._UE_IMAGE_ADMIN_SUB.":"
. "";
}
$return .= "";
}
return $return;
}
what i do is get the user details stored in the fireboard table and set up the path for showing the avatar from there!
Also i changed the links of "Update my image" menu links in cb profile.
to take it further a change is needed to the templates/default/avatar_upload.php in fireboard folder to return to the cb profile page
works fine till now, but not on a large scale website, cause i haven;t gone live yet
similar changes i guess will be needed in every case the avatar must be visible!
edit: also change needs the query retrieving user details, $my->id changed to $user->id for getting the correct image for the user and notyourself in every user's profile
