how to change the code

Excuse me, I'd like to change the image address, because the gif thumb image is not dynamic. I find the thumb code is "<?php printAlbumThumbImage(getAnnotatedAlbumTitle()); ?>", but I don't know how to change that can like to the real image address, not the cache image address.

Anothing thing is how to create a new page, like "news", "links" etc...

Comments

  • acrylian Administrator, Developer
    Sorry, what do you mean with the gif thumb is not dynamic? An animated gif?? This is not the way Zenphoto works and it does not really make sense to use a full size image as a thumbnail actually. However you can do that, please look at the functions guide.

    Regarding pages please look at the theming tutorial or try the Zenpage plugin with the zenpage-default theme.
  • My ideas is the gif image is link to the "albums" folder, not link to the "cache". Because when i upload the images, they are all the animated gif files.

    For the size, just need to set the image display "width" and "high"

    So, Can you tell me how to change?
  • acrylian Administrator, Developer
    Zenphoto works internally with jpges only. Meaning all images resized by Zenphoto are actually jpegs. There are functions to get the fullimage.
    If you want an animated gif as an thumbnail you need to use the full image and to set the width/height via the `img`-tag (which of course is faked resizing). Please search the functions guide.
  • sorry, can you show me where is the functions guide?
  • I have't find any useful information in phpDocumentor v1.4.1, i just want to know how to change the "<?php printAlbumThumbImage(getAnnotatedAlbumTitle()); ?>", that can link to the image that I upload, not the thumb image.
  • acrylian Administrator, Developer
    You can use `$_zp_current_album->getAlbumThumb()` to get the image that is set as an album thumb via the backend (the default is randomly chosen from the album). But this of course will be the cached one as Zenphoto is designed to work like that. So you then have to extract the filename from that and get the full image directly from the album.
  • Sorry, I don't know the php code, can you just tell me to change which file and which line (if just change the themes are much better), can make the index page images link to the albums folder images. Thanks!
  • acrylian Administrator, Developer
    You need to change your theme's index.php and album.php file. Please read the theming tutorial to get familiar with Zenphoto themes. You surely will understand that it exceeds our resources to write your code for you.
Sign In or Register to comment.