Easiest Photo Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Jason

Re: Easiest Photo Gallery

Post by Jason »

The plugin works, except in my case, it only seems to show .gif files. If I upload JPGs to a folder, nothing shows. Any thoughts why this is happening?

Thanks
Jason

Re: Easiest Photo Gallery

Post by Jason »

Further to this problem, png files show an image placeholder, but with a red X. If I click on the file, it displays it. JPG files do not show a placeholder at all... it is almost as though the plugin does not know they are in the folder. The images all have thumbnails created with the image manager.
jason

Re: Easiest Photo Gallery

Post by jason »

final finding... some JPGs show. I cannot figure out why some do and some don't. The sizes are the same, file names are similar.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Easiest Photo Gallery

Post by Russ »

Hi Jason, apologies for the delay in replying. Because of your problems I created a test gallery with a few different Png's and a Gif. They might be a bit slow loading as they are quite big - but they work.


http://www.cms.shoesforindustry.net/cms ... etest.html


There are a few things I can think of, but first are you using the latest plugin?, Second check the permissions to your folders and the files. It may be some you can see and others you cannot. Also there is some sort of bug in the current version of image manager that won't create thumbs for small pictures. (I presume you've checked with FTP to see if the thumbs are being created.) I'd also look at image size? I keep my main pics at around 400px width. You could also try clearing out your CMS cache and your browser cache :)

Let me know how you get on.
Russ
Last edited by Russ on Tue Apr 25, 2006 7:59 pm, edited 1 time in total.
durley

Re: Easiest Photo Gallery

Post by durley »

Re: the missing images , JPG and PNG. I have found the same on my installation. In the tag code there is a section as follows:

