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.

Max pic size

+2
zakir321
ericschevy
6 posters

Go down

Max pic size Empty Max pic size

Post by ericschevy June 28th 2008, 3:24 am

Is there any setting to prevent members from posting huge pictures??
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by zakir321 June 28th 2008, 4:24 pm

May I ask on what phpBB version your board is running? You can check this in "Display / Choose a theme / Version".
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by ericschevy June 28th 2008, 4:35 pm

phpBB2
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by zakir321 June 28th 2008, 4:43 pm

If you place the following code into "Display / Colors / CSS Stylesheet", you can limit the maximum image size within posts. All images that are above that width, will be resized automatically. The red part defines the max width in pixels and can be changed of course.

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

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by ericschevy June 29th 2008, 1:55 am

does that have to go in a certain spot or something cause it's not working?
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by ericschevy July 16th 2008, 10:31 pm

**BUMP***
It's not working..Help please, these pictures are taking over..
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by Saurus July 16th 2008, 11:04 pm

ericschevy wrote:does that have to go in a certain spot or something cause it's not working?

As Sunny said, it goes on the CSS style sheet (Display/Colors/CSS)
That will limit the size of graphics in the message area. You might want to change the 800px to something much less, like 480px. The smaller the number, the smaller the pics will be allowed.

If they are doing this in their signatures there is probably a different class for that.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Max pic size Empty Re: Max pic size

Post by zakir321 July 17th 2008, 5:07 pm

You can also try this class. Again, you can edit the red marked part to the width you want to define as maximum (in pixels).

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

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by ericschevy July 18th 2008, 3:13 am

I put that code in there too. I reduced them both to 200 just for a test and I can still post 640x480 pictures. Is it because Im using photobucket instead of using the forums pic host?
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by Saurus July 18th 2008, 3:46 am

It shouldn't matter. You ARE asking about members posting pics in messages, right? If you're talking about your gallery that is an entirely different issue.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Max pic size Empty Re: Max pic size

Post by ericschevy July 18th 2008, 3:52 am

Yeah, I'm talking about within posts/messages..
I just reset it and tried again and those codes make no difference..
avatar
ericschevy
Forumember

Posts : 33
Reputation : 0
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by Saurus July 18th 2008, 5:32 am

And you entered this on the CSS stylesheet and saved it? Refresh your browser or better yet exit your browser altogether and look again. The code works on my forum.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Max pic size Empty Re: Max pic size

Post by katanga July 18th 2008, 8:02 am

it doesn't on mine...
katanga
katanga
Forumember

Posts : 204
Reputation : 3
Language : English, Farsi, and some French
Location : Somewhere between somewhere and somewhere. A hint: it's close to somewhere.

Back to top Go down

Max pic size Empty Re: Max pic size

Post by Saurus July 18th 2008, 8:42 am

katanga wrote:it doesn't on mine...

Well what can I say. It works for me. I have no idea what you're doing.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Max pic size Empty Re: Max pic size

Post by katanga July 18th 2008, 8:56 am

What I do is I copied that onto the Display/Colours/CSS space, and then when I went back to the forum the pictures were still cut off the same amount. I'm still trying to figure out how to change the max pic size.
katanga
katanga
Forumember

Posts : 204
Reputation : 3
Language : English, Farsi, and some French
Location : Somewhere between somewhere and somewhere. A hint: it's close to somewhere.

Back to top Go down

Max pic size Empty Re: Max pic size

Post by zakir321 July 18th 2008, 2:56 pm

What forum version are you using? If it's phpBB 3, then use the first code I provided, it works on version 3 as well. Note me if you use punBB.

Also, be sure you actually clicked "submit" after pasting a code in the textarea. Wink
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Max pic size Empty Re: Max pic size

Post by katanga July 29th 2008, 6:52 am

I pressed submit. And I can't remember what php it was...
katanga
katanga
Forumember

Posts : 204
Reputation : 3
Language : English, Farsi, and some French
Location : Somewhere between somewhere and somewhere. A hint: it's close to somewhere.

Back to top Go down

Max pic size Empty Re: Max pic size

Post by tyhodge07 July 29th 2008, 7:47 am

works fine on mine.

and to find the version your using go to display and itll say right there at the top of the box
tyhodge07
tyhodge07
Forumember

Male Posts : 708
Reputation : 5
Language : english
Location : indiana

http://rcmodzone.all-up.com/

Back to top Go down

Max pic size Empty Re: Max pic size

Post by Mr.Killerguitar July 29th 2008, 8:02 am

Guys, is there a limit in the basic CSS code already?

Because, everytime you want to change something in the CSS which is already in there, you have to copy the whole CSS code into your sheet and disable the basic one. Otherwise the basic CSS will always used before the cumstomized CSS.
Mr.Killerguitar
Mr.Killerguitar
Forumember

Male Posts : 388
Reputation : 6
Language : German, English, some indo-european stuff
Location : Land der Dichter und Denker, Germany

http://steal-this-site.forumieren.de/

Back to top Go down

Max pic size Empty Re: Max pic size

Post by zakir321 July 29th 2008, 6:40 pm

But that is supposed to be that way. The basic CSS contains all changes you are doing in the admin panel - for example in the colors page. This CSS is the default one for your site (without any CSS it would look very messed up) and you can't write text directly in there.

Everything in your custom CSS field will only overwrite the respective class in the basic CSS - the rest will still be used from the basic CSS. So, you'd have to just write the part in there that you want to have changed and leave the default CSS activated. Wink
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Back to top

- Similar topics

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