ZenphotoCMS Forum
Latest Albums - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Latest Albums (/thread-6111.html)



Latest Albums - zenflava - 2009-11-10

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


Latest Albums - acrylian - 2009-11-10

The nightly build (and therefore 1.2.7 will have) has the option to get the latest etc. (sub)albums of a specific album.


Latest Albums - zenflava - 2009-11-12

Thank you acrylian, I'll sync it up.
Instead of using printLatestAlbums() I use printLatestUpdatedAlbums() and it's working like a charm.


Latest Albums - acelik - 2010-07-22

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


Latest Albums - kagutsuchi - 2010-07-22

The function `printLatestUpdatedAlbums` provides a container which should be

`<div id="latestupdated_album">`

which simply encases an unordered list. You will need to style that list appropriately.


Latest Albums - acelik - 2010-09-03

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


Latest Albums - acrylian - 2010-09-03

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.