Jump to content
Sign in to follow this  
eastnet

[Contribution] Keyword Show with Admin v1.0

Recommended Posts

The Keyword Show with Admin v1.0 contribution shows searches to your web site from visitors including yourself. It shows the IP address of the visitor, the time of the visit, the visited URL as well as the keywords used for finding your web site. At the moment the search engines Google, Google Germany, Google France, Google Japan, Other Google search engines, Yahoo, Altavista and Other search engines are differentiated in the script.

 

By registering your own IP address in the configuration you can chose not to show your own searches. By switching off visitors' searches to your site you can chose to show only your own searches for testing purposes etc.

 

The Keyword Show contribution assumes that your server has what is called the Extended Combined Log File Format.

Share this post


Link to post
Share on other sites

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 78

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 112

 

Keywords, search from Google

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 117

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 150

 

Keywords, search from Google Germany

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 155

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 188

 

Keywords, search from Google France

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 192

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 227

 

Keywords, search from Google Japan

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 231

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 267

 

Keywords, search from Other Googles

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 271

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 305

 

Keywords, search from Yahoo

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 309

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 342

 

Keywords, search from Altavista

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 346

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 379

 

Keywords, search from Other search engines

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxx.com/httpdocs/store/admin/keyword_show.php on line 384

Share this post


Link to post
Share on other sites

got a lot of errors

 

how to fix it?

 

thanks

sean

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 78

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 112

 

Keywords, search from Google

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 117

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 150

 

Keywords, search from Google Germany

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 155

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 188

 

Keywords, search from Google France

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 192

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 227

 

Keywords, search from Google Japan

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 231

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 267

 

Keywords, search from Other Googles

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 271

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 305

 

Keywords, search from Yahoo

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 309

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 342

 

Keywords, search from Altavista

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 346

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 379

 

Keywords, search from Other search engines

 

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxx.com/httpdocs/store/admin/keyword_show.php on line 384

Share this post


Link to post
Share on other sites
The Keyword Show contribution assumes that your server has what is called the Extended Combined Log File Format.

 

And what is this and how do I know if my server has it?


[no external urls in signatures please, kthanks]

Share this post


Link to post
Share on other sites

Sean,

 

Check that the path to your log file is correct, including the name of the log file, in my case the logfile is access-log. And check that it is not a compressed file.

Share this post


Link to post
Share on other sites

loxly,

 

I understand that the Combined log file is the most commonly used one so most likely you can use the log file you have on your server.

 

You can open your log file with an editor and if any line of the file looks something like this it is a Combined log file (on one line):

 

127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"

 

Here is a line from my own log file with a search from Google (again on one line):

 

203.88.131.238 - - [16/Jun/2003:04:02:17 -0400] "GET /products_new.php HTTP/1.0" 200 26682 "http://www.google.com/search?hl=en&ie=ISO-8859-1&q=fm+receiver&btnG=Google+Search" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"

 

or with a visit from Googlebot:

 

64.68.82.5 - - [16/Jun/2003:09:00:58 -0400] "GET /robots.txt HTTP/1.0" 200 193 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"

 

 

There is more to read about this at:

 

http://httpd.apache.org/docs/logs.html#combined

Share this post


Link to post
Share on other sites

I get the same errors:

Warning: fgets(): supplied argument is not a valid stream resource in /home/httpd/vhosts/xxxx.com/httpdocs/store/admin/keyword_show.php on line 78  

 

Warning: fclose():

 

this my log but I dont know if its compressed?

/var/log/www/tep/page_parse_time.log

 

Cheers Lee

Share this post


Link to post
Share on other sites

Lee,

 

If you can open the log file with your editor and read it so it is understandable it should not be compressed.

 

Also, please check again that your path is correct. You could also

try to set the permission on the log file as well as it's folder to 777.

 

Regards

Share this post


Link to post
Share on other sites

Lee,

 

Sorry I did not notice first but this is not the log file you should use.

 

The log file to be used here is normally in a folder on the same level

as your www root directory and should have a name like access-log

or similar. It is part of your server setup, not part of osCommerce.

 

Regards

Share this post


Link to post
Share on other sites

Thanks eastnet,

 

