| 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: |
| Posted images | |
|---|---|
| Tweet Topic Started: Sep 1 2008, 11:42 AM (553 Views) | |
| CaptainTsubasa | Sep 1 2008, 11:42 AM Post #1 |
|
Member
|
Hi there. Is there a code for constrain the size of the posted images so that their dimensions do not deform the board?? I mean, to automatically modify the size of the posted image, so it doesnt get bigger than the size of the board, even if the original size of the picture actually is. Thanks |
![]() |
|
| Ryan | Sep 1 2008, 03:02 PM Post #2 |
|
Member
|
There are a few ways you can do this (depending on which way your users post images): If your users are posting an image using the [IMG] tag, you can restrict the size of the image they post by adding the following line of code to your forum's style sheet, from the Manage Style Sheet section of your admin control panel: Simply change the pixel values in red to the desired size. Any images that are posted that are larger than your max values will be automatically resized. If your users are uploading their images and attaching them to their posts, you can choose to have them displayed as thumbnails of any size you wish. The option to do this is located in your admin control panel in the Topics, Posts & Polls section. You'll be looking for the "Show uploaded images in post?" option. Here you can set the max size of the thumbnail or choose to not display the images at all. I hope this helps! Ryan |
![]() |
|
| CaptainTsubasa | Sep 7 2008, 03:47 AM Post #3 |
|
Member
|
Didnt work........................... What Im doing wrong??? |
![]() |
|
| cvn-tv-dip | Sep 7 2008, 06:29 PM Post #4 |
|
Member
|
Can you post what changes you made? |
![]() |
|
| Viral. | Sep 7 2008, 07:24 PM Post #5 |
![]()
Member
|
What browser are you using? |
![]() |
|
| CaptainTsubasa | Sep 7 2008, 07:44 PM Post #6 |
|
Member
|
Sure. This is the pertinent part of the ccs: .post1 { background-color: #9a9a9a} .post1 img { max-width: 615px; max-height: 700px; } .post2 { background-color: #9a9a9a} .post2 img { max-width: 615px; max-height: 700px; } .postlinksbar { background-color:#C1C4C8;padding:7px;margin-top:1px;font-size:10px; } Im using IE 6.0 and also the last IE, for windows vista. Thanks |
![]() |
|
| Cory | Sep 7 2008, 11:47 PM Post #7 |
|
Member
|
IE doesn't support the max-width and max-height properties. Give the following code a shot (which appears to work in IE7). Admin CP Skinning & Styles Board Wrappers Footer
|
![]() |
|
| CaptainTsubasa | Sep 8 2008, 02:37 AM Post #8 |
|
Member
|
Mmm... didnt work.................... |
![]() |
|
| Lone Stranger (S) | Sep 8 2008, 02:39 AM Post #9 |
|
Member
|
If you don't mind all of the images being the same height and width, then you could always just take out the "max-" part of the CSS code. |
![]() |
|
| Cory | Sep 8 2008, 02:13 PM Post #10 |
|
Member
|
There's a chance it might not work in IE6, but it may actually be caused by one of your other codes. Please post your board wrappers. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · zIFBoards Support & Galleries · Next Topic » |







Skinning & Styles
4:16 AM Jul 11