Whos Online Script

Wow, you’re a magician, its working now!!! Thanks, I’m going to play around with it now :smiley:

Great :smiley:

I will modify the whos-online.sql.txt in the download so the next person on IIS does not have that problem.

You are using version 1.50?

There is a newer version I uploaded yesterday.

Version: 1.51 22-Dec-2008

  • fixed bug where IP addresses sometimes were not showing when logged in
    to upgrade from 1.50, replace include-whos-online-page.php

Version: 1.52 31-Dec-2008

  • fixed refresh not working when login enabled and logged in
  • added a new state-addon plugin to show “city, state” next to country flags, see ‘state-addon’ folder readme.txt
  • Thanks to (Jim McMurry - jcweather.us) for the idea and some of the code.
    to upgrade from 1.51, replace whos-online.php, include-whos-online-page.php, and include-whos-online-header.php

Thanks, I’ll include those updates now … at the moment I’m having formatting issues trying to incorporate your code into my background template … I get this error:

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\wx\whos-online.php:61) in C:\Inetpub\wwwroot\wx\include-whos-online-settings.php on line 328

The page displays properly, just with this error at the top … The error may be in a different spot if the updated code changes … I’ll try that now

test a basic worldmap (plugin)

you can see it at my site: Tools & info who’s online


test-worldmap.zip (42.7 KB)

Hi guys,
what kind of mysql database are you used?
yours or one of your service provider?
Thanks,

Alessandro

I am using a mysql database on my own IIS server …

Hi Pinto

I have it up and running and its working fine - very easy to implement.

Best regards,

Henrik

I have it working too Pinto, very nice!! I may make the Pin picture a bit larger

http://wx.theshackbythebeach.com/wx/whos-online.php
Cheers

Jozef,

Outstanding addition! Now I wonder about country and possibly regional map options. Hmmm.

  • Jim

My pins are in the ocean!
http://www.nhpaweather.com/whos-online.php

Oops! Looks OK in I.E. but in Firefox they are off- but just for my site. When I view other pages in this post with Firefox, they look OK.

Fixed! I changed the doc type, now it looks OK.

I will test the basic worldmap (plugin) today.
This requires you have the country addon and the state addon installed. You have to have all 3 plugins installed. :wink:

If you just want to put the worldmap on your whos online page it will be populated with every visitor.

If you want to put the worldmap on any other page on your site, then there is a weakness in this system:
as it is now, the location_info table only gets populated when the whos online page is being viewed.
Worse yet, if you have it password protected, the location_info table only gets populated when the whos online page is being viewed by the logged in admin.

This is getting a bit busy with 3 layers of plugins.
Using the maxmind data makes the country-to-ip data redundant.
When I get time, I might make it one plugin that requires the maxmind data with options to turn on and off features.
The worldmap could be included on any page on your site.
It would be whos-online 2.0 and require uninstall and re-install. How many are up for this idea?

I would say: go on Mike, if you have time.(installing, reinstall, it’s fun, I like to play with things like this)
And as it is now you only have the last 30 day visitors, …and so on.
The script was only hacked together to show what was possible.

@ Jim I sure would have a map for US, Europe, even one for my own country, or … but that is a little to much for me.

I only picked some lines from different scripts, put them in a shaker, shake a couple of minutes and there it was.

Hi Mike

I agree with pinto

Its good fun to play with all the great scripts.

Best regards,

Henrik

Sounds like a GREAT idea to me.

Mike,

I too am up for version 2.0!

  • Jim

OK great, I am working on it today. 8)

It will have only one plugin called “location-plugin”.
The plugin will combine all the location features.
The whos-online map can be used on any page.

When I have it ready I will start a new post.

Just so I am ready for the next version…I will have to totally delete what I currently have. Is there an easy way to delete the whois tables from my SQL server using PHPMYADMIN?

Drop the tables, I think that will clear the data base.

Mark

I have the 2.0 version working on my site. :lol:
I need more time to document the changes in the readme files and changelog

If you do not want to re-create the tables, you can use truncate, that clears out the data but leaves the schema intact.