Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

Jacob asked how to do this and I had some code from a while back so here is the code to share.

What this does is remove the crop from the main avatar in the members profile page so you can set your own size for it. I have adjusted mine to 180px and you can see the difference by visiting my profile page here:

http://bizzssite.ning.com/members/JOHNBIZLEY

We need to add two bits of code.

Before we go any further I would like to mention the code to remove the crop was some code Sweet Potato had used in a previous tip which I edited for the profile page tip here. Thanks SP for the original code posted some time back.

The first code goes in your site and pages custom code end of page box.

<script>
//Remove Crop Of Profile Avatar
x$(document).ready(function() {
x$('.profileCoverArea-avatar img').each(function() {
    var profileImageSize = x$(this).attr('src');
    x$(this).attr('src', profileImageSize.replace(/\?width=\d+\&height=\d+\&crop=\d+\%\d+\A\d+/, ''));
});
});
</script>

And this next bit of code goes in your design studio custom css.

You adjust the width:180px to the size you want.

/* Profile Page User Avatar Size Adjustment */
.profileCoverArea .media-frame > .media-img{ max-width:100%!important }
/* This sets the size of the image */
.profileCoverArea-avatar .avatar-90{ width:180px }

That's it all done.

John :-)

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Replies

  • Nice Job!  i Like the idea and it looks  Great from mobile devices. i wonder if this can be possible  with the avatars that appears on the members inbox panel( the avatars look  very small)

This reply was deleted.

Latest Activity

Anthony Reardon replied to Kyryl_Ning_Support's discussion
Just Launched! Paid Access feature for the beta-test group
"Hi there Ning Team,
I will be interested in reconciling my expectations for this feature with you.…"
28 minutes ago
Ning via Facebook

Choose the content which will be the most valuable for your online community! There are lots of…

Trish Urquhart replied to Kyryl_Ning_Support's discussion
Servers maintenance
"Thanks!"
4 hours ago
Luis Fraguada replied to Luis Fraguada's discussion
User Images Missing
"Dear Kyryl,
Thank you for the reply.
if you provide an example as well that would be just perfect…"
5 hours ago
Kyryl_Ning_Support replied to Luis Fraguada's discussion
User Images Missing
"Hi Luis,
Thanks for your question.
During the renovation of the hardware, the file removal system h…"
5 hours ago
Kyryl_Ning_Support replied to Jennifer Peterson's discussion
Shout out to Ning Team
"Hi Jennifer,
I have been touched with the words you have written, I'll definitely share the link to…"
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Servers maintenance
"Hi Trish,
I have pinged developers once regarding this issue, if I would have an ETA I'll definitel…"
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Audio feature
"Hi, Javier!
No, unfortunately, members of the network are not able to upload their tracks using the…"
6 hours ago
More…

Meanwhile, you can check our social media channels