Pages (2):    1 2
Administrator
Administrator
acrylian   2011-09-01, 09:15
#21
The forum does not filter code if you correctly put it into backticks (that are the accents like in "è") or the html `[code][/code]` element. See:

`name="<?php echo $_zp_current_image->getFileName(); ?>"`

`name="<?php echo $_zp_current_image->getFileName(); ?>"`
Member
Member
vincent3569   2011-09-01, 13:24
#22
that's what I have done before...

another try withy backtick : find the following code in album.php :

`
<?php if (isImageVideo()) { ?>
<a class="thumb" href="<?php echo $_zp_themeroot; ?>/images/video-placeholder.jpg" title="<?php echo getBareImageTitle(); ?>">
<?php } else { ?>
<a class="thumb" href="<?php echo getDefaultSizedImage(); ?>" title="<?php echo getBareImageTitle(); ?>">
<?php } ?>
`
and replace by this one :

`
<?php if (isImageVideo()) { ?>
<a name="<?php echo $_zp_current_image->getFileName(); ?>" class="thumb" href="<?php echo $_zp_themeroot; ?>/images/video-placeholder.jpg" title="<?php echo getBareImageTitle(); ?>">
<?php } else { ?>
<a name="<?php echo $_zp_current_image->getFileName(); ?>" class="thumb" href="<?php echo getDefaultSizedImage(); ?>" title="<?php echo getBareImageTitle(); ?>">
<?php } ?>
`
It will be included in the next release of zpardoise (it will be published after the release 1.4.2 of zenphoto)

@gjr (if you read it) :
maybe, you could include this hack in zp_galleriffic and zp_masonery which use galleriffic script
Administrator
Administrator
acrylian   2011-09-01, 13:42
#23
May be that the forum software sometimes acts weird...

To your video placeholder: We have default images you should really use via the thumbnail functions in case you have videothumbs instead of `$_zp_themeroot; ?>/images/video-placeholder.jpg`. You can even have custom ones within your theme if you don't like ours. Just place images with the exact names within the theme's /images folder.
Member
Member
gjr   2011-09-01, 13:51
#24
@vincent3569 - I did test this as I did not think it would work with the history plugin, but it does. Nice addition, I will add it to my next release of zpGalleriffic. You can see it in action on the zpGalleriffic demo.

btw - zpmasonry does not use galleriffic.
Member
Member
make-zp   2012-02-26, 16:59
#25
Hi Vincent,
thank you for all your work!

Pretty new to ZP, I'd like to dare suggesting a code change for you next version. It took me some hacking to figure the theme is not checking all Colorbox settings.
When option "sizedimage" is set, your theme still loaded "fullimage".

So I went in the code and added in album.php ~line 54+
`


<?php if (getOption('use_colorbox_album')) {

switch(getOption('slideshow_colorbox_imagetype')) {

case 'fullimage':

$imagelink = html_encode($_zp_current_image->getFullImage());

break;

case 'sizedimage':

$imagelink = html_encode($_zp_current_image->getCustomImage(getOption("slideshow_width"), NULL, NULL, NULL, NULL, NULL, NULL));

break;

}

}

?>

<a>class="colorbox"<?php } ?> href="<?php echo $imagelink; ?>" title="<?php echo getBareImageTitle(); ?>"></a>

`
This will generate whatever sized image in the cache and Colorbox will use it.

Cheers
Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.