Easiest Photo Gallery
Re: Easiest Photo Gallery
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
Thanks
Re: Easiest Photo Gallery
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.
Re: Easiest Photo Gallery
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.
Re: Easiest Photo Gallery
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
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.
Re: Easiest Photo Gallery
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.
//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.
Re: Easiest Photo Gallery
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/'}
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/'}
Re: Easiest Photo Gallery
Hi everyone!
1. Patricia:
2. Patricia:
3. Durley and Jason.
Durley:
. 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]
1. Patricia:
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?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
2. Patricia:
Whoops...It is done in the attached release (0.3)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')) {

3. Durley and Jason.
Durley:
Jason: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.
Apologies for a large oversight on my behalf in the code. I was so busy concentrating on other things I just missed the obviousfinal finding... some JPGs show. I cannot figure out why some do and some don't. The sizes are the same, file names are similar.


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]
Re: Easiest Photo Gallery
OK Patricia, I'm in your hands 
Thanks,
Russ

Thanks,
Russ
Re: Easiest Photo Gallery
Quote from: Russ on 18 Feb 2006, 03:14
1. Patricia going back to an earlier e-mail...
Russ
1. Patricia going back to an earlier e-mail...
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.?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'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?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.
Russ
Re: Easiest Photo Gallery
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]
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]
Re: Easiest Photo Gallery
It's exactly what I need now!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.

How can I avoid those scrollbars being displayed in the popup-window?
Thanks, Cas
Re: Easiest Photo Gallery
Maybe I forgot something in the popup function, I will look into this when I get home today.cas wrote: How can I avoid those scrollbars being displayed in the popup-window?
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?'?


[attachment deleted by admin]
Last edited by Redguy on Fri Feb 24, 2006 12:48 pm, edited 1 time in total.
Re: Easiest Photo Gallery
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. 

Re: Easiest Photo Gallery
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!
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!
Re: Easiest Photo Gallery
hi wishful,
just go 4 posts above and do as redguy says:
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
just go 4 posts above and do as redguy says:
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/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
![]()
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.