I threw this together to satisfy my own curiousity. (Thanks to zzed for a tip that helped me do this).
It's not really a finished hack. It's more of a rough job that lets me see what I want to see. As the table grows, I will manually drop older information as needed.
Run this query:
SQL-query : [Edit] [Create PHP Code]
CREATE TABLE `Google` (
`googleid` TINYINT NOT NULL AUTO_INCREMENT,
`url` VARCHAR( 255 ) NOT NULL ,
PRIMARY KEY ( `googleid` )
);
In global.php Find:
Code:
$header='';
$footer='';
Add After :
Code:
if(strstr($url, "google")) {
$DB_site->query("INSERT INTO Google VALUES (null, '$url')");
}
OK. Now for the Web Templates part:
Create a new query:
Query name: _google
Query: Select url from Google;
Description: Figure out what people are searching for on Google
No result Text: none
Table Row:<li><a href="??url??">??url??</a></li>
Create a new Web Template:
Template name: Google
Page Count: 0
(You will need to tweak this to your taste. I kept mine bare bones and allow anyone who knows about it to see it) Template:
[cansee]everybody[/cansee]
[options]templatequeryon[/options]
<ol>
$_google
</ol>
Demo:
http://www.eaforums.com/forums/show.php?pg=test
Have fun