Highslide Variation help

Well, I've got the Highslide set up, it's a fairly nice and straightforward theme. However, I want to alter it to reflect the Highslide JS team's latest options, specifically the option of no border, floating caption (view an example here: Third picture on the right, top row under "Highslide JS Core", the water droplet image).

I've successfully put in the hs. tags in the album.php page. The javascript section now reads accordingly:

<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?></title>
<link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<?php zenJavascript(); ?>
<script type="text/javascript" src="<?= $_zp_themeroot ?>/highslide/highslide.js"></script>
<script type="text/javascript" src="<?= $_zp_themeroot ?>/highslide/highslide.config.js"></script>
<script type="text/javascript">
hs.graphicsDir = '<?= $_zp_themeroot ?>/highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages();
hs.dimmingOpacity = 100;
hs.align = 'center';
hs.captionEval = 'this.a.title';
hs.captionOverlay.position = 'below';

// Add the slideshow controller
hs.addSlideshow({
slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
className: 'large-dark',
opacity: '0.6',
position: 'bottom center',
offsetX: '0',
offsetY: '-15',
hideOnMouseOut: true
}
});

// gallery config object
var config1 = {
slideshowGroup: 'group1',
transitions: ['expand', 'crossfade']
};

}
</script>

Now, what this so far does is most of what I wanted. The image is rendered without a border but with a surrounding semi-opaque drop shadow, it animates and expands from the thumbnail's position out to center-page, the caption is pulled from the image's title attribute, and the caption is positioned underneath the picture.

However, the bottom section where the caption is located does not render as white bold text against a transparent background. Instead, it shows up as a square cornered, white-background space with the caption in thin dark standard text on it.

I've played with the code as far as I can understand it but am at my limit of expertise. I know to alter the highslide.js file to do things like turn off credits, but this particular aspect of the design I can't seem to figure out where it's activated/defined. The Highslide JS website only gives me assistance so far as to let me use the editor to configure all this, but that's what got me this far, and no further.

Unfortunately this is being done on my own computer using MAMP as a test server, so I don't have a website link to offer. I'm trying to get this worked out before I put it up live on a friend's website to run his photo gallery. I love ZP's simplicity and ability to browser-upload files (unlike YooGallery and Joomla, which are just overkill for what my friend needs, plus require you to FTP upload your pictures to a directory first and use call-tags in an article, all more than my friend can handle).

Any help would be appreciated. Thanks!

Comments

  • acrylian Administrator, Developer
    You probably should ask that on the highslide forum: http://highslide.com/forum/ (beware of the Highslide license, too!)
  • Except they've already commented and said that this is not an issue with Highslide's code, their code is intact and already explained and functional on a regular HTML site, this is specifically an issue in trying to incorporate its function into a Zenphoto theme. And since the site isn't for commercial purposes, merely sharing photos, the license issue shouldn't be a problem.
  • Well, certainly we do not support highslide on this forum, so I guess unless some user has got it working you are on your own.
  • Which was kind of why I was just asking for general assistance from anyone who frequents the forum. :)
  • I guess you could hack this to work, though I'm not sure why you're getting a semi-opaque border with it...

    <script type="text/javascript">
    hs.graphicsDir = '<?= $_zp_themeroot ?>/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    window.onload = function() {
    hs.preloadImages();
    hs.dimmingOpacity = 100;
    hs.align = 'center';
    hs.captionEval = 'this.a.title';
    hs.captionOverlay.position = 'below';

    ..snip..

    </script>

    hs.outlineType = 'rounded-white'; tells the highslide where to locate the graphics. So that says you should be getting the rounded white graphics. If you look at the file strucutre for that section you'll see you would just change that to change your setting for which outlines you wanted.

    If the highslide team says their codes if functioning properly you could just copy one of the graphics folders, load up your favorite image editor, wipe each image to transparent while retaining their image sizes (so not to skew things) and then resave them.

    Just a hack'n'slash way to get it done.
  • Thanks, appreciate the suggestion, I'll give it a shot.
Sign In or Register to comment.