Afraid I don't have time to do anything like that :(
For those who are interested, this is the global used;
show_search_stats =>
Code:
sub {
my $limit = shift;
my $table = $DB->table('SearchLog');
$table->select_options("ORDER BY HitCount", "LIMIT $limit");
my $sth = $table->select();
my $back;
if ($sth) {
while (my $hit = $sth->fetchrow_hashref) {
my $word = $hit->{Term};
my $hits = $hit->{HitCount};
my $results = $hit->{Results};
$back .= qq|Keyword: $word <BR>Hits: $hits <BR> Results: $results <BR><BR>|;
}
} else { return ''; }
return $back;
}
.. and call with something like;
Code:
<%if Username%><%show_search_stats('5')%><%endif%>
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!