ZenphotoCMS Forum
printDynamicAlbumList function hack - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: printDynamicAlbumList function hack (/thread-2433.html)



printDynamicAlbumList function hack - BertSimons - 2008-03-14

was very easy to hack some code to show all the dynamic albums as a list on the index page.
I added a few lines to the print_album_menu.php (the one that also generates the subalbums):

`while($row = mysql_fetch_array($result)){

$dynamic[$number] =$row['dynamic'];//added this to the query

}

if($dynamic[$nr2]=='1'){

//enclosed the echo statements with this ([$nr] where needed)

}

`

my `