Show comment form and other information along with images in colorbox

What is the best way to show the comment form, comments, and other colorbox related information with the image? How about profile photos on facebook profile?

Just opening the node image in colorbox, for example 'node / 196? iframe = true, much slower than opening an image.

+3
source share
1 answer

an inline configuration option would be one solution

<style type="text/css">
    .hide-colorbox{display:none}
    #cboxLoadedContent .hide-colorbox{display:block}
</style>

$(".example8").colorbox({inline:true, href:"#inline_example1"});

<div id="inline_example1" class="hide-colorbox">
    <p><strong>This content comes from a hidden element on this page.</strong></p>
</div>

You can output the required html to the page loading and then hide it with css or create content based on the page layout.

+1
source

All Articles