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

Bizz ( John ) replied to Brandyn Shepherd's discussion
Business Directory
"Thanks Kyryl and also for the info of the paid access."
24 seconds ago
Steve C replied to Kyryl_Ning_Support's discussion
SSL certificate feature release
"There's a good chance they can put you on SSL now. I'm on Ning 2 with a custom domain and they move…"
3 hours ago
Martin Buzz replied to Kyryl_Ning_Support's discussion
SSL certificate feature release
"Hello any news on this?
....I have custom domain and would like to swich as soon as possible!"
3 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
TIP/Trick: Get Tabby with your FB Page
"Still kickin!"
3 hours ago
⚡JFarrow⌁ replied to Brandyn Shepherd's discussion
Business Directory
"This tip may help you as well.. "
3 hours ago
⚡JFarrow⌁ replied to Brandyn Shepherd's discussion
Business Directory
"great idea Bizz.."
3 hours ago
Fred St Laurent replied to Kyryl_Ning_Support's discussion
SSL certificate feature release
"Two things... any update on this SSL and when can we on 2.0 expect to be able to transfer to 3.0?"
7 hours ago
Mike Collins replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"Quick question and sorry if been asked before - are you using any sort of Ning user group to help s…"
10 hours ago
Cindy Dean Mccoy replied to Kyryl_Ning_Support's discussion
It's time to say goodbye to Flash player
"Can we get a code to max out the height of tall pictures.  The slide show is too tall and looks bad…"
15 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Ning3.0 3rd level subtab in navigation bar
"The code has been updated. Thanks, George, for letting me know about the issue :-)"
16 hours ago
Kyryl_Ning_Support replied to Brandyn Shepherd's discussion
Business Directory
"Hi John!
Great example, I haven't thought the blogs could be used that way, so thanks for sharing :…"
16 hours ago
Simri Hazael Gonzalez Bernardino, naeemmjatt, Moon Yiu and 51 more joined Ning Creators Social Network
16 hours ago
More…

Meanwhile, you can check our social media channels