cloudy

Author Topic: Whos Online Script  (Read 42027 times)

0 Members and 2 Guests are viewing this topic.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script
« Reply #30 on: December 14, 2008, 04:54:50 AM »
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.
« Last Edit: December 25, 2008, 06:25:38 PM by MCHALLIS »

Offline looney2ns

  • Posts: 2,946
  • Fearless Weather Dog-Loves to watch Lightning.
  • Near Evansville Indiana USA
    • Newburgh Weather
Re: Whos Online Script
« Reply #31 on: December 14, 2008, 05:19:41 AM »
Very nice Mike!

Offline jwwd

  • Posts: 3,561
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Whos Online Script
« Reply #32 on: December 14, 2008, 07:01:01 AM »
Hi Mike

I have it up and running in a testpage here:

http://www.silkeborg-vejret.dk/whos-online.php

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

Best regards,

Henrik

Bashy

  • Guest
Re: Whos Online Script
« Reply #33 on: December 14, 2008, 08:57:11 AM »
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,

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Whos Online Script
« Reply #34 on: December 14, 2008, 10:58:44 AM »
Hi

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

Thanks

Tony

warwickpaweather

  • Guest
Re: Whos Online Script
« Reply #35 on: December 14, 2008, 11:25:43 AM »
Nice job Mike...hell I'm still TRYING to get the "Forecast Discussion" page to work!

Offline BfdWx

  • Posts: 1,586
  • Branford Connecticut
    • Branford Weather
Re: Whos Online Script
« Reply #36 on: December 14, 2008, 02:25:27 PM »
Got this great script up and running last night, another masterful job MCHALLIS, thanks so much!!!

Regards,

Jack

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script
« Reply #37 on: December 14, 2008, 02:57:44 PM »
Hi

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

Thanks

Tony

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.

« Last Edit: December 14, 2008, 04:04:08 PM by MCHALLIS »

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script
« Reply #38 on: December 14, 2008, 03:20:38 PM »
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,

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.

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Whos Online Script
« Reply #39 on: December 14, 2008, 03:24:07 PM »
There are different ways depending on what web host you have because many web hosts use different types of control panels.
Usually your web host will have a FAQ or help guide to show you how.
Who is your web host?


Thanks for the reply
Lowesthosting.com

Bashy

  • Guest
Re: Whos Online Script
« Reply #40 on: December 14, 2008, 03:31:55 PM »
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.


Hi

What did you set for $C['whois_url'] ? is set at default, i didnt change that.

Nothing in the script was changed other than adding my DB details,
I think i will wait till i sort out my new site that will be in php i think that
cause im trying to include it in html files this is the problem :(

As for the records showing millions, i was playing :)

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script
« Reply #41 on: December 14, 2008, 04:19:08 PM »
This script only supports PHP files in a template site at this time.

Later on I might add a feature to support tracking html page activity by using a very small image pixel hit.

Offline jwwd

  • Posts: 3,561
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Whos Online Script
« Reply #42 on: December 14, 2008, 05:04:41 PM »
Hi Mike

Did you see my post about the W3 validation errors?

I see that Jack (http://stillweather.com/whos-online.php) has the W3 errors too.

Best regards,

Henrik

Ps. I have tried to change the timeformat to Danish standard - how do I change the time from 12-hour format to 24 hour format?

www.silkeborg-vejret.dk/whos-online.php

Offline BfdWx

  • Posts: 1,586
  • Branford Connecticut
    • Branford Weather
Re: Whos Online Script
« Reply #43 on: December 14, 2008, 05:27:24 PM »
Don't go by my site for the errors...LOL, I have other issues that I'm slowly getting through! One other minor glitch I have noticed a couple of times...If the "Last URL" is a long address, such as my wu page the entire page gets bumped down very low. So low in fact I could not take a screen shot of it.

Now for a funny story regarding this script....My daughter is studying abroad in Spain. This morning I was looking at the new page and noticied a visitor from Spain viewing the WebCam.......Hmmmmm got on AIM asked my daughter if she was looking at the WebCam and YES she was. It freaked her out that I knew what she was doing...LOL. Turns out she was showing her host family the website because she is coming home on Friday and wanted to share the site with them. Too funny!

Regards,

Jack

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script
« Reply #44 on: December 14, 2008, 05:27:31 PM »
Hi Mike

Did you see my post about the W3 validation errors?

I see that Jack (http://stillweather.com/whos-online.php) has the W3 errors too.

Best regards,

Henrik

Ps. I have tried to change the timeformat to Danish standard - how do I change the time from 12-hour format to 24 hour format?

www.silkeborg-vejret.dk/whos-online.php

I think the validation problem might be cause by some empty rows that somehow got inserted in the database.
Do you have any empty rows in your database whos_online table? can you possibly browse it with phpMyAdmin?
I made a new version to possibly fix the validation problem, but I cannot access my server to test it or upload the new zip file.  :(

time format setting will be in my next version...

I might post it here temporarily in a few minutes.

 

cumulus