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 ---- <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 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 <[EMAIL PROTECTED]> + + * 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 + <img src="/images/htdig/matchvalue$(NSTARS).jpg"> + <strong><a href="$&(URL)>$&(TITLE)</a> + </strong><br> + instead of using $(STARSRIGHT) and $(STARSLEFT) + This pretty much covers enhancement request '405787 Multiple star + images', and sort of covers enhancement 405687 Adding sizes to IMG tags + Thu Feb 22 16:43:18 2001 Geoff Hutchison <[EMAIL PROTECTED]> * htdoc/ChangeLog, htdig/RELEASE.html, README: Update to roll the diff -r -c htdig-3.2.0b3/htsearch/Display.cc htdig-3.2.0b3.fixed/htsearch/Display.cc *** htdig-3.2.0b3/htsearch/Display.cc Thu Feb 22 16:31:34 2001 --- htdig-3.2.0b3.fixed/htsearch/Display.cc Mon Mar 19 13:48:13 2001 *************** *** 962,968 **** score = 1; } int nStars = int(score * (maxStars - 1) + 0.5) + 1; ! if(debug) cerr << "generateStars: nStars " << nStars << " of " << maxStars <<endl; if (right) --- 962,968 ---- score = 1; } int nStars = int(score * (maxStars - 1) + 0.5) + 1; ! vars.Add("NSTARS", new String(form("%d", nStars))); if(debug) cerr << "generateStars: nStars " << nStars << " of " << maxStars <<endl; if (right) _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

