Hi
I'm using Alex Search Logger plugin. At the time being I have Global which display 10 most used search terms.
my $tags = shift;
my $table = $DB->table('SearchLog');
$table->select_options ('ORDER BY HitCount DESC', 'LIMIT 10');
my $sth = $table->select;
my @output;
while (my $link = $sth->fetchrow_hashref) {
push (@output, $link);
}
return { TopSearches_loop => \@output };
}
How to set Global to display 10 most used search terms today?
FYI, there is two tables, SearchLog with fields ID, Term, HitCount, Results, Last_Hit and TS and table SearchLogDaily with fields ID, Term, HitCount, Results, Last_Hit and Hit_Date.
Regards.
UnReal Network
I'm using Alex Search Logger plugin. At the time being I have Global which display 10 most used search terms.
Code:
sub { my $tags = shift;
my $table = $DB->table('SearchLog');
$table->select_options ('ORDER BY HitCount DESC', 'LIMIT 10');
my $sth = $table->select;
my @output;
while (my $link = $sth->fetchrow_hashref) {
push (@output, $link);
}
return { TopSearches_loop => \@output };
}
How to set Global to display 10 most used search terms today?
FYI, there is two tables, SearchLog with fields ID, Term, HitCount, Results, Last_Hit and TS and table SearchLogDaily with fields ID, Term, HitCount, Results, Last_Hit and Hit_Date.
Regards.
UnReal Network