From htdig-lists@crome.org Tue Mar 20 08:49:38 2001 Date: Mon, 19 Mar 2001 17:00:29 -0800 From: Caleb Crome To: htdig-general@lists.sourceforge.net Subject: [htdig] PATCH: Allow number of stars as a variable in templates. [The following text is in the "iso-8859-1" character set] [Your display is set for the "US-ASCII" character set] [Some characters may be displayed incorrectly] This patch allows you to format your 'STARS' any way you want, not just a string of a few stars in a row. 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. Here are some images (which I'm sure are copyrighted...) to get you started... http://www.sfgate.com/templates/types/entertainment/graphics/littleman/1.0.g if http://www.sfgate.com/templates/types/entertainment/graphics/littleman/2.0.g if http://www.sfgate.com/templates/types/entertainment/graphics/littleman/3.0.g if http://www.sfgate.com/templates/types/entertainment/graphics/littleman/4.0.g if http://www.sfgate.com/templates/types/entertainment/graphics/littleman/5.0.g if Here's my littleguys.html which will show these little guys as a match quality: ---- common/littleguys.html ----
$&(TITLE)
$(EXCERPT)
$&(URL) $(MODIFIED), $(SIZE) bytes
---- end littleguys.html Notice the NSTARS variable, which is simply the number of stars that the particular match gets. And finally, here's the one line patch (with comments) P.S. Is the SourceForge Patch database for user-submitted patches only or for any old patch, like this one? -Caleb Crome diff -r -c htdig-3.2.0b3/ChangeLog htdig-3.2.0b3.fixed/ChangeLog *** htdig-3.2.0b3/ChangeLog Thu Feb 22 16:31:25 2001 --- htdig-3.2.0b3.fixed/ChangeLog Mon Mar 19 13:58:31 2001 *************** *** 1,3 **** --- 1,16 ---- + 2001-03-19 caleb crome + + * Added NSTARS variable to Display.cc. This allows a user + template to call a specific graphic that represents match value, + rather than calling a bunch of star images. So, short.html could + look like + + To unsubscribe, send a message to with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html