Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Mini-Talk

Summary: Talk Page for Mini recipe
Maintainer: Petko
Categories: Images, Uploads

Return to the gallery

When you click on a thumbnail, it opens the original image. Is there a function for clicking on the larger image to return to the gallery? I'm using Thumbnail Link To Image on my site and the user can click the larger image to return to the gallery. I'm thinking I may switch to Mini if it can do the same. For an example, have a look at my gallery (click some images). - Ian MacGregor

No, there is no such function - the readers have to use their browsers' Back button. However, the recipe can be used with Lightbox, and it offers better usability for readers with not very old browsers. Try it with $Mini['EnableLightbox']=1; [1] --Petko July 13, 2008, at 12:24 AM
Ah. I now remember you said you disable JavaScript. Lightbox is a JavaScript slideshow. --Petko July 13, 2008, at 12:38 AM
Lightbox sounds interesting and may be worth allowing javascript. I'll give Mini+Lightbox a try. - Ian MacGregor

$FarmPubDirUrl

Nice recipe. The only thing is, I can't get the Lightbox working. Java is enabled in my browser, but nothing is happening when I install this recipe on my site (http://www.newpalimpsest.nl/?n=Graffiti.Marokko) Han, july 16, 2008, at 21.50 CEST

Thanks for testing the script :-). I have just released a new versionΔ which fixes $FarmPubDirUrl and disables the default LbMaxH/W values. Please test it. --Petko July 16, 2008, at 10:24 PM
Works beautifully! Thanks, Han, July 17, 18.50 CEST

Setting lightbox alive

$Mini['LbMaxH'] = 800; $Mini['LbMaxW'] = 800; ... Default value for both options is "0", and all pictures are displayed in Lightbox.

I misunderstood the lightbox settings, only after setting the values to something else than 0 did it work. But for the rest a likeable script.

 if($lb>'' && $mH>0 && $mW>0 && $h<=$mH && $w<=$mW)

Damien July 17, 2008, at 09:04 AM

Thanks for reporting this bug (it should display all pictures with LbMaxW/H to 0, as written in the doc). It is now fixed in version 20080717b (just uploaded). --Petko July 17, 2008, at 09:37 AM

Help Installing

Where do i put the "include_once("$FarmD/cookbook/mini.php");"???

In the file /pmwiki/local/config.php, see Local Customizations

Thanks! :). it works now.
Edit - History - Print - Recent Changes - Search
Page last modified on August 29, 2008, at 09:10 AM