? about making a small photo gallery

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

? about making a small photo gallery

Post by Operator »

Hi,
I am currently inserting images into my website and have two questions:

1. I want to have up to 9 thumbnails per page in my galleries. When inserting images, I can't figure out how to make them appear side by side.... they always appear below the previous image instead.

2. When clicking on a thumbnail, sometimes the image that appears in the pop-up window is smaller than the one I uploaded. Why? How can I make the pop-up image appear the the same size as original uploaded image?

ad [thanks] vance,
Mark
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

my answer for question 2)
the image size of the popup image is a setting in conf.inc.php:

Code: Select all

$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

thanks

Post by Operator »

thank you, that worked perfectly.

I will also note, for anyone else with same issue, that after editing the config file, you must also upload your images again.

Anyone know who to answer question 1?

thanks,
m,
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

I assume you are using the content type of images. You will need to set the columns variable to something greater than one to solve your first question.
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

columns

Post by Operator »

I'm trying to place 9 thumbnails on a page... 3 x 3. I have been adding the images using 'content type - images' ... I've tried setting the column variable to 2 an the second image... but when I click on 'update content' it resets back to 1. That's as far as I've gotten.

Anymore advice out there?
Mark
Carlos Rocha
Posts: 72
Joined: Tue 3. Aug 2004, 00:12
Location: Portugal
Contact:

Post by Carlos Rocha »

You must play with "max.width" to limit each image width
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

got it

Post by Operator »

ok i figured it out... i was adding each image as a seperate content type, so they were appearing vertically ... first image, then another below, and so on. When I added 3 images together in a single content type, they appeared side by side. ... then i can add another content type below that one... etc.
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

The most correct way is to insert 9 images into one content part of 'images' and set the columns to be 3. I believe the images would be arranged with 1 through 3 in the first row and so on.
smorelli
Posts: 19
Joined: Thu 19. May 2005, 21:17
Location: Kansas City - USA

Re: ? about making a small photo gallery

Post by smorelli »

Did this work for you? I can't get mine to work that way at all and it's been the biggest frustration.

Did you have to change the template from default to slider? I experimented and it did move things around but with some exposed code, etc. Overall I'm wanting the same deal with 9 photos in 3 columns. No luck for me so far.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: ? about making a small photo gallery

Post by flip-flop »

I can´t understand this problem in newer versions (1.4.x).

Insert your images into the CPs image, image <div> or image special. For the last two CPs you can edit the cp template to your needs.

Using the simple image cp insert the 9 pictures and set up [max. width:]/[max. height:] - [column:] and [image space:] for the thumbnails.

The same by using image <div> or image special -> Have a look for image <div>

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply