View Full Version : Patch: add TITLE property to album IMG tagbrowseid3_artwork.html
Steve Baumgarten
2004-02-15, 11:08
Mozilla and related (Gecko-based) browsers, unlike IE, don't display popup
tooltips for the ALT property on IMG tags -- only for the TITLE property.
http://texturizer.net/firefox/faq.html#tooltips
Thus if you're browsing by artwork in Firefox, you don't get a tooltip
containing the album name as you hover over each image.
The patch is simple: just add
title="{&album}"
next to the existing
alt="{&album}"
in browseid3_artwork.html. (This seemed too trivial to supply an actual
patch for, though I could if you want.)
I really love "Browse By Artwork", but I have a request, and perhaps I'll
look into helping to implement it: I think it'd be more useful to have the
artwork sorted by artist rather than by album title (or better still, make
it an option), and perhaps also have the artist show in the "tooltips".
The reason? I can never remember album names; also, having things sort by
artist means you get all of an artist's albums sorted together.
What do people think? Worth doing?
SBB
Quoting Steve Baumgarten <sbb (AT) panix (DOT) com>:
> Mozilla and related (Gecko-based) browsers, unlike IE, don't display popup
> tooltips for the ALT property on IMG tags -- only for the TITLE property.
>
> http://texturizer.net/firefox/faq.html#tooltips
>
> Thus if you're browsing by artwork in Firefox, you don't get a tooltip
> containing the album name as you hover over each image.
>
> The patch is simple: just add
>
> title="{&album}"
>
> next to the existing
>
> alt="{&album}"
Thanks. I can add that for ya.
> in browseid3_artwork.html. (This seemed too trivial to supply an actual
> patch for, though I could if you want.)
>
> I really love "Browse By Artwork", but I have a request, and perhaps I'll
> look into helping to implement it: I think it'd be more useful to have the
> artwork sorted by artist rather than by album title (or better still, make
> it an option), and perhaps also have the artist show in the "tooltips".
> The reason? I can never remember album names; also, having things sort by
> artist means you get all of an artist's albums sorted together.
>
> What do people think? Worth doing?
If you can supply a patch, go for it. I would like to have done this too, but
the capability of the server to do such a thing is not trivial. In order to get
the feaure in quickly, and with as little risk of performance problems, I
leveraged the existing browse by albums routines. Currently those routines have
no knowledge of artist without doing an iterative search.
If you need any assistance, feel free to ask away :)
cheers,
kdf
Steve Baumgarten
2004-02-15, 13:32
> Thanks. I can add that for ya.
Thanks for that. But I just realized there may be more Mozilla-related
problems -- for instance, I was wondering why (with the Feb 15 nightly
build) the "Now Playing" screen no longer showed the full playlist, just
the currently playing track. (At least with the default skin, which is
the one I always use.)
Well, it turns out that there's no problem if I use Internet Explorer, but
if I use Firefox all I get is the dark gray "Now Playing" rectangle at the
top of the right-hand side of the screen, but no sign of the playlist.
Haven't looked into this yet, but yuck.
For the moment I'll keep IE running just for the SlimServer...
SBB
Quoting Steve Baumgarten <sbb (AT) panix (DOT) com>:
> > Thanks. I can add that for ya.
>
> Thanks for that. But I just realized there may be more Mozilla-related
> problems -- for instance, I was wondering why (with the Feb 15 nightly
> build) the "Now Playing" screen no longer showed the full playlist, just
> the currently playing track. (At least with the default skin, which is
> the one I always use.)
I think Dean is experimenting with a way to refresh at the anchor for the
current song. I dont use the Standard skin myself, but I'll see if I find
anything. I mostly deal with Fishbone skin, and have recently ventured beyond
that to add the browse by artwork to Standard as well as Fishbone skins.
-kdf
Steve Baumgarten
2004-02-15, 14:32
> Well, it turns out that there's no problem if I use Internet Explorer,
> but if I use Firefox all I get is the dark gray "Now Playing" rectangle
> at the top of the right-hand side of the screen, but no sign of the
> playlist.
Hmm, this may be due to a cache (or cookie?) issue -- I cleared the cache
and deleted the cookie for the Slimserver and on the first refresh I got
my playlist. I then did another ctrl-R, however, and I got a blank
playlist frame:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"><html><head><title></title></head><body></body></html>
This continues through several more ctrl-R's. At some point it (randomly)
works.
I'm running with the HTML cache disabled (in server settings).
Weird.
Anyone else see anything like this?
SBB
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.