Weather-Watch.com
September 02, 2010, 05:26:12 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Members: 8,509  Posts: 362,030  Topics: 40,113
Please welcome lawrencerebeiro, our newest member.

Latest versions: WD - 10.37P  WDL - 6.05  MML - 1.03
 News:
Check out the new FAQs (Frequently Asked Questions) board for a growing list of hints, tips and diagnostic suggestions.
  Advanced Search
   Home   Bug Tracker Photo Gallery Wiki Chat Calendar Search Login Register Help  
Pages: [1] 2 3 ... 53
  Print  |  « previous  |  next »  |  Go Down  
Author Topic: Who's Online PHP Script 2.0 for your template site  (Read 73264 times)
0 Members and 2 Guests are viewing this topic.
MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,997
Local Time: Thursday 11:26



WWW
« on: January 02, 2009, 10:42:44 PM »

Who's Online PHP Script 2.0 for your template site

This advanced PHP script is designed to be a webmaster tool for your PHP template web site.
Includes a carterlake php template page and includes instructions for other template sites.

It uses a MySQL database to track web site visitors online from the last 15 minutes.
You can see what pages they click on.
Visitors are considered inactive after 5 minutes. Removed after 15 minutes.
Nothing is permanently logged except for a few records.

It has a readme.txt file with step by step instructions, but if you are a beginner at PHP it might not be easy.

Download:    
http://www.642weather.com/weather/scripts/whos-online.zip

Live Example:  
http://www.642weather.com/weather/whos-online.php
My page is password protected, but there is a screenshot.jpg included in the download.

Script page:  
http://www.642weather.com/weather/scripts-whos-online.php

-----------------------------------------
Features
-----------------------------------------
Shows Search bots, Visitors, and You
Time online
Entry Time
Last Click Time
IP Addresses
IP Lookups
Last URL Visited
Referrer URL
Visitor count
Max visitors today, month, year, all time
Language variables, easy to translate
Supports tracking of php pages and non-php pages like .htm, .html, etc

Options:
* password protect for admin only usage (protects your visitor's privacy)
* Show or hide Bots, Refresh rate, Profile display
* timezone configurable
* hide ip addresses if you want
* "location plugin" included: adds country, city, state, latitude & longitude, and a worldmap image of online visitors.
* many of the features can be turned on or off in include-whos-online-settings.php

If upgrading from 1.xx, read the included file "upgrading to 2.0 or higher.txt"

This is not a page full featured hit counter or web site logger, you can use google analytics or webalizer for that.

If you have any ideas for more features, let me know

If you try it please let me know, thanks

Version: 2.25 - 02-Sep-2009 - fixed blank map in PHP5.3
to upgrade from 2.24, replace wo-worldmap.php, include-whos-online-header.php and include-whos-online-page.php

Version: 2.24 - 26-Aug-2009 - fixed a deprecated ereg_replace function for PHP 5.3+ compatibility when error warnings are on
to upgrade from 2.23, replace include-whos-online-header.php and include-whos-online-page.php

Version: 2.23 - 02-Aug-2009 - added table definition for table geo_update
to upgrade from 2.22, replace include-whos-online-header.php, include-whos-online-page.php, and add the following settings to your include-whos-online-settings.php
define('TABLE_GEO_UPDATE', 'geo_update');

Version: 2.22 - 06-Jul-2009 - another bug fix for maxmind update code related to changes I made in version 2.21
to upgrade from 2.21, replace wo-update.php, include-whos-online-header.php and include-whos-online-page.php

Version: 2.21 - 05-Jul-2009 - There is part of the PHP code where I use CURL to check the last modified date of the maxmind database. Sometimes CURL returns -1 instead of the timestamp on some peoples servers.
I made a modification to use http to check the date when this error is detected.  
to upgrade from 2.20, replace include-whos-online-header.php and include-whos-online-page.ph


for more history see changelog.txt in the zip file
« Last Edit: September 02, 2009, 06:45:21 AM by MCHALLIS » Logged

jmcmurry
Jim McMurry
Rain Maker
***
Offline Offline

Location: Mauston, WI, USA
Station Type: Davis Vantage Pro 2 Plus Wireless. StartWatch, VirtualVP, Boltek/NexStorm, GR3 & WxSim
Posts: 1,796
Local Time: Thursday 13:26



WWW
« Reply #1 on: January 03, 2009, 12:13:39 AM »

I must be having an issue with caching or something.  I'm not seeing any files newer than yesterday and don't see anything like "upgrading to 2.0 or higher.txt" anywhere.  I'll see if I can figure that out.  Looking forward to trying the new script out.

- Jim
Logged


 Home of NSLog NexStorm Lightning Data Manager
MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,997
Local Time: Thursday 11:26



WWW
« Reply #2 on: January 03, 2009, 12:18:21 AM »

Mike,

The whos-online.sql.txt needs to have the stats table changed to stats2.

Why?
You can use the same stats table as before
see Step5) of the "upgrading to 2.0 or higher.txt" file
Logged

firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,422
Local Time: Thursday 14:26



WWW
« Reply #3 on: January 03, 2009, 12:35:04 AM »

All was going well until I turned on the State addon, then I got this....http://stillweather.com/whos-online.php

I think I followed the instructions, did I miss something?

Jack
Logged

MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,997
Local Time: Thursday 11:26



WWW
« Reply #4 on: January 03, 2009, 12:40:06 AM »

All was going well until I turned on the State addon, then I got this....http://stillweather.com/whos-online.php

I think I followed the instructions, did I miss something?

Jack

The GeoLiteCity.dat file must be uploaded in binary
Maybe you uploaded it in ascii mode?
Check your ftp program setting, upload it again. Let me know if that helped.
Logged

andro700
Chuck
Junior Weather Controller
****
Offline Offline

Location: Glendive, Montana
Station Type: Davis VP2 w/ heater and Serial Data Logger & Solar Sensor
Posts: 3,148
Local Time: Thursday 11:26



WWW
« Reply #5 on: January 03, 2009, 12:48:17 AM »

I have a couple of questions concerning these two steps;

Quote
Step 5)
Upload the contents of the 'whos-online' folder to your web server.

Probably a stupid question. So I just upload the entire folder all at once to my web server. d'oh!

Quote
Step 6)
add the following code to a php file that is included on every php page on your web site:
  (note: this works best when the included file is a settings.php include that is included before any output including header)
  (if you include it in the header, body, or footer, the whos-online.php page will not work)

Not sure what this means. Where do you put it. d'oh!

Chuck
Logged

mth
Rain Maker
***
Offline Offline

Location: Baltimore, Maryland
Station Type: Davis Vantage Pro 2 - Model 6153
Posts: 1,258
Local Time: Thursday 14:26



WWW
« Reply #6 on: January 03, 2009, 12:48:52 AM »

I'm having the same issue as Jack....

http://www.relayweather.com/whos-online.php

I am having an issue when trying to upload the GeoLiteCity.dat file

My site is hosted by E-Rice.  Using Filezilla, I am transferring this in Binary mode.  Once transfer gets to about 19MB, it just quits.
« Last Edit: January 03, 2009, 12:51:24 AM by mth » Logged

Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com

firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,422
Local Time: Thursday 14:26



WWW
« Reply #7 on: January 03, 2009, 12:51:44 AM »

Exactly what is happening to me, even tried other types of ftp uploads.
Logged

mth
Rain Maker
***
Offline Offline

Location: Baltimore, Maryland
Station Type: Davis Vantage Pro 2 - Model 6153
Posts: 1,258
Local Time: Thursday 14:26



WWW
« Reply #8 on: January 03, 2009, 12:53:20 AM »

You E-Rice Jack?? 
Logged

Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com

firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,422
Local Time: Thursday 14:26



WWW
« Reply #9 on: January 03, 2009, 12:54:44 AM »

Quote
You E-Rice Jack??

Yes
Logged

MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,997
Local Time: Thursday 11:26



WWW
« Reply #10 on: January 03, 2009, 12:54:54 AM »

I have a couple of questions concerning these two steps;

Probably a stupid question. So I just upload the entire folder all at once to my web server. d'oh!

Not sure what this means. Where do you put it. d'oh!

Chuck

Chuck are you installing this on a carterlake template site?
There are two sections in the readme file

Installation (carterlake php template sites)
and
Installation (any other php template sites)

The step 6 you posted was from the second section, but to answer your question it would go in a Settings.php that is included before the header output.

Logged

mth
Rain Maker
***
Offline Offline

Location: Baltimore, Maryland
Station Type: Davis Vantage Pro 2 - Model 6153
Posts: 1,258
Local Time: Thursday 14:26



WWW
« Reply #11 on: January 03, 2009, 12:55:58 AM »

Could E-Rice limit the maximum file size? d'oh!
Logged

Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com

MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,997
Local Time: Thursday 11:26



WWW
« Reply #12 on: January 03, 2009, 12:59:14 AM »

could be a permissions issue, if uploaded the complete file, make sure the file is readable. chmod 0644
Logged

Tim Hanko
Rain Maker
***
Offline Offline

Location: Grand Rapids, Michigan, USA
Station Type: Davis Vantage Pro II, Boltek StormTracker
Posts: 1,087
Local Time: Thursday 12:26



WWW
« Reply #13 on: January 03, 2009, 01:02:32 AM »

Got it working for Bill. Not seeing the map though.

http://www.evansville-weather.com/whos-online.php
Logged
mth
Rain Maker
***
Offline Offline

Location: Baltimore, Maryland
Station Type: Davis Vantage Pro 2 - Model 6153
Posts: 1,258
Local Time: Thursday 14:26



WWW
« Reply #14 on: January 03, 2009, 01:03:54 AM »

File is not complete....only 19 of 29MB being uploaded.
Logged

Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com

Pages: [1] 2 3 ... 53
  Print  |  « previous  |  next »  |  Go Up  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!