[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

article.php3 feature request



-----BEGIN PGP SIGNED MESSAGE-----


I'd like a second (optional) paramter to be coded into article.php3.

Basically when my modperl script parses a htsearch output, it will rewrite
the links to each article:

<a href="/article.php3?xxxxx">xxxx</a>

becomes:

<a href="/article.php3?xxxxx&words=first+second+third">xxxx</A>

The words variable is a space delimited list of words which the user did
an "and" or "or" logical search on.  Ie:  Joe does the following search:

(redhat or debian) and disk not floppy

would translate to:

words=redhat+debian+disk

Then the article.php3 script would parse the text of the article and wrap
it with some html.  Ie:

Redhat allows you to mount many kinds of disks.

becomes:

<font color="red">Redhat</font> allows you to mount many kinds of disks.

Note that the word 'disks' does not get the <font> treatment because
'disk' != 'disks'.

- -- 
Aaron Turner           | Either which way, one half dozen or another. 
aturner@pobox.com      | http://www.pobox.com/~aturner/

"There is no worse tyranny than to make a man pay for something he does
not want merely because you think it would be good for him." 
- -Benjamin Franklin

All emails from this account are PGP signed.  Lack of a signature is "bad".
PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80  59 6E 60 BF 45 1B 20 E8



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBN0ETQjM3jpXy1kJtAQE/aQQAsB+uo8YIA+ewq06JO5psOfty/IkRGDtc
PH7/cs2/U4zOMsvcI3oB3SZk9X6JbNSMWrV03/crqzcqXqtn4c0BxgwgR6/q1Tj7
Q57h2i4W+2+H2SbWR57/7VgzfrW5RXEN4jC0WXAuO1eXxrhTBfftnL8PJIocadIM
Nz02cfe1H6g=
=JCEX
-----END PGP SIGNATURE-----