Scroll bar in post with big image?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Scroll bar in post with big image?

Post by Windsor »

Hey there. My forum has a set post width but if i insert a image bigger than the set size the post box will widen to fit the image in. It doesn't look very nice. Is there a way i can insert a scroll bar into the post which has a big image in so the post box doesnt widen?

I hope you understand.
Thanks in advance.

Windsor
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Re: Scroll bar in post with big image?

Post by Windsor »

Bump. Help if possible.

Thanks
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Re: Scroll bar in post with big image?

Post by Windsor »

Anyone know how to do this?
RickHope
Registered User
Posts: 37
Joined: Tue Dec 12, 2006 9:11 am

Re: Scroll bar in post with big image?

Post by RickHope »

There is a way to make sure it does not go over a certain size.

there is a mod which is very good which, when images are too big to fit in the forum it will automaitcally shrink them and add a lightscribe script to them soo when you click them they auto zoom in and out, if you get me... Here is link: http://www.phpbb.com/community/viewtopi ... 0&t=907805
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Re: Scroll bar in post with big image?

Post by Windsor »

That might work.
I was told by someone else to put "overflow:scroll" where the post div is in my styles css. I cant find the post div in my styles theme. The style i using is polyethylene.

Help please.
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Re: Scroll bar in post with big image?

Post by Windsor »

Help please.
Ive tried

Code: Select all

.postbody {
font-size: 1.2em;
line-height: 170%;
font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
overflow:scroll;
width: 570px;
}
But nothing stil...

Help...
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Scroll bar in post with big image?

Post by ric323 »

If you look in your ACP, "Board Configuration", "Attachment settings",
do you have some non-zero numbers set for "Maximum image dimensions:" ?
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
Windsor
Registered User
Posts: 84
Joined: Sat Aug 23, 2008 2:59 pm

Re: Scroll bar in post with big image?

Post by Windsor »

Yeah i do. Do i need to change these dimensions to the width of the forum?
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Scroll bar in post with big image?

Post by ric323 »

The width parameter should be equal to or less than the area available inside a message.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
User avatar
waxxie
Registered User
Posts: 119
Joined: Fri Oct 16, 2009 5:21 pm

Re: Scroll bar in post with big image?

Post by waxxie »

solution is easy

open "functions/bbcode.php"

Code: Select all

FIND

'img'		=> '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',

REPLACE WITH

'img'		=> '<div align="center" style="overflow:auto;"><img src="$1" alt="' . $user->lang['IMAGE'] . '" /></div>',

optional to have the image centered, I prefer it this way on my site

:ugeek:
Locked

Return to “[3.0.x] Support Forum”