Page 1 of 2

{gallery} tag

Posted: Sun Mar 26, 2006 5:00 pm
by telmaw
The photo gallery is great, and very easy to use.  Can anyone tell me how to get the thumbnails to appear in a grid format (multiple columns) rather than the single column I currently have?  The example from the author at http://www.cms.shoesforindustry.net/gallerya.html, for instance, show three columns.  I guess I have to do something with the CSS but I don't know which file to edit.  Thanks.

Can anyone recommend an alternative photo gallery plugin?

Originally posted under Modules / Add-ons.

Re: {gallery} tag

Posted: Sun Mar 26, 2006 5:39 pm
by TimothyFoo
Give their container (div) a suitable width (like the width of three thumbnails plus some padding) and then add float:left; to the class you are using to target the image entries themselves.

Re: {gallery} tag

Posted: Sun Mar 26, 2006 9:47 pm
by telmaw
Thanks Timothy, which stylesheet would it be best to add the ImageGallery CSS to?

Re: {gallery} tag

Posted: Mon Mar 27, 2006 6:12 am
by TimothyFoo
I set my sites up a little differently, with link tags for the style sheets - hard coded into the template (I'm a bit fussy when it comes to proper indentation, so I like to use SciTe to create them and upload to the root via ftp), but a quick look at the admin suggests you should probably create a template just for your gallery and attach a new style sheet to that.

Re: {gallery} tag

Posted: Mon Mar 27, 2006 6:54 am
by Russ
telmaw did you get your Gallery working?

Russ

Re: {gallery} tag

Posted: Sat Jun 24, 2006 4:13 pm
by slloyd
Give their container (div) a suitable width (like the width of three thumbnails plus some padding) and then add float:left; to the class you are using to target the image entries themselves.
Can you please explain how and where to do this?

Re: {gallery} tag

Posted: Sun Jun 25, 2006 8:12 am
by Russ
Hi slloyd,
well it would be a mixture of the template or the CSS, depending on how you are doing it.

Do you have a page you can post and any furthe explanation...

You might also want to look at the Album module which is very cool....

Russ

Re: {gallery} tag

Posted: Sun Jun 25, 2006 1:57 pm
by slloyd
Here's the page:

http://jacoblloyd.com/index.php?page=pf_061006

Anytime I ever upload images in the Image Manager, the thumbnails do not display.

Image

This is true of all of my sites using cms.

Where can I find the Album module? I'll look for it, but in case I can't find it, can you tell me?

Re: {gallery} tag

Posted: Sun Jun 25, 2006 6:40 pm
by Russ
Not sure what this is doing in your stylesheet, but removing it will allow the images to float to the left as required. (It may make some other things change as it shouldn't be there.)

Code: Select all

/* CONTENT */
        div#content {
 
        }
        
        /* MAIN */
            div#main {
 
            }
        /* END MAIN */
        
        /* SUB */
            div#sub {
                
            }
        /* END SUB */

<div id="Description">
          {content block='Description'}
      </div>
<div id="Keywords">
          {content block='Keywords'}
      </div>
<div id="News">
          {content block='news'}
      </div>

It is just above the bit

Code: Select all

/* Image Gallery - Small Thumbnail Images */
As for the thumbnails, I can't seem to see the thumbnails if I try to go to where they should be e.g.
/uploads/images/pf_061006/thumb_2.jpg

