Layout: "Is this possible with ZenPhoto?" Beware - crappy 5 min illustration

I do not have, nor wish to have extensive CSS and PHP knowledge.

I would just like to know if ZenPhoto can be customized to look like this:

http://www.room203.net/image/canitbedone.jpg

Thanks.

Comments

  • absolutely.. but you will need knowledge of php and css to make it happen..
  • Definitely possible.
  • OK I got the image page to look like that, but is it possible to navigate to the first image of an album when the thumbnail for that album is clicked from the index?

    This is where I'm building it:

    http://pulchraphy.room203.net/gallery

    As you can see, when you click on a thumbnail, it goes to the album.php which I don't want to use.

    it will be integrated into a wordpress site later. the pictures are just test images and I still have to fine tune the widths and such.
  • I actually wrote a function for that because I needed it too. My PHP isn't all that great, but this works for me:

    `function getAlbumFirstImageURL() {

    global $_zp_current_album, $_zp_current_image;

    $firstimage = $_zp_current_album->getImage(0);

    if (in_context(ZP_IMAGE) && $_zp_current_image->getAlbumPage() > 1) {

    // Link to the page the current image belongs to.

    return rewrite_path("/" . urlencode($_zp_current_album->name) . "/page/" . $_zp_current_image->getAlbumPage(),

    "/index.php?album=" . urlencode($_zp_current_album->name) . "&page=" . $_zp_current_image->getAlbumPage());

    } else {

    return rewrite_path("/" . urlencode($_zp_current_album->name) . "/" . urlencode($firstimage->getFileName()),

    "/index.php?album=" . urlencode($_zp_current_album->name) . "&image=" . urlencode($firstimage->getFileName()));

    }

    }`

    Put this in your `template-functions.php` and use `<?=getAlbumFirstImageURL();?>` to access it.
Sign In or Register to comment.