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 Network to add comments!

Join Ning Creators 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.

Search the Creators Network

Latest Activity

Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Don't let our temporary fix fool you regarding the background (side) image.  NING is still not prop…"
4 hours ago
Jen replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"I just spent the past hour helping Ian troubleshoot this issue. The Ning platform is definitely bre…"
4 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
""STRANGE FACT: SINCE WE PUT THE 'CHUCK BERRY' ANIMATED GIF ON THE HOME PAGE ALL OTHER ANIMATED GIFS…"
7 hours ago
Ian replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"In fact, all of our animated gifs are disabled except for a small few, and now we can't upload any…"
7 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Gifs have apparently been deactivated across the board, except for a couple.  Strange.  Help."
7 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"In fact, we can't upload any new animated gifs apparently."
7 hours ago
Ian replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"Hello Bryce, recently our side image is not uploading properly and our top bar animated gif and hea…"
7 hours ago
Nieve replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"Like several people who spoke here, I have my Ning Network 2.0 since January 2009. It is a small, n…"
17 hours ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP N3 ) Allow your members to add CSS codes to the new profile text box.
"It looks like Ning is having problems with their text boxes :-( I can't even save plain text in the…"
17 hours ago
Aurora replied to George H. Compton IV's discussion ( TIP N3 ) Allow your members to add CSS codes to the new profile text box.
"I could not figure out where to put the code so it can work"
yesterday
Aurora replied to AnGella's discussion Ning 3.0 Tip: Add CSS to Member Profiles
"I think this does not work anymore I tried to do it but it did not work, it only worked if the memb…"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Unless I am mistaken it looks like this has been fixed today. ( Sat 25/03/17 )"
yesterday
Thisisbully replied to Mike Collins's discussion Ning Development - Roadmap
"a lot of stuff has been added they just didn't post it yet .For instance the comment wall in groups…"
yesterday
Alliance replied to Mike Collins's discussion Ning Development - Roadmap
"i agree a roadmap from April would be appreciated if you could. It gives us time to decide on work…"
Friday
Kos replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Yes sir"
Friday
More…