So I guess they are not being created or the path is wrong. Check the rights on the uploads directory and sub directories and also the path from upload in your config. (You'll have to re-use image manager to upload the pics to get the thumbnails or manually create the thumbs and upload them.) Last but not least watch the file extensions, on many web servers '.JPG' is different to '.jpg', probably best to keep it all lower case.

Look under the development section of this web site for the album module.

Hope this helps.

Russ

Re: {gallery} tag

Posted: Mon Jun 26, 2006 12:35 am
by slloyd
I friend told me to add that to the stylesheet. I removed it. Thanks.

I'm afraid to upload any new modules since I haven't done that before and the last thing I need is more problems. I'm not as well versed on this stuff as you guys!

Okay, I discovered something very weird about the thumbnail images in image manager. The images (thumbnails) that are not showing have permissions set to 664 (I think that's how you read it) and have "apache" listed as the user. The ones that do appear (thumbnail images) have permissions set to 644 with me as the user.

It should be noted that it was after I moved the site to a new server that this started happening. Also, the new sites that I've created on the new server are doing the same thing. Also, any new images I add do not show the thumbnails and list "apache" as the user.

I tried changing the permissions, but it won't let me. I hope you can help me! I'd like to get this fixed on all of my sites!

Thanks for the help!

Re: {gallery} tag

Posted: Mon Jun 26, 2006 5:26 am
by Elijah Lofgren
slloyd wrote: I'm afraid to upload any new modules since I haven't done that before and the last thing I need is more problems. I'm not as well versed on this stuff as you guys!
Modules have never messed up any of the CMSMS installs that I have done, so you should be safe, especially with the Album module.  ;)

slloyd wrote: Okay, I discovered something very weird about the thumbnail images in image manager. The images (thumbnails) that are not showing have permissions set to 664 (I think that's how you read it) and have "apache" listed as the user. The ones that do appear (thumbnail images) have permissions set to 644 with me as the user.

It should be noted that it was after I moved the site to a new server that this started happening. Also, the new sites that I've created on the new server are doing the same thing. Also, any new images I add do not show the thumbnails and list "apache" as the user.

I tried changing the permissions, but it won't let me. I hope you can help me! I'd like to get this fixed on all of my sites!

Thanks for the help!
Hmm... That's odd.
I would try changing the ownership of files back to you and then try changing the permissions.
like this:

Code: Select all

chown youruser:yourgroup file.jpg
Or for a whole folder of files:

Code: Select all

chown youruser:yourgroup folder -Rv
Also, Do thumbnails for pictures that you upload throught the file manager get created fine?

What FPT client are you using to upload files?

I'm afraid you'll still have problems with thumnails with Album unless thumbnails work in the Image Manager since Album uses the Image Manager to generate thumbnails.

Re: {gallery} tag

Posted: Mon Jun 26, 2006 5:59 am
by Dr.CSS
i've never "seen" the thumbnails with image manager...
only when i FTP to my site and open the images folder...
i make thumbs by opening IM and viewing the images, also look in any folders you might have uploaded to make thumbs in there...
they default to 96px wide... and have thumb_sample.jpg ...

Re: {gallery} tag

Posted: Mon Jun 26, 2006 6:22 am
by Russ
Yes I think Elijah is right as I mentioned before it is proabably a rights / owenership thing. also do not forget that Image Manager needs to be able to right the thumbnail images.

Perhaps slloyd, you should consider a local server on your machine for development and testing? It makes life a lot easier ;-)

Russ

Re: {gallery} tag

Posted: Mon Jun 26, 2006 2:37 pm
by slloyd
I would try changing the ownership of files back to you and then try changing the permissions.
like this:

Code: Select all

chown youruser:yourgroup file.jpg
Or for a whole folder of files:

Code: Select all

chown youruser:yourgroup folder -Rv
That went completely over my head. I have no idea what you're referring to. Sorry!
Also, Do thumbnails for pictures that you upload throught the file manager get created fine?
No. Any new photos I upload show up in Image Manager as a white box with the red x -- just the thumbnails. The photos show up fine on my site, just no thumbnails.
What FPT client are you using to upload files?
I don't use an FTP client for uploading files. I create my files in cms.
I'm afraid you'll still have problems with thumnails with Album unless thumbnails work in the Image Manager since Album uses the Image Manager to generate thumbnails.
That's what I figured. Thanks for your help!

Re: {gallery} tag

Posted: Mon Jun 26, 2006 2:40 pm
by slloyd
mark wrote: i've never "seen" the thumbnails with image manager...
only when i FTP to my site and open the images folder...
i make thumbs by opening IM and viewing the images, also look in any folders you might have uploaded to make thumbs in there...
they default to 96px wide... and have thumb_sample.jpg ...
So you FTP all of your images? Then what's the IM for? I'm confused.