Whos Online Script

Why do you need an additional database?

Just create a table in the one you are currently using. You can have multiple apps sharing the same database with their own tables.

I’m sure it wouldn’t be too hard to modify the script to use a flat file DB’s as well though I’ve not looked at the script at all yet.

formatted the dates a little better.

14 Visitors online right now
Max visitors today: 14 at 11:35 pm PST
This month: 26 at 12-12-2008 06:01 pm PST
This year: 26 at 12-12-2008 06:01 pm PST
All time: 26 at 12-12-2008 06:01 pm PST

I think I will make the whos-online page admin view only on my web site.
I will still add the feature to disable the ip addresses display for those who want to use it publicly on their web site.

… too tired tonight, will look at it more tomorrow.

Aint that with prefix’s perhaps i said it wrong about, but thats what i meant with what you said Kevin lol

Perfect :slight_smile:

Where might this script be located. This was a great idea thanks for taking the time to write it

windgust

(K1DED)

Not sure but i dont think he’s released it yet, i think he wanted to get it tidied
up and any suggestions added 1st

Thanks for the response.

Windgust
(K1DED)
www.windgust.com/live1

Yep, today is the best time to suggest features because I am adding them now. :slight_smile:

Who’s Online PHP Script by Mike Challis

Version: 1.00 - 13-Dec-2008

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

Live Demo

This is new …
If you have any ideas for more features, let me know

If you try it please let me know, thanks

Before I try it…Does this script work without the templates? And is it V4 php Friendly?

Yes you can use it without the templates, see the readme.txt
Optional template install)

It helps if the site already has a settings.php or similar include file so the include-whos-online-header.php file can easily be included for every page.

PHP4 works, I have php5 though. let me know if there is any trouble.

Very nice Mike!

Hi Mike

I have it up and running in a testpage here:

I see some W3 validation errors - but cant figure out how to correct them.

Best regards,

Henrik

HI Mike

I have it on my home page (took a while to sort it out)
I see the Database name is showing, is there away to stop that please?
http://www.northantsweather.com near the bottom right

I also have the script running in a seperate page but i dont think its working
right for me, i think i done something wrong as clicking on IP addresses and
changing settings dont work, any ideas what i broke please?

I tried to follow your optional install but did struggle a few times as my pages are html…
http://www.northantsweather.com/wx36.html for the main script

http://www.northantsweather.com/whos-online.php dont seem to do anything,

Hi

Is there a idiots guide to creating “mysql database on your web server” as mentioned in the readme.

Thanks

Tony

Nice job Mike…hell I’m still TRYING to get the “Forecast Discussion” page to work!

Got this great script up and running last night, another masterful job MCHALLIS, thanks so much!!!

Regards,

Jack

Because many web hosts use different types of control panels, there are different ways.
Usually your web host will have a FAQ or help guide to show you how to add a database.
After you add your database, create the tables with whos-online.sql.txt
If you use phpMyAdmin; you can select your new database,
then paste the contents of whos-online.sql.txt into the SQL statement entry form.

You must have changed some things because I cannot duplicate the problems you are having.
I have no idea why the table name is printing in the page, the script should not do that unless you changed something.

ip links not working …
What did you set for $C[‘whois_url’] ?

for the whos-online.php not working …
the $C[‘filename_whos_online’] setting was only designed to use one type of page such as php, so it would have to be set to
whos-online.php for that page to work

… also your records are showing millions online, I do not know why.

Thanks for the reply