Latest Pictures

I have a website that I am going to integrate Zenphoto into. The address is www.joshtx.com. Basically I am going to do something similar to what is being already done. However the gallery is all manually done. What I would like to know how to do is on the homepage. I show four random images from the gallery. How can I do this with Zenphoto? Thanks,

Josh

Comments

  • Hi. There are several ways to do it.
    For example, if you want to display the latest pictures thumbnails, just paste that in your index.php theme file :
    `
    <?php
    $images = getImageStatistic(4, "latest");
    foreach ($images as $image) {
    echo "";
    $imageURL = getURL($image);
    echo '<a href="'.$imageURL.'" title=" ' .
    $image->getTitle() . '">imagegetCustomImage(null, 100, 100, null, null, null, null, true) .
    '" alt="' . $image->getTitle() . "\"/>";
    echo "";
    }?>
    `
  • acrylian Administrator, Developer
    On a non Zenphoto page you need this first to get Zenphoto functions: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
  • Cool. I'll give it a try. Thanks!

    Josh
Sign In or Register to comment.