//READ OUT PIC DIR
$liste = array();
while($check = $picDir->read()) {
if(strpos($check,'.JPG') || strpos($check,'.gif') || strpos($check,'.png')) {

I found that it is to do with the case in the line above. By changing the lowercase 'jpg' to upper-case 'JPG' i suddenly found my thumbs and images would display.

Hope this helps to point someone towards a solution.
sonnyzm

Re: Easiest Photo Gallery

Post by sonnyzm »

Hey guys, nice forum youve got here.
Anyway I've installed the photogallery into the user defined tags but i cant get pictures put in subdirectories to show for some reason. ie. I can get pictures in the default directory uploads/images/ to show but i cant get uploads/images/flowers/ to show. any ideas?

This is what i use btw: {thumbnailGenerator type='popup' picFolder='uploads/images/flowers/'}
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Easiest Photo Gallery

Post by Russ »

Hi everyone!
1. Patricia:
As 0.12 is delayed for 1 week, I suggested to Wishy to maybe include ImageGallery in 0.12 core.
http://forum.cmsmadesimple.org/index.ph ... l#msg18572
Does this mean I don't have to register it as tag - which I did yesterday? I guess it doesn't so I'll just post the changes here for now. Can somone delete (or can I?), the recently created plugin project? Also will it have to go into subversion or will that be done as a part of the core?

2. Patricia:
maybe just add the fact it will recognize lower and uppercases extensions,
Code:
if(strpos($check,'.JPG') || strpos($check,'.gif') || strpos($check,'.png')) {
could become

Image Gallery - Version 0.3 attached
Code:
if(strpos($check,'.jpg') || strpos($check,'.JPG') || strpos($check,'.jpeg')
|| strpos($check,'.JPEG') || strpos($check,'.gif') || strpos($check,'.GIF')
|| strpos($check,'.png') || strpos($check,'.PNG'))  {
Whoops...It is done in the attached release (0.3) :(

3. Durley and Jason.
Durley:
I found that it is to do with the case in the line above. By changing the lowercase 'jpg' to upper-case 'JPG' i suddenly found my thumbs and images would display.
Jason:
final finding... some JPGs show. I cannot figure out why some do and some don't. The sizes are the same, file names are similar.
Apologies for a large oversight on my behalf in the code. I was so busy concentrating on other things I just missed the obvious :(. Sorry for any confusion or effort spent trying to sort out something that I should have fixed, but thanks for the information and Jason. apologies for my not spotting this on your initial response. Thanks both of you for the beta testing :) This has been fixed.

Image Gallery version 0.3 attached
Download it and re-name to 'function.ImageGallery.php' and then
copy it to your CMS plugin directory. It has extensive help and an example of the CSS within the help.

I hope this one works a bit better :)
Russ

[attachment deleted by admin]
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Easiest Photo Gallery

Post by Russ »

OK Patricia, I'm in your hands :)

Thanks,
Russ
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Easiest Photo Gallery

Post by Russ »

Quote from: Russ on 18 Feb 2006, 03:14
1. Patricia going back to an earlier e-mail...
Actually, I was not talking about that (my english is maybe not clear Wink ), but that the user (editor of the site) might want to have the ability to add a description about the pictures. As we do not want to make a complex module with db, I have thought of txt files that could be added in the .thumbs folder I mention above. I was inspired by how works this script EasyPhpAlbum.
I think this is a good idea and when I get a few minutes I will see what can be done. You are thinking of having some sort of text or xml or csv file in the folder, with a list of the images and perhaps some sort of descriptions for the image - at least some text which could be read?  This would be set by the gallery creator? and hence static text? Or are you thinking that other users would be able to comment on the images (and write to this text file) then I think this woould be better done in a module and database table.?
I modified the Image Manager to have it create thumbs in a subfolder:

    * myimage.jpg
    * .thumbs/.myimage.jpg

then as the folder begins by a dot (hidden files), it's not read as a folder in the Image Manager, or in any script that list a directory.
I'm think the idea of ensuring that the Image Manger creates thumbs for small imgaes is great. Although I still don't see the point of another hidden directory for the thumbs? Perhaps there is a good reason and I'm just too blind to see it?

Russ
Redguy
Forum Members
Forum Members
Posts: 44
Joined: Wed May 18, 2005 12:59 pm

Re: Easiest Photo Gallery

Post by Redguy »

I added the popup functionality again.. and re-wrote the javascript function, it's now xhtml strict and much shorter code. The default is still "click" so you'll have to add type="popup" to the tag and remember to add the javascript into the head of the template. The info is in the Tag's Help.

And Russ, I didn't change much, so I hope I'm not invating your territory by doing this ;)

As always, download the function.ImageGallery.txt and rename it to function.ImageGallery.php before uploading into the CMSMS plugin directory!

Tell me what you think about this?

[attachment deleted by admin]
Caspar

Re: Easiest Photo Gallery

Post by Caspar »

Redguy wrote: I added the popup functionality again.. and re-wrote the javascript function, it's now xhtml strict and much shorter code. The default is still "click" so you'll have to add type="popup" to the tag and remember to add the javascript into the head of the template. The info is in the Tag's Help.
It's exactly what I need now! :D
How can I avoid those scrollbars being displayed in the popup-window?

Thanks, Cas
Redguy
Forum Members
Forum Members
Posts: 44
Joined: Wed May 18, 2005 12:59 pm

Re: Easiest Photo Gallery

Post by Redguy »

cas wrote: How can I avoid those scrollbars being displayed in the popup-window?
Maybe I forgot something in the popup function, I will look into this when I get home today.

Update: It's now fixed.. download again and as always rename to function.ImageGallery.php and upload to the plugin folder... Can't believe I forgot to set the scrollbars to 0?'? ??? but I fixed two other bugs so it was worth it :P

[attachment deleted by admin]
Last edited by Redguy on Fri Feb 24, 2006 12:48 pm, edited 1 time in total.
Redguy
Forum Members
Forum Members
Posts: 44
Joined: Wed May 18, 2005 12:59 pm

Re: Easiest Photo Gallery

Post by Redguy »

Well, it seems that the popup scrollbars are still apearing sometimes. At home I test with Firefox 1.5 and IE5 and no scrollbars. At school IE6 shows no scrollbars but with Firefox 1.0.6 the scrollbars are showing? I've tried several things but nothing seems to work. I don't wan't massive hack to fix the problem, so if anybody knows what's going on, I'd like to hear from you. Would be cool if we could fix this before CMSMS 0.12. ;)
wishful

Re: Easiest Photo Gallery

Post by wishful »

hi everyone.
first I apologize if my post/question is irrelevant, as i am no coder  ::)

I am looking for an easy photo gallery that can be implimented in cmsms, that also allows users to share photos etc...
is this what this thread is about?
if it is, is it a simple module?

I read the 3 pages, but couldnt get much of it as there is a lot of code involved.

if it isnt, do you know of one for cmsms?

thank you!
Caspar

Re: Easiest Photo Gallery

Post by Caspar »

hi wishful,

just go 4 posts above and do as redguy says:
Redguy wrote: Update: It's now fixed.. download again and as always rename to function.ImageGallery.php and upload to the plugin folder... Can't believe I forgot to set the scrollbars to 0?'? ??? but I fixed two other bugs so it was worth it :P
in clear words: click on the text file link in the post, save it somewhere on your computer (remember where!), go there and rename it to function.ImageGallery.php and upload it to /yourCmsmsDirectory/plugins/

that's all. after that you'll be able to find the plugin and some help for its implementation listed in your admin-area.

cheers,
cas
Last edited by Caspar on Tue Feb 28, 2006 6:06 pm, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”