The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Restricting photo size

+2
zakir321
JulieG
6 posters

Go down

Restricting photo size Empty Restricting photo size

Post by JulieG July 15th 2008, 10:48 am

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?
avatar
JulieG
Forumember

Posts : 331
Reputation : 0
Language : English

http://collienet.forumotion.com/

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 July 15th 2008, 5:18 pm

"Modules >> Gallery >> Upload". You can restrict the filesize and the dimensions of the pictures your members are uploading to the gallery.
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by JulieG July 15th 2008, 5:23 pm

thank you, will this also restrict the size of the photos they are adding to posts, as the gallery is not active?
avatar
JulieG
Forumember

Posts : 331
Reputation : 0
Language : English

http://collienet.forumotion.com/

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 July 15th 2008, 5:39 pm

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;}
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by JulieG July 15th 2008, 6:12 pm

thank you
avatar
JulieG
Forumember

Posts : 331
Reputation : 0
Language : English

http://collienet.forumotion.com/

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by JulieG July 15th 2008, 8:30 pm

In the CSS Stylesheet, the box is empty??
avatar
JulieG
Forumember

Posts : 331
Reputation : 0
Language : English

http://collienet.forumotion.com/

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by sair August 9th 2008, 5:30 am

I have looked in the code and i can't find that line at all, If i add it where should i put it
avatar
sair
Forumember

Posts : 58
Reputation : 0
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by JulieG August 9th 2008, 8:01 am

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.
avatar
JulieG
Forumember

Posts : 331
Reputation : 0
Language : English

http://collienet.forumotion.com/

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 August 12th 2008, 3:09 am

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) :

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. Wink
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 24th 2008, 10:11 pm

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)
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 August 25th 2008, 1:20 pm

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. Smile

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?
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 25th 2008, 4:00 pm

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 ouou

The people I chat to on the forum dont really know how to resize the images etc for web use
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 25th 2008, 4:03 pm

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
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 10:30 am

help pretty please? Embarassed

(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 Embarassed )
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 August 26th 2008, 5:49 pm

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:

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. Smile
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 5:57 pm

sorry i'm a novice to this lol..

THANKS heaps you are TOO kind... I appreciate the help and patience!!
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 5:59 pm

It worked like a charm!! if you where here i'd kiss you on the forehead and give you a cookie lol Razz!!!

TOO good and soo nice about it THANKS again!! :wééé:
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 6:01 pm

ohh oww spoke too soon Embarassed

Check this thread out ::
http://scrapaddict.forum.st/introductions-f7/hey-from-va-t15.htm

(do i need both codes maybe? Restricting photo size Oops )
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 August 26th 2008, 6:14 pm

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. Wink

.post img{max-width: 800px;}
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 6:21 pm

ok brb thanks heaps for helping!
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 6:23 pm

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 Wink
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by zakir321 August 26th 2008, 7:25 pm

No problem at all, glad it works now. I was just about to thank you for being patient with my wrong codes. Razz

PS: Don't forget to delete the test-account again, as you provided login data here. Wink
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty August 26th 2008, 7:31 pm

OH and thanks again I completely forgot! thumright
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by sair September 20th 2008, 1:02 am

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
avatar
sair
Forumember

Posts : 58
Reputation : 0
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by Misery_Kitty September 20th 2008, 2:31 am

i think it has something to do with the updates going on... Shocked mines still working ok so far ouou
avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by sair September 20th 2008, 9:58 am

OK no worries i will just see if they say anything. My members are getting irratated
avatar
sair
Forumember

Posts : 58
Reputation : 0
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by BKCruizers October 29th 2008, 2:03 am

I have been trying all these codes with no luck can sombody help me or shoot me. Laughing 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
avatar
BKCruizers
New Member

Posts : 6
Reputation : 0
Language : english

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by HEMISFEAR October 30th 2008, 10:36 pm

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
HEMISFEAR
Forumember

Posts : 48
Reputation : 0
Language : English

Back to top Go down

Restricting photo size Empty Re: Restricting photo size

Post by BKCruizers November 2nd 2008, 2:18 am

Is there anybody that can help? Thanks
avatar
BKCruizers
New Member

Posts : 6
Reputation : 0
Language : english

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum