[geeklog-devel] Fwd: Search Code (fwd)

Tony Bibbs tony at tonybibbs.com
Wed Jan 15 12:43:05 EST 2003


Thanks Marc, I'll work on getting those in.

-- 
------------------------------------------------------------------------|
Tony Bibbs         | "I guess you have to remember that those who don't |   
tony at tonybibbs.com | hunt or fish often see those of us who do as       |
                   | harmlessly strange and sort of amusing. When you   | 
                   | think about it, that might be a fair assessment."  | 
                   | --Unknown                                          |
------------------------------------------------------------------------|


---------- Forwarded message ----------
Date: Wed, 15 Jan 2003 09:37:17 -0800
From: Marc Von Ahn <mvonahn at techtracker.com>
To: Tony Bibbs <tony at tonybibbs.com>
Subject: Fwd: Search Code

here is the code

Begin forwarded message:

> From: Marc Von Ahn <mvonahn at techtracker.com>
> Date: Wed Jan 15, 2003  9:33:51  AM US/Pacific
> To: Dirk Haun <dirk at haun-online.de>
> Subject: Search Code
>
> Here are the files for search.  All 1.3.7sr1 modified.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: article.php
Type: application/text
Size: 10064 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search.php
Type: application/text
Size: 44406 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: english.php
Type: application/text
Size: 46419 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0002.bin>
-------------- next part --------------
>
>
> here are new/modified theme files for search ( I believe that the 
> search stuff is identical in all the themes)
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resultAuthDateHits.thtml
Type: application/text
Size: 122 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resultrowEnhanced.thtml
Type: application/text
Size: 501 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resultSummary.thtml
Type: application/text
Size: 64 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resultTitle.thtml
Type: application/text
Size: 62 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: searchform.thtml
Type: application/octet-stream
Size: 3254 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: searchresults.thtml
Type: application/text
Size: 238 bytes
Desc: 
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20030115/884b7b97/attachment-0007.bin>
-------------- next part --------------
>
>
> In addition the following needs to be added to config.php
> /*
>     
> +---------------------------------------------------------------------- 
> -----+
>    | Search variables                                                   
>         |
>     
> +---------------------------------------------------------------------- 
> -----+
>
> */
> $_CONF['expandedSearchResults']  =  true;
>     //  true = show title with summary
>     //  false = title date author hits on one line
> 	
> $_CONF['maxSearchResults']  =  0;
>     // 0: use users max stories per page
>     // 1: Show all
>     // any other number is the # of resuilts per page
> 	
> $_CONF['summaryLength']  =  250;
>     // maximum length for the summary text for search results should be
>
> and to style.css add
> .searchAuth { font-weight: normal; font-size: 80%; font-family:   
> sans-serif; text-align: left;  color:#557755;}
> .searchDate   { font-weight: normal; font-size: 80%; font-family:   
> sans-serif; text-align: right;  color:#557755;}
> .searchHits   { font-weight: normal; font-size: 80%; font-family:   
> sans-serif; text-align: right; color:#557755;}
> .highlight { background-color: yellow; text-decoration: none; }
>
> I am pretty sure I didn't forget anything.  It all works on my clean  
> 1.3.7 install.
>
>
> Marc


More information about the geeklog-devel mailing list