Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6439
39458 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Oct 26, 2006, 01:06:57 AM »
Hi Toni,
I planned this feature for future versions but have time to short...
I think the query string can be parsed like in awstats to show only the keywords and/or search string (but I will check you example later if I have the time)
Bill Cosby is my Father
Posts: 4
28 credits Members referred : 0
« Reply #4 on: Nov 03, 2006, 05:49:08 PM »
hi olaf,
its me again
now i implement a (i think clean ) keyword-stats method and you can define what query-parameters you choose in one array
Code:
var $query_searches = array( 'p', 'q', 'query', 'keywords' );
the code builds regular-expression search-and-replace arrays to colorize the whole string, or display only keywords.
method-call is:
Code:
$...->stats_keywords();
screenshots:
there is one todo, to limit the keywords_string- and the keywords_singleword-toplist in the "stats_keywords()"-method. but i dont need this at the moment, because i want to see everything, but there is a TODO-comment at this place.
Just another rainy day
Posts: 1
6 credits Members referred : 0
« Reply #6 on: Jun 08, 2007, 02:33:19 PM »
Hi Olaf,
Don't know if you cane use this but i added a function to exclude ip-adresses from an array in the class.
function exclude_ip($arr) { foreach ($arr as $ip) { if ($ip == $_SERVER['REMOTE_ADDR']) { return false; } else { return true; } } }
function insert_new_visit($array = array( 0 => '' )) { if ($this->exclude_ip($array)) { ...............
Bye, Seraphim
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6439
39458 credits Members referred : 374
It's time to use PHP5!
« Reply #7 on: Jun 08, 2007, 02:56:50 PM »
hi, nice suggestion
I used some similar code outside the class to filter some IP addresses. (on the other site I'm asking me if this project is used by a lot of people since Google Analytics has much more information )