ZenphotoCMS Forum
print album menu 1.3 released - 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: print album menu 1.3 released (/thread-1908.html)



print album menu 1.3 released - acrylian - 2007-12-07

New in 1.3:

  • requires zenphoto 1.1 or newer
  • nearly completly rewritten
  • supports now up to 4 subalbum levels
  • context sensitive fold out display as valid nested html lists

It's included in the latest svn (as usual in zp-core/plugins) found here:
http://www.zenphoto.org/trac/browser/trunk

Usage as before.




print album menu 1.3 released - kristjs - 2007-12-08

Hi, I'm not very familiar with PHP. So what code do i have to include to my theme file to show the menu?

Regards,
Sven




print album menu 1.3 released - sbillard - 2007-12-08

You have to add two things to your theme:

require_once('zp-core/plugins/print_album_menu.php')' somewhere up at the beginning

and

printAlbumMenu($option,$option2)' positioned where you want the menu. See the documentation in the program file for what to pass for the two parameters.




print album menu 1.3 released - jkwim - 2008-02-17

I trying to figure out why in my case the counts are not taking in to consideration the show flag. The print_album_menu.php seems correct.
`

function printAlbumMenu(

.

.

.

                    case "count":

                            // count images in the main albums                                $result2 = query("SELECT COUNT(id) FROM ". prefix('images') ." WHERE `show` = 1 AND albumid = $id[$number]");

                            $count = mysql_result($result2, 0);

                            if($count === "0") {

                                    $imagecount[$number] = "";

                            } else {

                                    $imagecount[$number] = " (".$count.")";                                }

`
But the menu on my page shows the full image count instead of visible count. I am not logged in as Admin. I am using garland theme.

`

  Album Menu

`
What could be going wrong here?




print album menu 1.3 released - acrylian - 2008-02-17

The garland theme as it can be downloaded contains an older version of the printalbummenu that is located in the theme's customfunctions.php. This one indeed is missing the "show=1" in the count part.

You need to include the newer one that is included in zenphoto instead. The newest version (1.3.1) that features full password support is included in the nightly build. See the top of the file for instructions.