multi-gallery-example icon indicating copy to clipboard operation
multi-gallery-example copied to clipboard

Thumbnails photos breaks

Open ykyuen opened this issue 12 years ago • 6 comments

Thanks for this great module. however i couldn't make the thumbnail works in the index.php. after i extract it on my apache htdocs folder. i copy some photos to the folders under gallery. but the thumbnail could not display probably. although a cache folder is created, the thumbnail image link is not correct and points to sth like ../../../../../xxx.jpg.

ykyuen avatar Nov 13 '12 11:11 ykyuen

<div id="galleryWrapper">
    <ul id="galleryList" class="clearfix">
            <li><a href="galleries/cats/0.jpg" title="0" rel="cats" class="cboxElement"><img src="../../../../../100-946ca953802aadb45c716b1004b3e4ba.jpg" alt="0"></a></li>
    </ul>
    <div id="galleryFooter" class="clearfix">
        <div id="credit">Powered by, <a href="http://www.ubergallery.net">UberGallery</a></div>
    </div>
</div>

ykyuen avatar Nov 13 '12 11:11 ykyuen

i find the cause of the problem. The thumbnail could be shown after i modified the $this->_rThumbsDir to the cache folder name.

// Get the relative thumbs directory path
//$this->_rThumbsDir = $this->_getRelativePath(getcwd(), $this->_cacheDir);
$this->_rThumbsDir = "cache";

ykyuen avatar Nov 13 '12 12:11 ykyuen

I tried this multi-gallery script in February 2017, and it did not create any thumbnails. Also, I could not find such a line of code like in ykyuen’s posting. So – no bugfix of this issue since 2012?!

Torsten-K avatar Feb 26 '17 18:02 Torsten-K

https://github.com/UberGallery/multi-gallery-example/blob/master/resources/UberGallery.php

line 87. hope that works for u.

ykyuen avatar Feb 27 '17 04:02 ykyuen

Thanks for your help, ykyuen, much appreciated. Anyway, in the meantime I deleted UberGallery, because I found a multiuser gallery CMS (Chevereto) which fits much better to my needs.

Torsten-K avatar Feb 27 '17 11:02 Torsten-K

Worked for me. Using it now. Very good fix. Shame someone cant update the download.

Tinman33 avatar Aug 21 '18 15:08 Tinman33