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? - Ian MacGregor

No, the readers have to use their browsers' Back button. However, the recipe can be used with Lightbox JavaScript, and it offers better usability. Try it with $Mini['EnableLightbox']=1; [1] --Petko July 13, 2008, at 12:24 AM
Lightbox sounds interesting and may be worth allowing javascript. I'll give Mini+Lightbox a try. - Ian MacGregor

Links to galleries

IPTC captions

It is an exelent application, but it would be even better for me if the iptc caption field could be used. With this I could easily comment my pictures in Picassa, IrfanView; upload them as a batch and find those comments displayed when looking at the pictures online. Damien September 27, 2008, at 04:18 PM

Done, it seems. You can get and test the latest code. To enable it, set in config.php $Mini['GetIPTC'] = 1; --Petko September 27, 2008, at 05:33 PM
Added as of 20081216. --Petko December 16, 2008, at 04:26 PM

Random Thanks and Stuff

I have been looking for a solution like this for such a long time. Thank you for such a wonderful work! -- JLuk, October 27, 2008

Thanks for your kind words! --Petko November 23, 2008, at 07:35 PM

Lightbox is not working for me.

I have tried everything but Lightbox seems not to work with my pmwiki (i have the latest version). Maybe there are some bugs in the latest version of 2 december? I spent 2 hours trying to figure out whats wrong but i can't find anything. Maybe there is something wrong with the javascript because i can't see it in the page source code of my website.

Here is part of my configuration file:

 $Mini['EnableLightbox'] = 1;
 $Mini['LbUrl'] = "$FarmPubDirUrl/lb" ; 
 $Mini['LbMaxH'] = 800; $Mini['LbMaxW'] = 800;
 include_once("$FarmD/cookbook/mini.php");

Here is the part from mini.php:

 'EnableLightbox' => 1,
 'Px' => 150,'Quality' => 90,
 'CropXPos' => 0.5, 'CropYPos' => 0.5,
 'LbMaxH'=> 800,'LbMaxW'=> 800,

I followed the documentation and placed mini.php in the cookbook directory and the lb directory in my /pub directory. But Lightbox just doesn't work.

 -- miranon, 3 december 2008
Hi. First, you should not edit the mini.php file. All settings could be done in config.php and they automatically override the internal variables. This is part of the PmWiki Philosophy #5 -- easier to upgrade to a newer version of Mini. (Set $Mini['Px']=150; in config.php.) Second, I feel the problem comes from your line $Mini['LbUrl'] = "$FarmPubDirUrl/lb" ; where the $FarmPubDirUrl variable may not yet exist; just remove the line. Other possible issue may be that you defined LbMaxH and LbMaxW, but your original pictures are larger than 800 px. If this doesn't help, is there a page I could look at? --Petko December 02, 2008, at 06:23 PM
Lightbox is now working. Thanks!
Hi Petko, everything is working now. I figured out that the reason was my template for pmwiki, i forgot to include the -><!--HTMLHeader-->. Now i have fixed it and everything is working fine. Thanks for your help and tips! Greetings, -- miranon, 3 december 2008
Edit - History - Print - Recent Changes - Search
Page last modified on December 16, 2008, at 04:26 PM