Looks like mine is compressed in a .gz file. thanks.

Share this post


Link to post
Share on other sites

Lee,

 

OK, I have seen such log files as well. Should be possible to modify the

script to read also compressed files, let's see when I have some time I

will do it, or if someone can help to do it before me....

 

If you like you can decompress your log and put it back and then read

it from Keyword Show so you can see how it works, at least as a temporary solution.

 

Regards

Share this post


Link to post
Share on other sites

Hi,

 

Can the visitors email address be captured aswell?

 

If not does anyone know of a contribution that can do this

 

Email address

Time and date

Last URL

 

 

Thanks in advance


Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Share this post


Link to post
Share on other sites

Hi, I've installed this contributions, and i get the following errors on keyword search....

 

why i'm i getting these errrors??

 

Warning: gzgets(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 82



Warning: gzclose(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 116

 

Keywords, search from Google 



Warning: gzgets(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 121



Warning: gzclose(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 154

 

Keywords, search from Google Germany 



Warning: gzgets(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 159



Warning: gzclose(): supplied argument is not a valid stream resource in /home/rcujazcz/public_html/test/admin/keyword_show.php on line 192

Share this post


Link to post
Share on other sites

Well, I was getting the same errors as usmanaa has said, but then I went to forums.cpanel.net and found that the path to raw log files is /usr/local/apache/domlogs/

 

I put that in *Keyword Show (absolute path to your logfile)* in the admin side of osCommerce.

 

Now the error warnings are not coming, but still, there are no log reports.

 

It is plainly visible that I have not put in the raw access log file name ...but my telnet/ssh/cpanel file manager do not show the clickable path to /usr/local/apache/domlogs/ .. I wonder what file name to put in

 

Pls. help asap

Share this post


Link to post
Share on other sites

ok .. got it :)

 

the complete path is:

 

/usr/local/apache/domlogs/<fulldomainname>

 

e.g.,

 

/usr/local/apache/domlogs/domain.com

 

found this needle from the haystack on forums.cpanel.net

 

HTH

Share this post


Link to post
Share on other sites

Can't obtain to avoid this error message too :

Warning: gzgets(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 82

 

Warning: gzclose(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 116

 

Keywords, search from Google

 

Warning: gzgets(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 121

 

Etc...

 

I indicates well the path of the log file : /var/log/httpd/access_log given by my server and controled but no matters what I do, I have this error...

 

I have verified all my install and sql but can't find error...

Share this post


Link to post
Share on other sites
Can't obtain to avoid this error message too :

Warning: gzgets(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 82

 

Warning: gzclose(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 116

 

Keywords, search from Google

 

Warning: gzgets(): supplied argument is not a valid stream resource in /home/virtual/site156/fst/var/www/html/admin/keyword_show.php on line 121

 

Etc...

 

I indicates well the path of the log file : /var/log/httpd/access_log given by my server and controled but no matters what I do, I have this error...

 

I have verified all my install and sql but can't find error...

 

 

You need to look at the path of your file. You need to go all the way to the file. HEre is mine:

 

/home/downdogs/logs/downdogsales.biz-Apr-2005.gz

Share this post


Link to post
Share on other sites

Any idea how to change the time out portion of this. It is timing out on me at 30 seconds and my files are quite large....

Share this post


Link to post
Share on other sites
You need to look at the path of your file. You need to go all the way to the file. HEre is mine:

 

/home/downdogs/logs/downdogsales.biz-Apr-2005.gz

 

I have no more errors but no informations :s

 

my access_log is staying to 0...

I think it's due to my server offering not advanced format but normal one...

Share this post


Link to post
Share on other sites

Hello

 

After a long time working on it, I finally get it working. I had the same problems as all of you. In my case was the problem, that the path to my log-file was not working right, even than I thought so.

 

To solve the problem I got with my ftp-programm (like smart FTP) to the log-file, with a right click on your mouse, you can copy the url from the log-file. Take exactly this path in the administration. After I changed this everything was working perfekt. (my path: ftp://web87615:xxxxx@login-1819.hoststar.ch/log/access_log)

 

I hope I could help some people and sorry about my english. Greetings from Switzerland.

 

Cyrill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×