I've managed to integrate zenphoto with a wordpress theme but would like to get the slideshow component working.... the procedure sais to include printSlideShowJS in the head but how do i do that with an integerated wordpress theme...have attempted a few things but its not working correctly..
blog.halinasplace.net.au/blog
Comments
You will have to call the Zenphoto template functions and the slideshow plugin functions. But since the "Zenphoto as a plugin" way described on our site does not work wiht current Wordpress versions you might be out of luck.
In short you have to figure it out yourself, sorry.
down the bottom would be appreciated.... also the comments have not worked since putting the js in the header of wp code
this is the code
`
<?php if (getNumImages() > 0){ ?>
<?php while (next_image(true)): ?>
<?php if (isImageVideo()) { ?>
/images/video-placeholder.jpg" title="<?php echo getBareImageTitle();?>">
<?php } else { ?>
" title="<?php echo getBareImageTitle();?>">
<?php } ?>
<?php printImageThumb(getAnnotatedImageTitle()); ?>
<?php if (isImageVideo()) { $downLoadText=gettext('Video'); } else { $downLoadText=gettext('Image'); } ?>
" title="<?php echo gettext('Detail Page: '); ?><?php echo getImageTitle(); ?>"><?php echo $downLoadText.gettext(' Details'); ?>
<?php if (getOption('download_link')) { ?>" title="<?php echo gettext('Download: '); ?> <?php echo getImageTitle(); ?>"><?php echo gettext('Download ').$downLoadText; ?><?php } ?>
<?php } else { ?>
<?php include("album_alt.php"); ?>
<?php } ?>
`
and this is the css
`
ul.thumbs,#image-stat ul {clear: both;margin: 0;padding: 0;}
ul.thumbs li,#image-stat li{float: left;padding: 0;margin: 5px 10px 5px 0;list-style: none;}
ul#no-gal-ul,#image-stat ul{margin:0 auto 20px auto;text-align:center;width:820px;}
ul.thumbs li.no-gal-li{}
a.thumb,#image-stat a {padding: 2px;display: block;border: 1px solid #4a4a4a;}
ul.thumbs li.selected a.thumb {background: #fff;}
a.thumb:focus,#image-stat a:focus {outline: none;}
a.thumb:hover,#image-stat a:hover {border: 1px solid #ccc;}
ul.thumbs img,#image-stat img {border: none;display: block;}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {border-color: #4a4a4a;
-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;}
div.pagination {clear: both;}
div.navigation div.top {margin-bottom: 12px;height: 11px;}
div.navigation div.bottom {padding-top:5px;}
div.navigation a.prev {}
div.navigation a.next {}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {display: block;float: left;margin-right: 2px;padding: 2px 7px 2px 7px;border: 1px solid;}
div.pagination a:hover {text-decoration: none;background-color: #000;border-color:#ccc;}
div.pagination span.current {font-weight: bold;background-color: #fff;border-color: #fff;color: #222;}
div.pagination span.ellipsis {border: none;padding: 5px 0 3px 2px;}
div.caption {position:relative;top:0;left:0;height:25px;width: 50px;}
div.caption-container {position:relative;height:25px;width: 50px;}
`
You'll need to make some adjustments in your layout and/or CSS to keep it from moving up and down.
`
<?php if (getNumImages() > 0){ ?>
<?php while (next_image(true)): ?>
<?php if (isImageVideo()) { ?>
/images/video-placeholder.jpg" title="<?php echo getBareImageTitle();?>">
<?php } else { ?>
" title="<?php echo getBareImageTitle();?>">
<?php } ?>
<?php printImageThumb(getAnnotatedImageTitle()); ?>
<?php if (isImageVideo()) { $downLoadText=gettext('Video'); } else { $downLoadText=gettext('Image'); } ?>
" title="<?php echo gettext('Detail Page: '); ?><?php echo getImageTitle(); ?>"><?php echo $downLoadText.gettext(' Details'); ?>
<?php if (getOption('download_link')) { ?>" title="<?php echo gettext('Download: '); ?> <?php echo getImageTitle(); ?>"><?php echo gettext('Download ').$downLoadText; ?><?php } ?>
<?php } else { ?>
<?php include("album_alt.php"); ?>
<?php } ?>
`
and this is the css
`
ul.thumbs,#image-stat ul {clear: both;margin: 0;padding: 0;}
ul.thumbs li,#image-stat li{float: left;padding: 0;margin: 5px 10px 5px 0;list-style: none;}
ul#no-gal-ul,#image-stat ul{margin:0 auto 20px auto;text-align:center;width:820px;}
ul.thumbs li.no-gal-li{}
a.thumb,#image-stat a {padding: 2px;display: block;border: 1px solid #4a4a4a;}
ul.thumbs li.selected a.thumb {background: #fff;}
a.thumb:focus,#image-stat a:focus {outline: none;}
a.thumb:hover,#image-stat a:hover {border: 1px solid #ccc;}
ul.thumbs img,#image-stat img {border: none;display: block;}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {border-color: #4a4a4a;
-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;}
div.pagination {clear: both;}
div.navigation div.top {margin-bottom: 12px;height: 11px;}
div.navigation div.bottom {padding-top:5px;}
div.navigation a.prev {}
div.navigation a.next {}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {display: block;float: left;margin-right: 2px;padding: 2px 7px 2px 7px;border: 1px solid;}
div.pagination a:hover {text-decoration: none;background-color: #000;border-color:#ccc;}
div.pagination span.current {font-weight: bold;background-color: #fff;border-color: #fff;color: #222;}
div.pagination span.ellipsis {border: none;padding: 5px 0 3px 2px;}
div.caption {position:relative;top:0;left:0;height:25px;width: 50px;}
div.caption-container {position:relative;height:25px;width: 50px;}
`
And yes, it will require some learning ;-)