#1 Multiple star images

closed-accepted
nobody
devel (5)
5
2001-03-22
2001-03-20
caleb crome
No

Here's a simple, one line patch that allows users to
use multiple star images, one for each number
of 'stars' or each quality of match.

You can create max_stars distinct images, which
look like anything you want them to. Can be a
rocket, progress bar, or even a little guy
clapping to show your the quality of the match.

Some images I used to test this patch are at:

http://www.sfgate.com/templates/types/entertainment/gra
phics/littleman/1.0.gif
http://www.sfgate.com/templates/types/entertainment/gra
phics/littleman/2.0.gif
http://www.sfgate.com/templates/types/entertainment/gra
phics/littleman/3.0.gif
http://www.sfgate.com/templates/types/entertainment/gra
phics/littleman/4.0.gif
http://www.sfgate.com/templates/types/entertainment/gra
phics/littleman/5.0.gif

Here's my littleguys.html which will show
these little guys as a match quality:

---- common/littleguys.html ----
<dl><dt><strong><a href="$&(URL)">$&(TITLE)
</a></strong><img
src="/images/htdig/guy$(NSTARS).gif">
</dt><dd>$(EXCERPT)<br>
<i><a href="$&(URL)">$&(URL)</a></i>
<font size="-1">$(MODIFIED), $(SIZE) bytes</font>
</dd></dl>
---- end littleguys.html

Discussion

    • labels: --> devel
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=21420

    I'm putting this into the 3.2 tree right now since it fixes
    one of the feature requests.