• JomSocial
  • Default profile cover and avatar image do not work or dimensions are not correct

The default images for both the profile cover and avatar only work with some images.
Q1. I can not determine which images work. So far only image types of .png load but not all .png images load.
Please provide image file type and dimensions requirements and where and how to change them?

Q2. In Jomsocial in Joomla the images shown after choosing never match the image I choose.
This also happens on front page hero image so I need info on how to correct that as well
Why do they not match?

Thank you

    mdumont94 Hello

    After you login and access your profile page in JomSocial, you can click the icon settings to modify the cover and click the profile image to change.

    You can share the image that you can't use for cover / profile photo, I will take a look.

    This message is visible to Moderators only
    hidden content

      mdumont94
      Hi,
      There is an issue when saving the default image, so you can only use the PNG format.
      Here is a patch to fix this problem.
      Please try it out and let me know the result.

      Guide: override it to administrator\components\com_community\helpers\theme.php

      theme.zip
      3kB

        manhta
        Thank you for the attempted fix.

        I replaced the theme file as requested

        I have chosen only images with .png format for the following tests
        The Frontpage image still does not match the selected image in the backend or the frontend using some .png images it works with some images.
        The images that I choose in the backend show the correct images now in the backend in other words the images match in the backend.
        The avatar images elected in backend match the images shown in the browser frontend
        However the cover image selected in backend still do not match the images shown in the browser frontend for the male and female defaults but does work for the "undefined" default images

        Q1. Where do you select the available image file types? I want more than just .png file type
        Q2. What is the required dimensions for the .png image file type for the avatar and the cover image?
        Q3. What is the maximum file size allowed for the cover image?
        Q4. What is the "undefined" category intended to be used for?
        Is this to provide an option to choose your gender as "undefined" or is this intended only to be used as a default when the member has not chosen either female or male?
        Q5. We dont want the "Undefined" option to show or be available to our members as a gender option, how do we remove this?

          mdumont94
          Hi,

          1. You can select PNG, JPG, or JPEG formats for avatars and covers.
          2. There are no required dimensions; covers will be scaled, and avatars will be forced into a square.
          3. Maximum file size depends on the PHP limit.
          4. Undefined means the user selected 'Not specified' for their gender in their profile.
          5. To remove this option, open the file components\com_community\libraries\fields\gender.php and delete COM_COMMUNITY_NOT_SPECIFIED.

          Regarding the image mismatch with backend config, it might be a browser cache issue. Could you share your site info so I can investigate further?

          Write a Reply...
          You need to Login to view replies.