Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
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

6 years 9 months ago
  • Julián's Avatar
    Topic Author
  • Julián
  • Offline
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

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.

Is this a known issue?

Regards,
JM

6 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi JM,

Do you login with login FB from Jomsocial or from SourceCoast's JFBC? if you use from SourceCoast I suggest you contact them.

thank you!

6 years 9 months ago
  • Julián's Avatar
    Topic Author
  • Julián
  • Offline
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

I am using JFBC (i bought the extension and set YES on Jomsocial's integration setting). But is yours the line that is removing the avatar.

JM

6 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

HI Julian,

Well, what is your backend and FTP access, and please give me the detail steps to replicate this issue.

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW