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.

Size of avatar thumbs

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

Hi there,

I have one question... Where can I change default size of avatar thumbs? Original size of this thumbs is 64x64 px, I have to have bigger size like 128x128 px.

Regards,
Robay

10 years 7 months ago
Licenses:

Hi Robay,

here the steps:
1. edit /components/com_community/controllers/profile.php
2. at line 1563, changing the code from

if (!CImageHelper::createThumb($file['tmp_name'], $storageThumbnail, $file['type'])) {
to
if (!CImageHelper::createThumb($file['tmp_name'], $storageThumbnail, $file['type'], 128, 128)) {

the new size will be applied for new avatar only. and maybe still need CSS changing too.

FYI: the code changes will disappear at jomsocial upgrade process.

Regards,
Albert

The following user(s) said Thank You: robay
10 years 7 months ago
  • robay's Avatar
    Topic Author
  • robay
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 5
Licenses:
JomSocial Expired

Exactly what I meant ... Thanks!

Regards,
Robay

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