[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gallery-devel
Subject:    Re: [Gallery-devel] Default thumbnail image?
From:       "Bharat Mediratta" <bharat () menalto ! com>
Date:       2002-12-29 20:43:23
[Download RAW message or body]


From: "Martin Aronsson" <tabac@x42.com>
...
> I dislike the "No highlight!" text that is displayed for empty albums.
> Instead, I would like to have a default highlight/thumbnail image for
> empty albums.  Or at least change the text "No highlight!" to something
> like "Empty album", for example.
> Is this possible to do? If so, could anyone give me a hint where to begin?
> At the moment I am using Gallery 1.3.1, but I will probably upgrade to
> 1.3.2 soon.


Hmm.  Well one tricky thing is that it's possible to have no
highlight for a non-empty album (like in the case where your album
contains only movies).

Changing it to show an image is pretty easy.  Look through classes/Album.php
and classes/AlbumItem.php for the string "No highlight".  It'll
usually be in a block like this:

   return "<span class=title>No highlight!</span>";

Just change that to return an image:

   return "<img hreg=http://server/my_image.gif>";

and it'll return your image whenever there's no highlight available.

-Bharat



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic