PiPictures not showing thumbs

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
sydneysunshine

PiPictures not showing thumbs

Post by sydneysunshine »

I have just installed PiPictures 1.2a but the thumbnails are not appearing below the main image. It says 'selected' but there are no thumbs. This happens in both ie and firefox.

I had a bit of trouble understanding the installation instructions. The placeholder.gif is in the PiPicture directory and the images are jpg. I dont have the originals, as I'm adapting this site to use CMSMS.

I am using: {PiPictures default="BYSA Bridges DVD Project" maxwidth=450 template="pipic.tpl"}
and the test page is
http://www.bridges.org.au/cms/index.php ... dges_Video

(Please forgive the css, as I'm in the middle of it)  :)
sydneysunshine

Re: PiPictures not showing thumbs properly

Post by sydneysunshine »

Hi! I have got thumbs to work but there's a new problem:

It looks like I've got a permissions problem. I keep CHMODding the PiPictures dir to 777 but all the subfolders I create are 644 or it's changing from 777 to 644. What is happening here? (That was the answer to my original problem by the way - the dir was set at 644)

Also PiPictures is making duplicates of the thumbs in the main dir and they are showing up on the page as well. In the thumbs dir the main pictures are then appearing also. Have I set a setting incorrectly?

The test page is http://www.bridges.org.au/cms/index.php ... dges_Video

Again, apols for css, need to fix these things first. Client looking at site in three days!!
sydneysunshine

Re: PiPictures not showing thumbs

Post by sydneysunshine »

Thanks Patricia ...hmm I only downloaded the plugin a couple of days ago so it surprises me it's not supported. I think maybe the best thing would be for me to look at other gallery plugins that is supported as I'm not a php person either. I have got the cataloger and will have a look at that now.

Nearly there! :)
katon

Re: PiPictures not showing thumbs properly

Post by katon »

sydneysunshine wrote: Also PiPictures is making duplicates of the thumbs in the main dir and they are showing up on the page as well. In the thumbs dir the main pictures are then appearing also. Have I set a setting incorrectly?
The reason for this is that when you upload photos with the Image Manager, the it generates thumbnails for admin view.  Then PiPictures generates thumbnails out of Image Manager thumbnails, which results in the duplicates.  I fixed it by updating line 122 to the following:

Code: Select all

     if ($entry <>'.' && $entry <>'..' && (!is_dir("$rooturl$one/$entry")) && ($endung == 'jpg') && substr($entry, 0, 6) <> "thumb_")
A better solution, however, would be to use the thumbnails generated by the ImageManager or, if images are uploaded by ftp, create thumbs with the filename and location used by ImageManager.  Or maybe even change the ImageManager code instead? ;-)
katon

Problem fixed in v.1.3

Post by katon »

Ok, the duplicate thumbs problem is fixed in version 1.3.
Locked

Return to “CMSMS Core”