Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Keep track of keywords searched!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 05-27-2004, 01:27 AM
 
arabayaservis.com arabayaservis.com is offline
 

Member
  
Join Date: Nov 2003
Posts: 10
 

Default

thanks for mod
Reply With Quote
  #12  
Old 05-31-2004, 02:31 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

hi,
thanks for this nifty mod, slight problem though, the Sort by Name function doesn't work. If you click sort by name or sort by count, it always sorts by the count. I used your latest edited php code, is the sort by name problem caused by something else?
Reply With Quote
  #13  
Old 06-06-2004, 06:53 AM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Will this work with 3.4.12?
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #14  
Old 06-06-2004, 06:57 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

It should work with any version.
All it does is grab the search query and saves it to the DB tables you created
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #15  
Old 06-06-2004, 07:09 AM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

I'm having the same problem as maki - it's re-loading the admin home page when I click on it. How can I get it to work properly? Please help!
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #16  
Old 06-06-2004, 07:23 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Ok, for those of you having the problem being directed to the home.php page with the 3.4.x branch, do this...

Open the stats_keywords.php file and replace:
Code:
require "./auth.php"; require $xcart_dir."/include/categories.php";

With...

Code:
require "../smarty.php"; require "../config.php"; @include "./https.php"; require "./auth.php"; require "../include/categories.php";

I just tried it on a 3.4.x and it works!

HTH
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #17  
Old 06-06-2004, 07:29 AM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Sort by name and sort by count both sort by count... might want to fix that
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #18  
Old 06-06-2004, 12:32 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Quote:
Originally Posted by OshkoshJon
Sort by name and sort by count both sort by count... might want to fix that

Here is a fix...

Find:
Code:
$sql_q = mysql_query("select search_text, search_count from search_queries_sorted order by search_count DESC");

And replace it with:
Code:
$sql_q = mysql_query("select search_text, search_count from search_queries_sorted order by " . $HTTP_POST_VARS['sortorder'] . " " . $HTTP_POST_VARS['ascdsc']);

The original post has been update with this fix
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #19  
Old 06-06-2004, 12:34 PM
  OshkoshJon's Avatar 
OshkoshJon OshkoshJon is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 135
 

Default

Thank you much!

Got an idea if you don't mind - the most frequent search is actually blank. A neat idea might be to automatically delete "blank" searches.
__________________
x-cart v4.0.17 - linux/apache
Reply With Quote
  #20  
Old 06-06-2004, 12:46 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Quote:
Originally Posted by OshkoshJon
Thank you much!

Got an idea if you don't mind - the most frequent search is actually blank. A neat idea might be to automatically delete "blank" searches.

Yes, that would be nice but it is more then I know how to do.

Maybe one of the pros here might shed some light how to do that?
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


All times are GMT -8. The time now is 12:27 AM.

   

 
X-Cart forums © 2001-2020