Oh, you want to get rid of the sorting by category. You have to edit search.cgi
The first foreach groups the links by category, the second inserts the linked title before the grouping.
Code:
# Build the list of link results.
if ($link_hits) {
my (%link_results, %displayed, $name);
foreach my $hit (@$link_hits) {
$hit = $linkdb->array_to_hash ($hit);
$link_results{$hit->{CategoryID}} .= &site_html_link ($hit, $dynamic);
}
foreach my $hit (@$link_hits) {
next if ($displayed{$hit->{CategoryID}}++);
$name = &get_category_name ($hit->{CategoryID});
$link_results .= "<p>" . &search_build_linked_title ($name) . "</p>";
$link_results .= $link_results{$hit->{CategoryID}};
}
To get rid of the titles, just get rid of the line:
$link_results .= "<p>" . &search_build_linked_title ($name) . "</p>";
The links are grouped in the first loop, then the groups are added together in the $link_results
variable with the linked_title inserted before the corresponding group.
To prevent grouping by category all together, you'd have to edit the routines to look something like:
Code:
# Build the list of link results.
if ($link_hits) {
my (%link_results, %displayed, $name);
foreach my $hit (@$link_hits) {
$hit = $linkdb->array_to_hash ($hit);
$link_results .= &site_html_link ($hit, $dynamic);
}
ALl this does is iterate through the returned hits, turn them into "links" then add them to
the $link_results in the order returned by the search routines (score first)
This is untested, but should work -- with at most a minor tweak.
------------------
POSTCARDS.COM -- Everything Postcards on the Internet
www.postcards.com LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/