Topic-icon Problem with profile image

Active Subscriptions:

None
10 years 7 months ago #36845 by amirhs
Title

Hi, Thank you very much for an excellent extension.

I am working with J3.x, the height px size option does not work and it does not crop the image based on the defined size (width size works!), also social network icons do not appear.

Regards, Amir.
The topic has been locked.
Support Specialist
10 years 7 months ago #36847 by alzander
Replied by alzander on topic Problem with profile image
Amir,
What extension are you integrating with to show the image? The width and height options did have a bug in an older release also, so please make sure you're using v3.1.1.

As for the social network buttons, those require either JFBConnect (for Facebook and Google+ authentication) or JLinked (for LinkedIn) integration to work. The SCLogin module doesn't actually do the social network login, it just supports those extensions for easily adding the buttons.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36872 by amirhs
Replied by amirhs on topic Problem with profile image
Hi Alex,

I downloaded the file mod_sclogin_j3.0_v3.1.1 yesterday. The site community extension is Jomsocial 3. Also, the pop-up modal is not centered and positioned to left.

Regards,
Amir.
The topic has been locked.
Support Specialist
10 years 7 months ago #36904 by alzander
Replied by alzander on topic Problem with profile image
Amir,
Can you provide an image of what the profile picture looks like? I'm not sure what's happening and seeing the problem may help us understand further. Also, make sure you've set both the height and width values in the SCLogin module to a real number. If either are blank, it may be part of the problem.

Finally, the positioning should be fixed in the next release. There can be conflicting CSS that can push the module to the left. The new release should be out over the next week.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #36929 by amirhs
Replied by amirhs on topic Problem with profile image
Alex,

The profile image is vertically rectangular. I have set both width and height sizes to 65 px (so it would be squared shape), however, it does not crop the pic's height and only adjusts the pic to width of 65 px. A suggestion would be to use the profile image created by Jomsocial [when available ] as basis. By the way, mysteriously the centering issue has been resolved (I did nothing!)

On another note, how can we:
1. change the looks of text separator from "Log in / Register" to "Log in | Register"?
2. rearrange the layout of profile image, Welcome message and dropdown button? The positioning I have in mind is:

Image Welcome John Smith
Dropdown button

Thanks very much,
Amir.
Last edit: 10 years 7 months ago by amirhs.
The topic has been locked.
Support Specialist
10 years 7 months ago #37002 by alzander
Replied by alzander on topic Problem with profile image
Can you provide a screenshot of what you're seeing and a URL where we can test? I'm not sure why the image would be showing how you describe it. The only thing I'd tell you to make sure is that your Height and Width params in the SCLogin module are numbers only, like "65" and *not* "65 px".

For your other questions:

1. change the looks of text separator from "Log in / Register" to "Log in | Register"?

The new release of the SCLogin module next week will have the separator broken out to a language file so that you can set it easily.

2. rearrange the layout of profile image, Welcome message and dropdown button? The positioning I have in mind is:

This would need to be done either through CSS or through a template override. We'd definitely need to see the page to understand more about what you have in mind.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #37018 by amirhs
Replied by amirhs on topic Problem with profile image
Thanks for feedback.

Here is the screenshot, and I am sure there are only integer values for height and width. Also, I know the graphic engine is working,


File Attachment:



Best regards,
Amir
Last edit: 10 years 7 months ago by amirhs.
The topic has been locked.
Support Specialist
10 years 7 months ago #37129 by alzander
Replied by alzander on topic Problem with profile image
Amir,
Sorry for the delayed response to this. Looking more at the code, I'm not sure we can do exactly what you're looking for. JFBConnect won't know the image size ahead of time, and we simply set the width and height parameters that you choose. There is some CSS that we're including which can make it so those height and width parameters are ignored, and I have a code fix you can apply below. However, that code won't 'crop' the image, it will simply 'smush' it to the right dimensions and I'm not sure that's what you'll be looking for either.

If you'd like to make the CSS change, feel free to add this to your template's CSS code:
#scprofile-pic img {
width: 150px;
height: 100px;
}
Obviously, you can update that to whatever dimensions you want.

Test that out and let us know how it goes.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago - 10 years 6 months ago #37289 by amirhs
Replied by amirhs on topic Problem with profile image
Hi Alex,

First of all, thank you for all the time spent on this issue.

From what I gather, the extension does not support CROPPING and only scales based on width or height size. Or, the extension has CROP functionality and for some reason it does not work on my site. If the first case is correct, then may I suggest the feature of giving the choice of using thumbnail generated by Jomsocial (the one you see next to activity stream), and if the second case is correct, then I have to look for source of problem on my site. It is noteworthy to mention in case of the first case, the elaborate graphic editing feature of Jomsocial produces much better result for this purpose. As you know, it is quite impossible to expect pictures uploaded by users to be in a uniform dimension and positioning format.

Best regards,
Amir.
Last edit: 10 years 6 months ago by amirhs.
The topic has been locked.
Support Specialist
10 years 6 months ago #37372 by alzander
Replied by alzander on topic Problem with profile image
Amir,
Thanks for pointing this issue out. We haven't heard of it from any other users, which is strange, but have a line of code which *may* do what you're looking for. To implement it, edit the /modules/mod_sclogin/helper.php file. Around line 214, you'll see:
$avatarURL = $jsUser->get('_avatar');
Change that to:
$avatarURL = $jsUser->getThumbAvatar();
That will use the thumbnail for the user in the logout area. However, from our testing, it's a very pixellated an blurry image if you're using a somewhat large height/width parameter (greater than about 50).

I think that should work for you size-wise, but I'd love to hear your feedback on the quality.

Let me know how that goes, and good luck,
Alex
The topic has been locked.