Jump to content

How To: Change round avatars to square in nsane Forums


Karlston

Recommended Posts

This method uses CSS to change the displayed avatars from round to square. 

 

I wrote it because most avatars' images are square or rectangular, and making them round hides the corners of the image. Dilbert's armpits disappeared when the image was rounded. :)

 

Use the Stylus addon (available for Firefox and Chrome) to apply the following CSS to www.nsaneforums.com.

 

Stylus (for Firefox)

 

Stylus (for Chrome)

 

 .ipsUserPhoto_large img, img.ipsUserPhoto_large, .ipsUserPhoto_large:after {
    border-radius: 0 !important;
}

 .ipsUserPhoto_medium img, img.ipsUserPhoto_medium, .ipsUserPhoto_medium:after {
    border-radius: 0 !important;
}

 .ipsUserPhoto_small img, img.ipsUserPhoto_small, .ipsUserPhoto_small:after {
    border-radius: 0 !important;
}

 .ipsUserPhoto_tiny img, img.ipsUserPhoto_tiny, .ipsUserPhoto_tiny:after {
    border-radius: 0 !important;
}

.ipsUserPhoto_mini img, img.ipsUserPhoto_mini, .ipsUserPhoto_mini:after {
    border-radius: 0 !important;
}

.ipsUserPhoto_xlarge img, img.ipsUserPhoto_xlarge, .ipsUserPhoto_xlarge:after {
    border-radius: 0 !important;
}

.ipsUserPhoto_tinier img, img.ipsUserPhoto_tinier, .ipsUserPhoto_tinier:after {
	border-radius: 0 !important;
}

It should also work for any other Invision powered forum.

 

EDIT: December 20, 2018 - Added squaring of the mini avatar images (.ipsUserPhoto_mini) that show when clicking on the Notification icon (bell) top right.

 

EDIT: May 16, 2019 - Added squaring of profile photo (.ipsUserPhoto_xlarge) shown near top left in member profile.

 

EDIT: March 23, 2020 - Added squaring of tinier photo (.ipsUserPhoto_tinier) which appear in embedded posts. Thanks to the eagle-eyed @TrojanK for spotting that one. 👍

Link to comment
Share on other sites


  • Replies 9
  • Views 2.7k
  • Created
  • Last Reply
I4rg£8all8ag

Yerrrrr Dilbert's got armpits again 😁😁😁

Link to comment
Share on other sites


Oops... missed one...

 

Added squaring of the mini avatar images (.ipsUserPhoto_mini) that show when clicking on the Notification icon (bell) top right.

Link to comment
Share on other sites


Added squaring of profile photo (.ipsUserPhoto_xlarge) shown near top left in member profile.

Link to comment
Share on other sites


2 hours ago, Karlston said:

Added squaring of profile photo (.ipsUserPhoto_xlarge) shown near top left in member profile.

Please provide image. Thanks.

Link to comment
Share on other sites


25 minutes ago, vitorio said:

Please provide image. Thanks.

 

vittorio_nsane.jpg

 

Link to comment
Share on other sites


  • 10 months later...

There's also the tinier avatar which appears when you embed a post

(see tinier avatar 👇)

 

PS:

I'm using the following code for avatars

img.ipsUserPhoto, .ipsUserPhoto img {border-radius: 4%;}

 

Link to comment
Share on other sites


21 hours ago, TrojanK said:

There's also the tinier avatar which appears when you embed a post

 

Nicely spotted. Have added the fix for that to the OP.

 

21 hours ago, TrojanK said:

I'm using the following code for avatars

 

Gives slightly rounded corners?

Link to comment
Share on other sites


4 minutes ago, Karlston said:
21 hours ago, TrojanK said:

I'm using the following code for avatars

 

Gives slightly rounded corners?

Yes.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...