cloudy

Author Topic: Who's Online PHP Script 2.0 for your template site  (Read 110227 times)

0 Members and 2 Guests are viewing this topic.

Offline Billw69

  • Posts: 720
  • If you work hard, you will have time to play hard.
  • Evansville, IN U.S.A.
    • Evansville-Weather
Re: Whos Online Script 2.0
« Reply #105 on: January 04, 2009, 10:35:01 PM »
If you view the source of the whos-online.php it shows the version.

Yours and Chucks are version 1.52
<!-- Version: 1.52 - 31-Dec-2008 - Who's Online PHP Script by Mike Challis -->

The latest version is 2.00 released today 02-Dec-2009

Should I try to update to version 2.1 yet? Or will there be more great improvements to this wonderful script?

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #106 on: January 04, 2009, 10:46:44 PM »
Billw69 go for it.
I am now trying to freeze the features for awhile.

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #107 on: January 04, 2009, 11:14:43 PM »
Mike;

Thank you.  Problem resolved and works.  :)

I had the right idea as was working towards that resolution but screwed up the #page id evidently.  Now I can rest and find another problem to tackle....

~heads off to Linux box to see if maybe can get WD to work there right.... ~


73's de K3JAE

John
K3JAE Weather Station

Offline Billw69

  • Posts: 720
  • If you work hard, you will have time to play hard.
  • Evansville, IN U.S.A.
    • Evansville-Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #108 on: January 04, 2009, 11:29:02 PM »
HMMMM. After downloading the zip and reading the upgrade instructions, I think that I will wait for Tims assistance. I don't know anything about SQL. I sure don't want to break what he has working. It is working OK for the time being.

Offline n9mfk9

  • Posts: 469
  • Springfield IL, USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #109 on: January 04, 2009, 11:52:42 PM »
hi Mike two questions

how do i fix this error
http://www.n9mfk.com/mwwn/
this is in its own dir
also whats  best site for ip look up
my ip not in the default thanks beau   


Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #110 on: January 05, 2009, 12:00:43 AM »
hi Mike two questions

how do i fix this error
http://www.n9mfk.com/mwwn/
this is in its own dir
also whats  best site for ip look up
my ip not in the default thanks beau   


You cannot use the worldmap unless you install and enable the "location-plugin"
Read the readme.txt in the location-plugin folder

There are a few sample ip lookup sites listed in include-whos-online-settings.php
You can try and decide what you like or find more online.

Code: [Select]
// http://www.showmyip.com/?ip=
// http://www.geo-location.com/cgi-bin/index.cgi?s=
$C['whois_url'] = 'http://www.geo-location.com/cgi-bin/index.cgi?s=';

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online PHP Script 2.0 for your template site
« Reply #111 on: January 05, 2009, 12:02:09 AM »
Hi Mike,

I'm looking to breakdown the <?php echo $whos_online_records; ?> to something a little less "bulky".  Right now, this takes a lot of space on the footer, so I'm currently not including it.  Is there a way to break these apart for individual use?

4 Visitors online right now
Max visitors today: 9 at 12:06 pm EST
This month: 9 at 01-04-2009 12:06 pm EST
This year: 9 at 01-04-2009 12:06 pm EST
All time: 9 at 01-04-2009 12:06 pm EST


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


Offline n9mfk9

  • Posts: 469
  • Springfield IL, USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #112 on: January 05, 2009, 01:01:10 AM »
hi Mike, is there a way to set it up with out a 29 mag file in the sub folder
beau

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #113 on: January 05, 2009, 01:34:53 AM »
Hi Mike,

I'm looking to breakdown the <?php echo $whos_online_records; ?> to something a little less "bulky".  Right now, this takes a lot of space on the footer, so I'm currently not including it.  Is there a way to break these apart for individual use?

4 Visitors online right now
Max visitors today: 9 at 12:06 pm EST
This month: 9 at 01-04-2009 12:06 pm EST
This year: 9 at 01-04-2009 12:06 pm EST
All time: 9 at 01-04-2009 12:06 pm EST


Regards,
Michael


OK

Version: 2.02 - 03-Jan-2009
- renamed function get_whose_online_worldmap to get_whos_online_worldmap
- added print array for individual records display
You can still add all the stats to your template footer section like this (or anywhere on your site you want it)
Code: [Select]
<?php echo $whos_online_records?>
(new) you can show the stats one at time like this:
Code: [Select]
<?php echo $wo_record_array['now']; ?>
<?php echo $wo_record_array['today']; ?>
<?php echo $wo_record_array['month']; ?>
<?php echo $wo_record_array['year']; ?>
<?php echo $wo_record_array['all']; ?>
to upgrade from 2.01, replace include-whos-online-header.php

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #114 on: January 05, 2009, 01:38:05 AM »
hi Mike, is there a way to set it up with out a 29 mag file in the sub folder
beau

Yes when the location plugin is disabled with this setting:
$C['enable_location_plugin'] = 0;

The GeoLiteCity.dat file is required when you enable the location plugin because that is where the location data comes from.
lat & lon, city, state and country.

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online PHP Script 2.0 for your template site
« Reply #115 on: January 05, 2009, 02:35:19 AM »
Hi Mike,

2.02 up and running with the individuals in my footer!  Appreciation as always! :)

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


Offline jmcmurry

  • Jim McMurry
  • Posts: 2,213
  • Mauston, WI, USA
    • Juneau County Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #116 on: January 05, 2009, 12:17:16 PM »
For those of you who were into this project early when Mike introduced the GeoLiteCity.dat data from maxmind.com, there's a new set of data updated 1/1/09.

Just to let you all know, they really do update the free version.  In the December copy I showed up as Sun Prairie, WI about 60 miles away and now I show up as Adams, WI which is only about 10 miles from home.  The lat/long of course changed too.

I wonder, could a script download the .gz file straight to the server and uncompress it there?   I suppose not worth the coding effort and there'd probably be problems with different versions of PHP.

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Whos Online PHP Script 2.0 for your template site
« Reply #117 on: January 05, 2009, 12:48:10 PM »
Quote
I wonder, could a script download the .gz file straight to the server and uncompress it there?
http://www.maxmind.com/app/installation?city=1

use cron, day 10 seems to be a good day

write bash-script when on Linux and follow the directions on the page in the link(only 3 lines)

for people who do know what it's all about

if you don't, download the file, unzip it and do the upload to your server

 :)


Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online PHP Script 2.0 for your template site
« Reply #118 on: January 05, 2009, 01:41:47 PM »
Concerning the problem with the map pin locations:

On Firefox 3, my pins are dead on the location
On IE 7, the pins are about 600 miles south of there respective locations.

So, it seems to be a browser issue.....

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


Offline n9mfk9

  • Posts: 469
  • Springfield IL, USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #119 on: January 05, 2009, 02:36:01 PM »
Hi Mike i have it running on my main part of my site but not in the sub folder
thanks Beau