| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ C ] Avatar Size Limitations | |
|---|---|
| Tweet Topic Started: Jun 20 2013, 05:58 PM (1,385 Views) | |
| Jerrbear65 | Jun 20 2013, 05:58 PM Post #1 |
|
Member
![]() ![]() ![]()
|
Board Address: w11.zetaboards.com/Imperial_Union/index/ Board Software: Zetaboards Description: So I want a code that allows each of my INDIVIDUAL themes to have specific avatar size limits, so for one theme it must be 50 * 50 pixels and the other theme it must be 150 * 150 pixels. Thank you So I would like ontop of these a maluable code that I can change to make my own limitations and if I want to edit them please Thank you once again!-Jeremie |
![]() |
|
| DaPizzaMan | Jun 20 2013, 06:51 PM Post #2 |
![]()
#TeamSupport
![]()
|
This can be accomplished with CSS, no need for any code. All you need is to place the following at the bottom of your Theme Appearance (for each theme): You can replace 50px with whatever value you wish to enter for that theme. |
![]() |
|
| i2pm | Jun 22 2013, 08:13 AM Post #3 |
|
Member
![]() ![]() ![]() ![]()
|
Hmm I tried to use this code for my forum. But it doesn't set a limitation, it only makes everyones avatar that size I wrote in the code. I placed this code below my Theme Appearance code.
Any code that sets a Maximum length a members avatar can be. So if I set the limit to 160x160, if someone uploads a 75x75 avatar, it would stay at that length. But if someone tried to upload an avatar that is 180x180, it won't allow them or just automatically resize the image to 170x170. |
![]() |
|
| silvershoes | Jun 22 2013, 08:26 AM Post #4 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
I can see resizing to fit, but what do you gain by forcing an upload limit? Are you saying if a member changes themes, you'd want them to reupload their avatar? |
![]() |
|
| Cory | Jun 22 2013, 08:51 AM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Admin CP Board Customization Preferences Profiles
|
![]() |
|
| i2pm | Jun 22 2013, 01:30 PM Post #6 |
|
Member
![]() ![]() ![]() ![]()
|
Thx Cory, I thought that only works with uploading an avatar not using an URL. |
![]() |
|
| Cory | Jun 23 2013, 12:36 AM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What those options do is sets the CSS max-width and max-height properties on avatar images and a DIV around the avatar image, so if you add a 100x100 avatar either by uploading or inserting the direct image URL and the maximum avatar width/height is set to 50x50, then the 100x100 avatar will be resized to 50x50. |
![]() |
|
| Moonface | Jul 15 2013, 09:03 AM Post #8 |
![]()
|
If you want it that avatars are limited to a maximum size, but can also be smaller, the CSS used should be this:
The original CSS posted in this topic would just resize all avatars to that size. The CSS I just posted will let avatars be no bigger than that, but can also be smaller. So a 100x100 avatar will remain 100x100, not stretched to 120x120. |
![]() |
|
| Moonface | Jul 26 2013, 11:01 AM Post #9 |
![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
3:03 PM Jul 11
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)
So I would like ontop of these a maluable code that I can change to make my own limitations and if I want to edit them please





Board Customization
3:03 PM Jul 11