PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 04-20-2005, 11:49 PM   #1
jongag1
Green Mole
 
Join Date: Mar 2005
Posts: 4
No most searched terms, biggest results, most 0 results, last search queries, etc.

Hello all,

PhpDig is working perfectly, but when in the Admin panel when clicking on statistics and then on the most searched terms or biggest results or most 0 results or last search queries or response time by hour or on lastclicks gives no results at all.
Clicking on most keywords or on richest pages gives results.

We are using version 1.8.7.

In config.php is the following:
define('PHPDIG_LOGS',true); //write logs
define('LOG_CLICKS',true); //log clicks

Can somebody tell me how to get this working?

Kind regards,
Age de Jong
jongag1 is offline   Reply With Quote
Old 04-21-2005, 07:20 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Try doing a search and then look at the statistics. What do you see?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 04-21-2005, 12:05 PM   #3
jongag1
Green Mole
 
Join Date: Mar 2005
Posts: 4
The same as above...
Searching works perfect except for the above statistics.

Regards,
Age
jongag1 is offline   Reply With Quote
Old 04-21-2005, 02:50 PM   #4
boyd
Green Mole
 
Join Date: Apr 2005
Posts: 9
This happened to me when i did significant modifications as i had changed the search url i had to change the following in search_functions.php

if (PHPDIG_LOGS == true && !$browse && !$refine && $adlog_flag == 0) {

i took out the "!$refine &&"

this is the place where the logs are written so check the vars it wants and doesent want and see if that helps.

You should see if the logs are actually been written or if its the stats display problem.
boyd is offline   Reply With Quote
Old 04-22-2005, 07:14 AM   #5
jongag1
Green Mole
 
Join Date: Mar 2005
Posts: 4
The table phpdig_logs is empty, so I will take a look at the search_functions.php file.
Can't do it today, but will do it tomorrow.

Tnx,
Age
jongag1 is offline   Reply With Quote
Old 04-22-2005, 08:24 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Yes, boyd is correct. The relevant code is in the seach_function.php file:
Code:
if (PHPDIG_LOGS == true && !$browse && !$refine && $adlog_flag == 0) {
   if (is_array($final_result)) {
       phpdigAddLog ($id_connect,$option,$strings,$exclude,count($final_result),$search_time);
   }
   else {
       phpdigAddLog ($id_connect,$option,$strings,$exclude,0,$search_time);
   }
}
The $browse is a check to prevent multiple logs when a user goes to another page of search results or selects a different template. The $refine is a check to prevent multiple logs when a user goes to limit search results to a specific domain or path.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 04-22-2005, 10:43 AM   #7
jongag1
Green Mole
 
Join Date: Mar 2005
Posts: 4
I couldn't wait till tomorrow! So I did it at work.

It's working perfectly after cutting out "!$refine &&", tnx for your help!

Regards,
Age
jongag1 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting search results by URL at the search form level innerfire How-to Forum 3 08-01-2005 08:36 AM
Pulling search results into existing search system. satcom How-to Forum 2 05-03-2005 10:58 AM
Easy way to add most & last searched queries to web page? guinessec How-to Forum 0 12-01-2004 11:08 AM
Bold Search Terms phirschybar How-to Forum 6 11-21-2004 08:09 AM
Searchfeed results displayed with phpdig results Nosmada How-to Forum 1 01-04-2004 11:39 AM


All times are GMT -8. The time now is 08:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.