Gossamer Forum
Quote Reply
SearchLogger Error
I've installed SearchLogger and putted this tag: <%Plugins::SearchLogger::Top_Keywords ('11', 'r')%>
on search_result.html but.........

Error: Unable to load module: Plugins::SearchLogger. Reason:
Error: No subroutine 'Plugins::SearchLogger::Top_Keywords' in 'Plugins/SearchLogger.pm',
Can't locate Plugins.pm in @INC (@INC contains: /home/site/public_html/cgi-bin/advertpro/library /home/site/public_html/cgi-bin/admin /usr/lib/perl5/5.8.1/i686-linux /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at GT::Template::_call_func line 783.


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] SearchLogger Error In reply to
Hi,
Which search logger are you using?
I released an "improved" search logger, to the forum, but didn't change the name. I've made a few tweaks to it, and improved global support (check out the search pages on http://debtcure.com, or http://postcards.com )
I'll be re-releasing this shortly with a new plugin name, to avoid confusion with Alex's.
I mention this, since I don't think Alex's version took passed parameters, but mine did.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] SearchLogger Error In reply to
Plugin: SearchLogger
Version: 1.1
Author: Alex Krohn
License: Freeware
Description: Logs all your search terms and provides an admin interface to view searched queries.

where I can download the new verion ???


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] SearchLogger Error In reply to
Hi,
That is my version, from this thread:
http://gossamer-threads.com/...search_engine#175351

What version of Links are you using?

I have this running on a load of different versions, including 2.2.0, but there might be a small change in the strings.

I'll try to repackage the .tar for 2.2.0 with the current running version. The problem is that I don't "install" my plugins, but copy the configs and layouts between sites, because they are pretty well tightly integrated into my template sets. Separating out all the code is what is slowing down release of the various updates.

If you look at the output of sites like http://starwarslinks.com/...n/LinkSQL/search.cgi the search page has a bunch of globals, as well as subroutines in the .pm.

Part of what I've been trying to do, is modularize, and create libraries of code/fragments I've made, and get them in a usable form, that is portable between versions, as well as our own plugin libraries. I've learned a lot of perl, and Links has changed greatly, since the first release of some of the plugins/scripts/globals, and modernizing them takes time.

We've made a lot of progress in that area, and while we missed most of the 2004 release dates, we should have some pretty awesome updates for early 2005, and beyond.

This year andy and I were getting ramped up, and trying to get a lot of stuff "out the door." He's been releasing new stuff, and I've been going over the old stuff, trying to slim it down, integrate it, clean it up, and add missing features, and fix subtle (and not so subtle) bugs.

I've set up about 15 or 20 new sites, each with "upgraded" versions of the plugins, and each new set up is that much closer to the goal :)

I have 3 new sites, http://dollhouseworkshops.com and http://posterlist.com are two, where I'm migrating the plugins, as plugins, and updating them to work with 2.2.0 as a "user" would do. One other site is not open yet, but it will have a different layout, and use features the other two sites don't.

I don't like releasing software, until it fully works, and that causes [me] some problems. This goes back to a comment made by one of my old computer science professors, about "having exhausted all the possibilities with this program, and will have to amuse yourself some other way." <G> That was only a phone number formatter <G> But at the time, it was pretty advanced for a Pascal program.

Anyone who has looked at the release versions of my code knows I don't like unhandled errors, exceptions, or ignored "special cases." :)

Anyway, I'll try to get this packaged up ASAP, and released with the MyFavLinks hopefully any day now.

The delays of MyFavLinks are the "special cases," which I'm finding more of, such as if one field is edited, but not the key fields... (has to do with 'custom' vs 'database' links).


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: Search Term Global In reply to
I've since upgraded my links and haven't used this global yet, but you can try this one that Andy for me made awhile back.

sub {
my (@output,$db,$sth);
$db = $DB->table('SearchLog');
$db->select_options ('ORDER BY HitCount DESC', 'LIMIT 5');
$sth = $db->select;
while (my $row = $sth->fetchrow_hashref) {
push @output, qq~<a href="$CFG->{db_cgi_url}/search.cgi?query=$row->{Term}">$row->{Term}</a>~;
}
return $#output > -1 ? join('-', @output) : 'No terms yet!';
}