[geeklog-devel] Re: Fwd: Search Code
Marc Von Ahn
mvonahn at techtracker.com
Thu Jan 16 14:01:37 EST 2003
Works for me
On Thursday, January 16, 2003, at 10:55 AM, Tony Bibbs wrote:
> Anybody object to my removing the maxSearchResults option and let that
> be driven by a drop-down of some sort on the search page itself? I
> don't see a need to have a per-user setting. If they want to tweak
> it, do so from the advanced search, IMHO.
>
> --Tony
>
> Marc Von Ahn wrote:
>> 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.
>>>
>>>
>>>
>>>
>>> here are new/modified theme files for search ( I believe that the
>>> search stuff is identical in all the themes)
>>>
>>>
>>>
>>> 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
>
>
> --
> +-------------------
> +--------------------------------------------------+
> |Tony Bibbs |[R]egardless of what you may think of our penal
> |
> |tony at tonybibbs.com |system, the fact is that every man in jail is one
> |
> | |less potential fisherman to clutter up your
> |
> | |favorite pool or pond. --Ed Zern
> |
> +-------------------
> +--------------------------------------------------+
>
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
More information about the geeklog-devel
mailing list