ZenphotoCMS Forum
zpMasonry colorbox - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: zpMasonry colorbox (/thread-8938.html)



zpMasonry colorbox - NaturalEnquirer - 04-08-2011

I am using zpMasonry theme and see that colorbox is available even when Colorbox plugin is not enabled. Do I need to activate that plugin if I want to use it elsewhere such as in a Zenpage? Will activating the colorbox mess up zpMasonry theme?

Also, could someone please give me the correct link to use when calling for images to use with colorbox from inside a Zenpage? I know to include the "rel=slideshow" in the href but wasn't sure what link to use to view images in an album (since `




zpMasonry colorbox - gjr - 04-08-2011

[quote]Do I need to activate that plugin if I want to use it elsewhere such as in a Zenpage? Will activating the colorbox mess up zpMasonry theme?
[/quote]
No to both.

[quote]Also, could someone please give me the correct link to use when calling for images to use with colorbox from inside a Zenpage?
[/quote]




zpMasonry colorbox - NaturalEnquirer - 04-08-2011

Thanks so now I can include a colorbox for a single image. Is there an easy way to include a colorbox slideshow for a folder of images in zenpage without too much programming?




zpMasonry colorbox - acrylian - 04-08-2011

The standard slideshow plugin as a colorbox slideshow option.




zpMasonry colorbox - NaturalEnquirer - 05-08-2011

I've enabled sldieshow plugin.

I added printSlideShowJS() to the inc-header.php (zpMasonry theme)

In slideshow plugin options, I've selected jQuery Cycle mode.

In zenpage's codeblock I have
`

`
When page is viewed, slideshow does show but see this error:

Notice: Bad gallery in instantiation of album portfolio. in C:\mysites\nif1411\galleries\zp-core\class-album.php on line 48

This also happens in zenpage theme.




zpMasonry colorbox - sbillard - 05-08-2011

Your debug_log.txt file should have more detail on this. But most likely you will need to declare $_zp_gallery global.




zpMasonry colorbox - NaturalEnquirer - 06-08-2011

Debug log shows

Backtrace: Bad gallery in instantiation of album portfolio. Album->Album called from eval (template-functions.php(4692) : eval()'d code [2]) from printCodeblock (template-functions.php [4692]) from include (pages.php [29]) from index.php [155]




zpMasonry colorbox - acrylian - 06-08-2011

As sbillard suspected you need to declare the gallery object. Since the call is from within a function (the codeblock one) it is not set.