Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: removing category names from search results

Quote Reply
Re: removing category names from search results In reply to
Pugdog,

Just tried this with the numbered link mod and the result was that on every page the links were 1 to 10 and not 1 to 10, 11 to 20, 21 to 30 etc.

Here is the code I am using with both mods.


my $links_count=0;
# 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);
$hit->{'links_count'} = ++$links_count;
$link_results .= &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}};
# }
}



What's going wrong? It worked fine before I removed the category names from appearing with the search results.

JeffB.

Subject Author Views Date
Thread removing category names from search results Robert_B 22676 Apr 16, 2000, 12:42 PM
Post Re: removing category names from search results
pugdog 22427 Apr 16, 2000, 7:56 PM
Post Re: removing category names from search results
Robert_B 22387 Apr 17, 2000, 3:09 AM
Thread Re: removing category names from search results
pugdog 22382 Apr 17, 2000, 8:18 AM
Thread Re: removing category names from search results
jwm 22349 Jul 12, 2000, 5:40 PM
Thread Re: removing category names from search results
pugdog 22391 Jul 12, 2000, 7:39 PM
Post Re: removing category names from search results
jwm 22338 Jul 13, 2000, 9:45 AM
Thread Re: removing category names from search results
jeffb 22327 Jul 25, 2000, 8:26 AM
Thread Re: removing category names from search results
pugdog 22326 Jul 25, 2000, 10:12 AM
Thread Re: removing category names from search results
jeffb 22325 Jul 25, 2000, 12:52 PM
Thread Re: removing category names from search results
Stealth 22319 Jul 25, 2000, 1:09 PM
Thread Re: removing category names from search results
jeffb 22320 Jul 25, 2000, 3:14 PM
Thread Re: removing category names from search results
Stealth 22291 Jul 25, 2000, 3:48 PM
Thread Re: removing category names from search results
jeffb 22291 Jul 25, 2000, 4:11 PM
Thread Re: removing category names from search results
pugdog 22375 Jul 25, 2000, 6:29 PM
Thread Re: removing category names from search results
jeffb 22308 Jul 26, 2000, 1:32 AM
Thread Re: removing category names from search results
pugdog 22293 Jul 26, 2000, 9:45 PM
Thread Re: [pugdog] removing category names from search results
rgbworld 21967 Apr 30, 2006, 5:54 PM
Post Re: [rgbworld] removing category names from search results
phuketkit 21782 Jul 18, 2006, 3:15 AM