Problem Album module. Original is shown in stead of thumbnail in overview ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
corvus

Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by corvus »

I use cmsms 0.13 and album 0.7.0

When I make an album (popup tables) and I insert it in a page I don't get thumbnails anymore. I get original size instead.
It must be in the album module because when I use an old album I get the correct size.
When I look in de page source I get





When I look in my database the thumbnail_path  is empty ?
My config.pgp does show a path.


Two of them work.
One is in /uploads/images and has permission 640 on the thumbn. (this one shows up ok)
the other in /uploads/images/somedir and has permission 644 on the thumbn. (this one shows up ok)
and one /uploads/images/somedir/somedir/ and has permission 640 on the thumbn. (this one does not show up ok)

another test:
creating a dir /2004/test01/test02/ with ftp and putting a picture in it. chmod 777 results in:
a cross x for the thumbnail when looking with image manager.  ???

furthermore when uploading images with the filemanager 0.1.3 result in not being able to see the files at all with smartftp but this might have nothing to do with the original problem.



Here is a link
http://www.boshoverbeek.nl/index.php/test

It used to work. What can I do to correct this ?
Last edited by corvus on Tue Sep 05, 2006 2:22 pm, edited 1 time in total.
corvus

Re: Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by corvus »

I reply to myself once again cause I can reproduce the behaviour now.

Not that I have any idea of a solution.

When I take a picture and put it in /images/pic.jpg the thumbnail works ok. There is also a thumbnail shown in photoalbums as soon as I have added a picture.

When I take a picture and put it in /images/folder/folder/pic.jpg the thumbnail DOES NOT works and the big picture is shown instead of the thumb. There is also NO thumbnail shown in photoalbums as soon as I have added a picture.

And now for the coders and developers (since I am only a user with no php knowledge)
I supose this is a BUG ?

This has nothing to do with the thumbnail being created or not.
When the pic is to big a thumbnail is not created but this is another problem.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by Dr.CSS »

Have you FTPed to the /images/folder/folder to see the thumbs?

The image manager usually only makes thumbs after you view the big pic.s in Image Manager...

Goto IM to the folder/folder to look at the images then you should be getting thumbs.
corvus

Re: Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by corvus »

I went to image manager and made the pictures big.

After that I looked with my ftp program to see the thumb_xxx.jpg pics.
So the thumb is indeed there.
Album only doesn't see it. The thumbnail_path stays empty in the sql database.
When I manually choose a thumbnail for the photoalbum the thumbnail path is filled in the sql database BUT still the full size pics are shown on a page instead of the thumbs.

It still seems to me there is a problem when pictures are not in the /images folder but in a sub folder

By the way, when you make an album the thumbs are also created. You don't necessarily have to go through album manager.
Last edited by corvus on Wed Sep 06, 2006 6:41 am, edited 1 time in total.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by Elijah Lofgren »

If you don't want to upgrade to CMSMS 1.0 and Album 0.7.2 this should work:
Terabyte wrote: Hi,

I'm just not a person that likes to wait for a solution and somebody else to fix it, so I found it:

in file action.addpicture.php on line 43 you have

Code: Select all

$thumbpath = dirname($imagepath).'thumb_'.basename($imagepath);
There is a slach missing, the code (file_excist) can't find the thumb and sets it to nothing instead. Change to

Code: Select all

$thumbpath = dirname($imagepath).'/thumb_'.basename($imagepath);
I have no clue where to post it on the forum for people to change that in their versions, but you maybe can do it when you have the time.

Best Regards,
Martin
But I'm pretty sure that that solution will make thumbnails not be used for pictures in the top level upload/images folder.

I think just getting the current modules/Album/addpicture.php and replacing it with the one you have should still work on CMSMS 0.13: http://viewsvn.cmsmadesimple.org/viewsv ... iew=markup

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
corvus

Re: Problem Album module. Original is shown in stead of thumbnail in overview ?

Post by corvus »

;D YIHA !

Thank you so much !

Your the best. (Terabyte, thanks also of course)
Locked

Return to “CMSMS Core”