Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

PmGallery-Talk

« Return to pmGallery

Summary: Talk Page for pmGallery
Maintainer: DaveG
Categories: Images, Gallery, Picasa, Flickr

Question 0727-2008 22:30 GMT+1

I've been using pmgallery and galleria recipes for a few days now, and only one issue remains before perfect functionality is achieved :-). I am not able to get the wrapper="ul > li" parameter to cooperate with galleria parameters list=".pmGalleryWrapper ul" and carousel=true.

What I get when I try that, is basically an empty carousel. It is rather strange, since both galleria and pmgallery seems to work properly on my site. It seems to be connected to the magical ul word, or maybe the wrapper="ul > li" parameter for pmgallery. Is it any way to verify that pmgallery gets it correctly, regarding wrapper="ul > li"? For me, pmwiki on my site is no longer displaying the thumbs as a bullet list, when I use wrapper="ul > li". That is a bad sign, right?

What I'm trying, that is not working, is the following:

(:pmgallery imagesize=512 user=nepherim album=Quiddity mode="linkdirect" wrapper="ul > li":)
(:div id="pmGallery_Image":)
(:divend:)
(:galleria list=".pmGalleryWrapper ul" image="#pmGallery_Image" carousel=true:)

For a working solution with no carousel, I use the following parameters:

(:pmgallery imagesize=512 user=nepherim album=Quiddity mode="linkdirect" wrapper="li":)
(:div id="pmGallery_Image":)
(:divend:)
(:galleria list=".pmGalleryWrapper" image="#pmGallery_Image" :)

If anyone see what I'm doing wrong in the first code example, please give me a hint.

(I swapped user and album parameters, just to keep focus on my technical troubles instead of my wedding pictures:-))

Response 28-Jul-2008 11:10 EST

Are you using the exact code above, and things are not working? It sounds like you are actually using different parameters (for your wedding pictures) -- it would be helpful to see exactly what you have. If you can provide a URL, I can take a look and see what's up -- if you'd rather not post it here, send it to me in an email to ikiwmp at solidgone dot com (reverse the first word to form the name of a well known wiki :)

  1. The second block of code might work, but isn't going to form valid html, so it's a the mercy of the browser. Try using "ul>li" instead of "ul > li" (ie, no spaces) -- that shouldn't make a difference, but who knows.
  2. If you are using the first block above (with nepherim as the user) then things looks right. However, you mention that you don't see the list. That seems to suggest that Galleria is kicking in and replacing the list with the elements it needs. Are you sure you have downloaded the Cookbook directory and the Galleria directory in the Pub directory of your PmWiki install?
  3. You might want to check the source of your page, copy the galleria css path and paste it into the browser address bar to make sure it's available.

Remark 0725-2008 21:00 GMT+1

I've been playing around a little with the thumbsize parameter, and found the following:

thumbsize = 72, 144, 288, 576

Works fine

thumbsize = 32, 48, 64, 160, 200, 320, 400, 512, 640, 720, 800

Gives thumbs that are stretched to square shape, that is wrong aspect ratio unless the image is square to begin with. The thumbs also have poor display quality for these sizes.

DaveG 26-Jul-2008 22:40

Thanks for the info. I just re-checked Googles API page and it seems that there are some restrictions on thumbsize. However, they don't match your findings. I'll take a look and see what's happening -- I suspect it's something to do with the cropping. For those interested this quote is from the Google API:

The following values are valid for the thumbsize and imgmax query parameters and are embeddable on a webpage. These images are available as both cropped(c) and uncropped(u) sizes by appending c or u to the size. As an example, to retrieve a 72 pixel image that is cropped, you would specify 72c, while to retrieve the uncropped image, you would specify 72u for the thumbsize or imgmax query parameter values.

32, 48, 64, 72, 144, 160

The following values are valid for the thumbsize and imgmax query parameters and are embeddable on a webpage. These images are available as only uncropped(u) sizes by appending u to the size or just passing the size value without appending anything.

200, 288, 320, 400, 512, 576, 640, 720, 800

Question 0718-2008 22:30 GMT+1

On the example site http://wiki.solidgone.org/PmGallery/Demo, thumbnails display perfectly, but the gallery does not open correctly when clicking a thumbnail.

Error message is the usual "The web page can not be found" (HTTP 404)

I also have the same problem when using pmgallery on my own site. Any quick fixes?

Update to question 0718-2008 22:30 GMT+1

After some experimenting, I came to the conclusion that the error displays because the empty wikipage with name [[InsertPmGalleryGroupName/InsertImageFileName]] is not automagically created as you click a thumbnail. It is a little strange that this happens also in the example site, and not only on my site. If someone finds out what is missing, please give me a hint.

Update 2 to question 0718-2008 22:30 GMT+1

Workaround from original poster (this is not a solution to the error):

in (:pmgallery:) markup, use the wikitarget=yourGroup.yourPage to specify the page in which pictures are opened. Remeber to manually create the specified yourGroup.yourPage (it can a be empty page, but it must be created). Also, for me this workaround needs $EnablePathInfo = 0 in config.php

Solution: 19-July-08 13:36 EST by DaveG

Thanks for letting me know. I've fixed this problem with the latest v0.1.3, available for download.

Question 0718-2008 20:00 GMT+1

Hi,

I'd really like to make the pmGallery work on my website, but so far I get the following error message whenever I use the pmGallery markup:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/damhaugc/www/bryllup/cookbook/pmgallery/picasa.php5 on line 14

I have tried my best to follow the recipe, but obviously something is wrong. As my skill wih PHP is fairly limited, I can't identify the problem. The PHP5 prerequisite mentioned may be it, but I don't know how to check for this. Any suggestions?

My site is using the following version and recipes from pmWiki:

pmwiki-2.2.0-beta65 (Is the new beta67 required?)

Update to question 0718-2008 20:00 GMT+1

I went to my ISP and upgraded from PHP 4.4.4 to PHP 5.1.5, and suddenly it all started working :-) Problem solved, in other words. Thank you for a great recipe!

Solution: 19-July-08 13:36 EST by DaveG'''

pmGallery requires PHP5. Thanks for testing!

Edit - History - Print - Recent Changes - Search
Page last modified on July 28, 2008, at 10:26 AM