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.

Problem with profile picture in "Avatar" folder

12 years 2 months ago
  • robay's Avatar
    Topic Author
  • robay
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 5
Licenses:
JomSocial Expired

Hi,

I found a problem with profile picture. In "Avatar" folder I found several thumbnails of the same user. I think this is caused by repeated cropping. This causes a mess.

Regards,
Robay

12 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Robay,

nice found, this is a bug, I will report this to our developer.

thank you for reporting.

12 years 3 weeks ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Robay,

Here is the fix open this file components/com_community/controllers/photos.php, add this code after line 3231 :

// Cache leftovers.
        $oldAvatar    = $cTable->avatar;
        $oldTypeImg   = preg_replace('/([0-9a-f]+)\./', $type . '-$1.', $oldAvatar);
        $oldStreamImg = preg_replace('/([0-9a-f]+)\./', '$1_stream_.', $oldAvatar);

and add this code after line 3245 :
// Remove leftovers.
        JFile::delete($oldTypeImg);
        JFile::delete($oldStreamImg);

thx

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