Latest Albums

Hey all,

I need help. I'm building a custom zenphoto theme based on light default theme.

This theme consist of multiple sub albums, fox example index.php will render Album Z and inside this album contains about five albums.

Everything works great but i'm running into problem when i add this code to index.php

printLatestAlbums(10, false, false, false, false, "hitcounter", 132, 186, false);

printLatestAlbums function render both parents and subalbums.

is there anyway just to show the latest albums without rendering the parent?

screenshot

http://bit.ly/1msVoj

Thank you

Comments

  • acrylian Administrator, Developer
    The nightly build (and therefore 1.2.7 will have) has the option to get the latest etc. (sub)albums of a specific album.
  • Thank you acrylian, I'll sync it up.
    Instead of using printLatestAlbums() I use printLatestUpdatedAlbums() and it's working like a charm.
  • acelik Member
    hello guys,

    this function is what I'm looking for but when I use it, the thumbnails of the albums like this:

    Album1
    Album2
    Album3
    .
    .

    but I want to show them as :

    Album1 Album2 Album3 ...

    Normally the css file is ok I think. I'm using flickrish template and trying the codes below:

    <h1>» Recent Albums</h1>
    <div class="siteInfo">
    <div id="recentPhotos">
    <?php printLatestUpdatedAlbums(10)?>
    </div>
    </div>

    any idea?

    Thanks in advance
  • The function `printLatestUpdatedAlbums` provides a container which should be

    `
    `

    which simply encases an unordered list. You will need to style that list appropriately.
  • hey there,

    is it simple way to show the latest albums's only title and picture number on homepage? not album page.

    I try `<?php echo getGalleryTitle();?>` and `<?php printAlbumTitle(3)?>` but they show nothing
  • acrylian Administrator, Developer
    You should really review the functions documentation... `printAlbumTitle()` does not allow a parameter like that. And it does not work like that.. Also you should probably read the theming tutorial to learn theme basics first.

    The image_album_statisticcs plugin has a function for latest albums but it of course shows the thumbnails of those as well. You will have to make a custom function to omit the thumbs.
Sign In or Register to comment.