zpMasonry colorbox

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.

Comments

  • gjr Member
    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?
    No to both.
    Also, could someone please give me the correct link to use when calling for images to use with colorbox from inside a Zenpage?
    <a class="zpmas-cb" .....
  • 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?
  • acrylian Administrator, Developer
    The standard slideshow plugin as a colorbox slideshow option.
  • 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.
  • Your debug_log.txt file should have more detail on this. But most likely you will need to declare `$_zp_gallery` global.
  • 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]
    `
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.