multi-gallery-example
multi-gallery-example copied to clipboard
Thumbnails photos breaks
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.
<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>
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";
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?!
https://github.com/UberGallery/multi-gallery-example/blob/master/resources/UberGallery.php
line 87. hope that works for u.
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.
Worked for me. Using it now. Very good fix. Shame someone cant update the download.