Designation of Audio Files

Greetings,

A more advanced coder than myself would probably find this a stupid question, but a solution would mean a lot to me.

I'm adding a bunch of photos and audio files to a ZenPhoto gallery, and I would rather have a thumbnail for the audio files instead of the placeholder image that Zen uses (like album art or something). For ease of searching, I will tag all audio files as well.

That said: is it possible for there to be some designation in the thumbnail pages that the file is an audio file? Some sort of routine that says "if extension is mp3, add an audio icon next to the title" or something? Where does Zen decide to use that placeholder thumbnail with the musical notes on it? Could I take advantage of that routine?

Comments

  • acrylian Administrator, Developer
    We currently have no option for that (sbillard did this so I don't know where that is checked) but you can do something on your theme. Put something like this within the next_image() loop for example:

    `
    $ext = strtolower(strrchr($_zp_current_image->filename, "."));
    if ($ext == ".mp3") {
    here print an special image that you store in your theme's folder for example.
    }
    `
    Also you can have special video thumbnails for multimedia items (video because audio came later):
    http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#19
  • The thumbnail used for multi-media files is something that the theme can provide. Just create an image called `images/multimediaDefalut.png`. Also, if there is an image file in the album with the same name (except for the extension) as the multi-media file, that image will be used for the thumbnail.
Sign In or Register to comment.