1.44 build 178

Please rate DAlbum at HotScripts.com
Please rate DAlbum at @ PHP-Resource.de
Rate DAlbum @ The PHP Resource Index
Script Rating:
Change tree icons   

By default a yellow folder image is displayed for folders and a blue film icon is used for album icons. This sample demonstrates how album administrator can change tree icon for any album or folder.

For example this demo uses a special icon for Media folder.

This sample adds two custom fields to every album:

  • Iconfile - name of the graphics file to be displayed as icon for a closed folder or an album
  • IconfileOpen - name of the graphics file for an open folder

These custom fields can be set in album properties or .albumdef.ini file. The sample assumes that icon files are stored in subdirectory custimg of the main DAlbum directory.


1. Edit you custom.php and add the following code. Modify icons location directory and other parameters as needed:


2. Reindex (you may also need to delete .private/.album_index.dat file). Now when you edit properties of any album now, set folder image icon. For example specify media.gif to display custimg/media.gif.