Member
Member
NaturalEnquirer   2011-08-04, 00:26
#1
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 `<a href rel="slideshow" /zenphoto/albums/test/test.jpg"` won't work).

Thank you.
Member
Member
gjr   2011-08-04, 00:45
#2
[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]
<a class="zpmas-cb" .....
Member
Member
NaturalEnquirer   2011-08-04, 17:09
#3
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?
Administrator
Administrator
acrylian   2011-08-04, 18:12
#4
The standard slideshow plugin as a colorbox slideshow option.
Member
Member
NaturalEnquirer   2011-08-05, 20:32
#5
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
`
<?php $albumobject = new Album($_zp_gallery,"portfolio");
printSlideShow(true,false,$albumobject);
?>
`
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.
Member
Member
sbillard   2011-08-05, 20:58
#6
Your debug_log.txt file should have more detail on this. But most likely you will need to declare `$_zp_gallery` global.
Member
Member
NaturalEnquirer   2011-08-06, 10:26
#7
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]
`
Administrator
Administrator
acrylian   2011-08-06, 12:02
#8
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.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.