|
Cookbook /
ThumbList-TalkBack to Cookbook.Thumb list
Latest versions
Tips
PHP is not meant to do heavy image processing, so the thumbnails may not work with very big images. Most default PHP installations (usually 8M memory) can handle maximum a 2 megapixel image (about 1600*1200 pixels, colored at 4 bytes/px). If you have problems with some pictures, try to resize them down a little: a picture of 1024*768 pixels is more than enough for most visitors' screens. These image conversions also take a considerable time (several seconds, and this may go over the max_execution_time limits) and ThumbList "threaded" versions from 2006-12-31 on, seemingly work much better in such cases, see ThumbList#relnotes. Your files must be visible to PmWiki, so be sure to have (1) a PmWiki uploads directory structure and (2) a file name allowed by PmWiki. The easiest way to do it is by uploading a file through the "Attach:" link on the wiki page and see if it was renamed (i.e. lowercase extension). This way PmWiki will also create the uploads directory, so you can browse there by FTP and copy your pictures more easily. Archive
Recent discussionsAdd a new section and a brief description at the bottom of the page. Please mention if you are using the latest version, and if possible, link any webpages if needed. --Petko You can sign by adding Wiki markup in captionsOn allowing formatting in captions, I note that images support basic formatting in captions From version 2008-01-18 it is possible to have inline formatting (links, bold, colors...) in thumbgallery captions. --Petko February 03, 2008, at 07:26 AM
Access control for the picturesThis might be a stupid question but is there any kind of access control for the pictures? I understand that I can protect a wiki page but is there some way of preventing unauthorized access to a picture (I mean directly through the image URL)? Yes, set in config.php Force thumbnail heightsPS How about a height= to go with the width=. The px= seems to set either height or width depending on context (in table[1], out of table[2]) and I don't seem to get the results I expect. Looking at your page I feel that you would like to achieve (again) something like [3] (check the divs and the css). In a non-tabled thumblist, the When I change height= to px= in the above page the photos go to 350 wide, not 350 high? There is no height= parameter. When you use Petko, sorry to confuse things. I have set up a test page[4] that illustrates my lack of understanding, it does not use tables. Simon The confusion comes from the "captionfmt" parameter which, as documented in the manual, transforms the single thumbnail in a one-cell table. I'll try to implement a new Done in a development version. Please get it and test it. --Petko July 03, 2008, at 07:18 PM thanks for the new version, such a professional and useful recipe, Simon
Link whole galleries through a single thumbnailHello Petko, first off many thanks for this great recipe. I was wondering, if it is possible to link a whole gallery (thumblist) through one thumbnail. Have a look at Also, I have noticed captioning doesn't work with lightbox, but I don't use this anyway. --Jonas July 04, 2008, at 11:58 AM
Thanks, --Petko July 04, 2008, at 03:09 PM Inheriting the thumbnail caption in LightboxI think what Jonas is talking about re: captioning is that Lightbox uses the filename as a caption rather than inheriting the thumbnail caption one specifies in a Thumbgallery. The ability to have it do so would indeed be nice. --Sean, Aug 20, 2008 This is possible from version 20080821 as shown here. Please get it and test it. (More documentation will be added in a couple of weeks.) --Petko August 21, 2008, at 06:08 AM Adding the stylesheet as a file
SDV($ThumbList2Url, (substr(__FILE__, 0, strlen(
---Markus, 11.09.2008, from Germany Thanks for testing and tweaking the recipe. About the CSS, I was thinking more of adding the code in the file |