Page 1 of 1

Pic resizing..

Posted: Mon 28. Nov 2005, 05:46
by bob332
i am messing around with phpwcms and really like it. what i would like to do is make a article with pics in the middle, and if you click on them, the will open a new window with a larger pic.

i tried this in the article creation portion where has the option for a image, but all i got was a new pic in a new window the same size of the one in the article, it was not larger, even though checked the "click to enlarge" option. this was not what i was looking for.

an example of what i would like is the folder view on this page - http://www.phpwcms.de/index.php?id=10,0,0,1,0,0 and when you click it you get the nice new window popped up

what i have is http://wcms.sytes.net:6583/index.php?battlefield_2 which just opens a new page maximized...

the way i added these was with the image button in the article creation page and then made it a link to the larger, 750px wide version of the same pic, but it is not clean.

thanks for the assistance :)

also, please be gentle, as i am just learning this from pepe's site and reading all over the board....

Posted: Mon 28. Nov 2005, 07:16
by Ben
Bob,

You should upload the images by going to the FILE section once logged into the admin area of phpwcms. Then, create a plain text (or wysiwyg) content part containing the first 7 paragraphs. Next, insert an images content part and select the appropriate image. You can set the alignment, image size, a caption, enable 'click enlarge'. Then, add a new content part for the "But, if I cut back on the ..." paragraph, following by another image content part.

I hope what I've said will help you. Good luck and welcome to the phpWCMS community.

Posted: Mon 28. Nov 2005, 07:19
by bob332
thanks, will give it a try :)

will the size i put in be the size of the enlarged pic or the one within the article?

Posted: Mon 28. Nov 2005, 07:47
by flip-flop
Hi bob323, [EDIT] bob332 :oops: [/EDIT]

the size you put in are the size of the thumbnail within the article.
The enlarged pic always has the origin size.

Please play little bit around the other settings.
You will see.


Gruß Knut

Posted: Mon 28. Nov 2005, 07:52
by bob332
fli-flop wrote:Hi bob323,

the size you put in are the size of the thumbnail within the article.
The enlarged pic always has the origin size.

Please play little bit around the other settings.
You will see.


Gruß Knut
thanks for the help :)

now do i use the "insert/edit image" button from the toolbar or the image space under the area i put in the text?

Posted: Mon 28. Nov 2005, 07:58
by bob332
i am getting it now, i was trying to do it all in 1 motion, and not breaking up the images from the text. thanks

what i can't understand is that it makes all the images 538px wide.....and the original is 750px....

Posted: Mon 28. Nov 2005, 08:07
by flip-flop
At your conf.inc.php there are severel parameters:

Code: Select all

$phpwcms["file_maxsize"]      = 52428800; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 600;      //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100;      //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 100;       //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 960;      //max width of the large preview image
$phpwcms["img_prev_height"]   = 850;      //max height of the large preview image
Gruß Knut

Posted: Mon 28. Nov 2005, 08:10
by bob332
fli-flop wrote:At your conf.inc.php there are severel parameters:

Code: Select all

$phpwcms["file_maxsize"]      = 52428800; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 600;      //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100;      //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 100;       //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 960;      //max width of the large preview image
$phpwcms["img_prev_height"]   = 850;      //max height of the large preview image
Gruß Knut
thanks, i changed it to a max width of 1280 and height of 1024...lets see how this works.....bingo :) :) thanks, works excellent!!!!

Posted: Thu 1. Dec 2005, 10:28
by hanka
Hi,
sorry, if my question is too silly, I am just a beginner with phpwcms.

I have the same problem with the diferent size of origin pictures and the displayed ones.
I do not know, how to get to "conf.inc.php" and change the variables.

Posted: Thu 1. Dec 2005, 10:32
by Ben
There are no silly questions here. :D
config.inc.php is in the /config/phpwcms/ folder

Posted: Thu 1. Dec 2005, 13:43
by hanka
Thank you very much,
now it works! :D

Posted: Thu 1. Dec 2005, 21:39
by bob332
fli-flop wrote:At your conf.inc.php there are severel parameters:

Code: Select all

$phpwcms["file_maxsize"]      = 52428800; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 600;      //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100;      //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 100;       //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 960;      //max width of the large preview image
$phpwcms["img_prev_height"]   = 850;      //max height of the large preview image
Gruß Knut
i also wanted to point out that this does not overided the max size in bytes in the php file, whichs would also need to be changed in the php.ini or is my machine off?

Posted: Fri 2. Dec 2005, 01:41
by jscholtysik
Hi Bob,


check the server settings with the phpinfo() command. There are some values on which the file upload depends:

max_execution_time
memory_limit
post_max_size
upload_max_filesize


Joachim