This function gets the top level parent of an album:
http://www.zenphoto.org/documentation/functions/_functions.php.html#functiongetUrAlbum
You should review the function definition/documentation for that function. It returns an album object, not a string. Try $album = getUrAlbum($_zp_current_album); echo $album->name;
Generally, it is a good idea to read the documentation on functions you intend to use. Don't expect the developers to remember details while reading posts.