According to Keith Christian:
>> I've compiled this release and while htdig itself is working fine, I
am
>> not able to print any output using the SCORE or PERCENT variables.
>> 
>> I'm trying to print out the values using the 'header.html' template
by
>> entering this:
>> 
>> <br>>
>> SCORE:$(SCORE)
>> <br>>
>> PERCENT:$(PERCENT)
>> 
>> but no values are ever printed, all I get is the SCORE: and PERCENT:
>> text followed by blanks.
>> 
>> Is this version able to display these values?

>As far as I know, there aren't any problems in this version as far as
>generating these variables.  The htsearch/Display.cc code in 3.2.0b4
>hasn't been changed since July of last year, and I don't see anything
>in the code that would prevent it from setting these two variables.
>I'd first try to rule out any other possible problems, e.g. that
htsearch
>is indeed loading the header.html file that you're editing, and not a
>different one, that there isn't some junk characters being inserted
into
>the $(var) constructs, that an HTML editor isn't SGML-encoding the
"$",
>and things of that sort.


Verified that I am modifying the correct "header.html" file, I added
some random text and it shows up in header.html.  Here is the modified
section
where I expect to see values for SCORE and PERCENT:

(header.html)
  <hr noshade size="1">
  <strong>Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES)
matches.
          More <img src="/htdig/star.gif" alt="*">'s indicate a better
match.
  </strong>
  SCORE: $&(SCORE)
  PERCENT: $(PERCENT)
  <hr noshade size="1">

(browser textual output)
  ht://Dig Search results for '(messages or message or messaged or
messaging)'
  Match: Format: Sort by:
  Refine search:
  Documents 1 - 1 of 1 matches. More *'s indicate a better match.
SCORE: PERCENT:

  Keith's PHP Test page Thu May 23 22:33:40 MDT 2002****
  Thu May 23 22:33:40 MDT 2002 Seconds=40



I haven't tried this with other ht://Dig builds.  Perhaps 
someone could try this out to see if they get the same 
results.

SCORE and PERCENT should work in any of the template HTML 
files, am I correct?


====Keith

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
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

Reply via email to