Member
Member
rl@rocksolidnet.com   29-06-2011, 01:07
#1

Is there a guide on how to implement thickbox or slimbox? Or how to enable transition effects for gallery images? I searched and found bits and pieces, but not a concrete how -to. I am using the latest version of Zen and am a noob. Thanks.

Member
Member
rl@rocksolidnet.com   29-06-2011, 01:19
#2

Also everything I have found in the forums is quite old. Perhaps someone could point me to something current? Thanks.

Administrator
Administrator
acrylian   29-06-2011, 07:54
#3

We have Colorbox included as a standard plugin. Which is actually the same as thickbox (which is not developed anymore) or slimbox. Look at standard themes like the Zenpage theme's image.php and visit the Colorbox website (easy to find via a web search).

Member
Member
rl@rocksolidnet.com   29-06-2011, 15:48
#4

Thanks. I will give it a shot.

Member
Member
rl@rocksolidnet.com   29-06-2011, 18:07
#5

I see examples like below, but have no idea where I would put them on image.php of the homepage.:

Format: $('selector').colorbox({key:value, key:value, key:value}, callback);
Example: $('a#login').colorbox({transition:'fade', speed:500});
Example: $('a.gallery').colorbox();
Example: $('button').colorbox({href:"thankyou.html"});

And it can be called directly, without assignment to an element
Example: $.colorbox({href:"thankyou.html"});

ColorBox can accept a function in place of a static value:
$("a[rel='example']").colorbox({title: function(){
var url = $(this).attr('href');
return 'Open In New Window';
}});

Member
Member
rl@rocksolidnet.com   29-06-2011, 18:15
#6

I know it needs to be attached to an element, but am not sure what those are. I know it needs to be attached to an element. So in the case of image.php the main element is the image I suppose. From the default theme. I tried placing the colorbox values in a couple of places, but no luck.

            [b]

                    " title="">



            [/b]
Member
Member
wdiggles   29-06-2011, 18:41
#7

OP - Check this link

http://www.zenphoto.org/support/topic.php?id=9318

This will show how to open ColoBox from album.php thumbnails instead of image.php images

Hope it helps

Administrator
Administrator
acrylian   29-06-2011, 18:50
#8

What element to attach to and what setting depends on what theme your are using (Zenphoto themes do not require the same HTML setup so it can be quite different) and what you want to do. Zenpage theme's image.php has an example for the full image.

Member
Member
rl@rocksolidnet.com   29-06-2011, 21:21
#9

wdiggles Thanks. I used your code and made some edits. The only problem I have now is that I can not size my images larger which has nothing to do with this request.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.