max picture width 538px though set to 635 in backend

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

max picture width 538px though set to 635 in backend

Post by shakkalakka »

I'd like to add a picture in an article. The content block width is 635px in my case (I defined that in the page layout). Nevertheless, whenever I try to set the picture width to something bigger than 538 in the article editor, it's reduced to 538px.

I changed several values in 'conf.inc.php' and 'conf.pagelayout.inc.php' concerning the content block width to 635px...

Any ideas where this 538 might be changed elsewhere?
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Post by Karla »

your Page layout Main: block must be set at the default of 538! That plus Left: and Right: make up the screen width for you to place content, BUT, ~your~ {CONTENT} tag must be in Main: ???
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

Why has the main block to be 538px?

I have attached a grfx that explains my layout. Have a look:

Image

It's easily possible to set the conten block width in the page layout editor so I guess it should be possible to display images with bigger widths than 538px in there, shouldn't it?
Magnum
Posts: 91
Joined: Thu 12. Aug 2004, 00:56
Location: Berlin
Contact:

Post by Magnum »

hello,
if i understood you right look at the include/inc_conf/conf.inc.php
at line:

$phpwcms["img_prev_width"] = 538; //max width of the large preview image

greetz
Magnum
Posts: 91
Joined: Thu 12. Aug 2004, 00:56
Location: Berlin
Contact:

Post by Magnum »

ohh, im sooo sorry...

i dont read your aricle exactly...


greetz
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Post by Karla »

shakkalakka wrote:Why has the main block to be 538px?
It doesn't ~have~ to be... I was just saying that the -=default=- frontend setup: page layout has the settings that are mentioned in "conf.pagelayout.inc.php":

Code: Select all

$pagelayout["layout_all_width"]           = "760";
$pagelayout["layout_content_width"]       = "538";
$pagelayout["layout_left_width"]          = "200";
$pagelayout["layout_right_width"]         = "1";
$pagelayout["layout_leftspace_width"]     = "11";
$pagelayout["layout_rightspace_width"]    = "10";
$pagelayout["layout_header_height"]       = "20";
$pagelayout["layout_footer_height"]       = "15";
...And if your -*chosen* template accidently has the -=default=- page layout selected ~instead~ of one that you have created with the settings below... you might get the symptom that you describe. Did you create a new page layout, name it, and then choose it from the dropdown list in the Admin template screen? If so, phpwcms should be rendering your new screen dimensions in the browser source code.
shakkalakka wrote:It's easily possible to set the conten block width in the page layout editor so I guess it should be possible to display images with bigger widths than 538px in there, shouldn't it?
In there, you are not setting the content block width, you are setting the page dimensions [then you will be inserting the {CONTENT} tag into ~one~ of those "sections" of the page layout and the content is made to fit whichever "section you choose. For example the actual WIDTH of your web page is gonna be all blocks: which is the SUM of these five(5) sections of the template: left: + left space: + main: + right space: + right:.

It's clear that you understand, how you put the {CONTENT} tag in main:... and the rendered content will be -no- wider than the settings for main: in your *chosen* page layout. BUT, have you selected ~that~ page layout (that you created)... in the dropdown of the Admin template screen? That's the question ? Hope I don't sound too confusing. Sorry :?
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

I did create a page layout with the 'main' set to my 635px where the {CONTENT} is in AND I did choose that layout in the template(s) I use for my page. And nevertheless, images cannot be displayed wider than those 538px (as I mentioned before I also change values in the 'conf.inc.php' and 'conf.pagelayout.inc.php' files).

Any other ideas?
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Post by Karla »

"config.inc.php"

Code: Select all

$phpwcms["content_width"]     = 538;      //max width of the article content column - important for rendering multi column images
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

...I already changed that to my width (635px) with same results.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi Shakka...

load up your images again and it will work.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

...that was it! I just got it on my own. But thanks anyway!
User avatar
anthony.abraira
Posts: 99
Joined: Sun 11. Sep 2005, 07:42
Location: Mars Hill, NC
Contact:

What are the settings to change for max. width?

Post by anthony.abraira »

shakkalakka wrote:...that was it! I just got it on my own. But thanks anyway!
What did you end up doing to get it to work. I have changed the settings on both those places and I am still getting my images resized to 538.

Thanks :shock:
Post Reply