Restricting photo size
+2
zakir321
JulieG
6 posters
Page 1 of 1
Restricting photo size
Can I automatically restrict the size of photos members are posting in their messages, are some are way too big? I cant find the gallery option on the new admin panel, but not sure if I can do it anyway?
Re: Restricting photo size
"Modules >> Gallery >> Upload". You can restrict the filesize and the dimensions of the pictures your members are uploading to the gallery.
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
thank you, will this also restrict the size of the photos they are adding to posts, as the gallery is not active?
Re: Restricting photo size
This won't restrict images in post. Sorry, I got confused a little as you mentioned the gallery.
Ok, well there is a way to restrict the width (not the filesize) of images in posts - but too large ones would be automatically resized. The quality of resized images would be reduced a little though, therefore tell your members to avoid it if possible.
Add this code to the textfield in "Display / colors / CSS Stylesheet" and customize the red marked part. It defines the maximum width of images in pixels.
.postbody img{max-width:800px;}
Ok, well there is a way to restrict the width (not the filesize) of images in posts - but too large ones would be automatically resized. The quality of resized images would be reduced a little though, therefore tell your members to avoid it if possible.
Add this code to the textfield in "Display / colors / CSS Stylesheet" and customize the red marked part. It defines the maximum width of images in pixels.
.postbody img{max-width:800px;}
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
I have looked in the code and i can't find that line at all, If i add it where should i put it
sair- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Restricting photo size
I put the code in the CSS stylesheet and it doesnt work, I still have members loading huge photos which I then have to resize. I want to restrict them to 400 x 500.
Re: Restricting photo size
The box can be empty, that would be normal for a default theme. Just add the code and click "submit". It should work if your forum is the one in your profile (phpBB version 3) :
TIP: If you right-click the resized image and select "view image" in the context menu, you will be able to view the complete origial picture.
It's still recommended to use thumbnail links instead where possible, as the image would not be distorted that way.
- Code:
.postbody img{max-width:400px; max-height:500px;}
TIP: If you right-click the resized image and select "view image" in the context menu, you will be able to view the complete origial picture.
It's still recommended to use thumbnail links instead where possible, as the image would not be distorted that way.
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
Hi did you get this to work? my forum is WAY out of whack due to this... its causing caos the code supplied (exactly) was added to the css area and I hit submit (went and looked back at a pic that is sized at 1600x1600!! and its the same)
Here is my forum:: http://scrapaddict.forum.st/
Look at this page :: http://scrapaddict.forum.st/pages-posters-f34/megan-from-va-megs-t32.htm
username test123 password hghgks (it will be deleted as soon as someone relies though)
Here is my forum:: http://scrapaddict.forum.st/
Look at this page :: http://scrapaddict.forum.st/pages-posters-f34/megan-from-va-megs-t32.htm
username test123 password hghgks (it will be deleted as soon as someone relies though)
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
Hello,
you currently don't have the code added to your stylesheet, so I can't check. But it should work properly on phpBB version 2 as well.
Also, please provide some additional info and try to describe what you mean with "chaos" - what is actually displayed faulty if you add the code?
you currently don't have the code added to your stylesheet, so I can't check. But it should work properly on phpBB version 2 as well.
Also, please provide some additional info and try to describe what you mean with "chaos" - what is actually displayed faulty if you add the code?
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
the code did nothing at all (i added it then removed it sorry... I'll add it again) and by chaos i mean the posts are expanding to the size of the images members are posting which makes everything look terrible and you need to scroll to the left heaps to see this massive images
The people I chat to on the forum dont really know how to resize the images etc for web use
The people I chat to on the forum dont really know how to resize the images etc for web use
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
am I meant to "deactivate the basic css" when I add this code?
OH and one last question will it resize images that have already been posted once we get it to work?
Thanks heaps
OH and one last question will it resize images that have already been posted once we get it to work?
Thanks heaps
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
help pretty please?
(sorry to bump the post I don't usually like doing that as most of the time it can wait... but its a real pain on my forum at the moment )
(sorry to bump the post I don't usually like doing that as most of the time it can wait... but its a real pain on my forum at the moment )
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
In phpBB v2, the posts are automatically expanding if there is content that exceeds the width, that has nothing to do with the code I provided.
And I think I know the reason why it obviously didn't work. You are using mostly quotes to show pictures, and that requires some additional command. Replace the code I previously gave you with this one, that should cover all:
You can leave the basic CSS activated as well. This code resizes all posted pictures, including the ones already posted.
And I think I know the reason why it obviously didn't work. You are using mostly quotes to show pictures, and that requires some additional command. Replace the code I previously gave you with this one, that should cover all:
- Code:
.postbody img, .quote img{max-width: 800px;}
You can leave the basic CSS activated as well. This code resizes all posted pictures, including the ones already posted.
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
sorry i'm a novice to this lol..
THANKS heaps you are TOO kind... I appreciate the help and patience!!
THANKS heaps you are TOO kind... I appreciate the help and patience!!
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
It worked like a charm!! if you where here i'd kiss you on the forehead and give you a cookie lol !!!
TOO good and soo nice about it THANKS again!! :wééé:
TOO good and soo nice about it THANKS again!! :wééé:
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
ohh oww spoke too soon
Check this thread out ::
http://scrapaddict.forum.st/introductions-f7/hey-from-va-t15.htm
(do i need both codes maybe? )
Check this thread out ::
http://scrapaddict.forum.st/introductions-f7/hey-from-va-t15.htm
(do i need both codes maybe? )
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
Sometimes this phpBB2 still poses me riddles. No idea why it has the picture outside the .postbody now.
Anyway, let's try a workaround. Replace the code once again with this one below and see it your forum now carries out our instructions.
.post img{max-width: 800px;}
Anyway, let's try a workaround. Replace the code once again with this one below and see it your forum now carries out our instructions.
.post img{max-width: 800px;}
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
ok brb thanks heaps for helping!
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
That worked on both now!
You are too good thanks thanks thanks heaps!! I wish there was a voting system on here You would get one from me!!
Thanks for being patient too
You are too good thanks thanks thanks heaps!! I wish there was a voting system on here You would get one from me!!
Thanks for being patient too
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
No problem at all, glad it works now. I was just about to thank you for being patient with my wrong codes.
PS: Don't forget to delete the test-account again, as you provided login data here.
PS: Don't forget to delete the test-account again, as you provided login data here.
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Restricting photo size
OH and thanks again I completely forgot!
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
Hi we have been using the code above since i last posted and its been working fine, but on tuesday i think it was everyones signatures just went huge and the only way i can fix is to get them to manually change the size? Can anyone help to this
sair- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Restricting photo size
i think it has something to do with the updates going on... mines still working ok so far
Misery_Kitty- Forumember
- Posts : 165
Reputation : 0
Language : English
Re: Restricting photo size
OK no worries i will just see if they say anything. My members are getting irratated
sair- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Restricting photo size
I have been trying all these codes with no luck can sombody help me or shoot me. In mine the images are to big for the page and we can only see half the pictures . Thanks
see
http://bkcruizers.forumakers.com/shows-events-f3/vw-parade-in-chattanooga-oct-25th-t97.htm
see
http://bkcruizers.forumakers.com/shows-events-f3/vw-parade-in-chattanooga-oct-25th-t97.htm
BKCruizers- New Member
- Posts : 6
Reputation : 0
Language : english
Re: Restricting photo size
Same here, and even worse, I have no clue as to what you guys are talking about with the CSS and the codes given...I'm almost considering living with it if I can't find the answer after reading the whole forum lol.
HEMISFEAR- Forumember
- Posts : 48
Reputation : 0
Language : English
Re: Restricting photo size
Is there anybody that can help? Thanks
BKCruizers- New Member
- Posts : 6
Reputation : 0
Language : english
Similar topics
» Restricting Gallery Image Size
» Photo Size Limits
» Photo size problem
» Photo size problem
» Increasing the size of the Photo Gallery
» Photo Size Limits
» Photo size problem
» Photo size problem
» Increasing the size of the Photo Gallery
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum