Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Default avatar deleted after social sign-in with JFBConnect and JSPT
Hi, we just setup jfbconnect in our production website and everything looks fine, but when a user sign-in with any social network, the default avatar for our profiles (managed by JSPT) are deleted from server.
I found this lines:
// If old file is default_thumb or default, we should not remove it.
// Need proper way to test it
if (!JString::stristr($oldFile, 'components/com_community/assets/default.jpg') && !JString::stristr($oldFile, 'components/com_community/assets/default_thumb.jpg') && $removeOldImage && !JString::stristr($oldFile, 'avatar_')) {
// File exists, try to remove old files first.
$oldFile = CString::str_ireplace('/', '/', $oldFile);
if (JFile::exists($oldFile)) {
JFile::delete($oldFile);
}
}
We have three diferent default avatar called: avatar_1.png, avatar_2.png and avatar_3.png eachone asociated to each profile type. But that lines checks online for jomsocial default profile.