cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline vk2him

  • Posts: 411
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Whos Online Script 2.0
« Reply #60 on: January 03, 2009, 05:26:55 AM »
I now have Version 2 up and running http://wx.theshackbythebeach.com/wx/whos-online.php, its very good  8)

... two minor things that didn't match the documentation supplied

1) In the "upgrading to 2.0" file, pasting the SQL command into phpmyadmin gave an error that  last_page_url can't have a default value. So I had to change the line from this

`last_page_url`   text NOT NULL default '',

to this for it to work:

  `last_page_url`   text NOT NULL,

2) To get the maps to display, the readme.txt file instructions miss two files needed to be transferred.

Existing documentation:

Step 2)
Upload the following files to your web server where your template site is:
geoip.inc
geoipcity.inc
geoipregionvars.php
images-wo-country-flags (entire folder)

Correct documentation

Step 2)
Upload the following files to your web server where your template site is:
geoip.inc
geoipcity.inc
geoipregionvars.php
wo-worldmap.jpg
wo-pin.jpg
images-wo-country-flags (entire folder)

Well done!!!!
« Last Edit: January 03, 2009, 05:31:32 AM by vk2him »

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 #61 on: January 03, 2009, 05:28:34 AM »
Chuck,
Check your e-mail. I sent you 2. ignore the first one.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script 2.0
« Reply #62 on: January 03, 2009, 05:32:09 AM »
thanks vk2kim, I will update the distribution with your changes

Offline andro700

  • Chuck
  • Posts: 3,209
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Whos Online Script 2.0
« Reply #63 on: January 03, 2009, 05:36:54 AM »
I tried both and still the same 12/31 from Bill and ALITTLEweird1. I am going to try something else.

Chuck

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online Script 2.0
« Reply #64 on: January 03, 2009, 05:48:32 AM »
OK all.....new V2 installation up and everything works!

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

A couple of questions:
--  I use the narrow css and am forcing the who-is to wide screen per Mike's instruction.  How do I get the body to extend to the right a little further?

-- The map provided for the who-is has the points located way out of position.  Is there something I can adjust?

Once Again, thanks to Mike for his hard work!! :D
Michael

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


Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Whos Online Script 2.0
« Reply #65 on: January 03, 2009, 06:05:44 AM »
Hi Mike

Thank you very much for your hard work on this - its a GREAT script.

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

But I think there is something wrong with the pinīs on the map - the seem to be wrong placed - does anyone else have that problem?

I visited your whos-online Mike - and here the dots seems to be a bit wrong too

Best regards,

Henrik

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script 2.0
« Reply #66 on: January 03, 2009, 06:07:48 AM »
Michael,

You could make a small adjust to your css main copy

Code: [Select]
#main-copy {
  color: black;
  background-color: #C0C0C0;
  text-align: justify;
  line-height: 1.5em;
  margin: 0 0 0 9.5em;
  padding: .5ex .5ex 1em 1em;
  border-left: 1px solid rgb(216,210,195);
  min-height: 1300px;
}

and you are having the msn bot getting stuck on your wuhistory page:
Problem:
I see bots spending several hours on the wuhistory.php page
it looks like they are selecting all the dates from the dropdown selectors:
/wuhistory.php?ID=KILSTRON1&month=6&day=11&year=2006&mode=5&units=B

Solution:
Looks like the bots are "treading water" (getting stuck) in your wuhistory.php page:
/wuhistory.php?ID=KILSTRON1&month=6&day=11&year=2006&mode=5&units=B

You probably need to do something about that problem. Like add Disallow: /wuhistory.php to your robots.txt,
add a meta noindex nofollow <meta name="robots" content="noindex, nofollow" /> to your wuhistory.php
Also, be sure to exclude that page from your Google Sitemap generator (if you have one).

I do not know about the pin locations, it could be errors in the lat & long data or errors in the map I do not know.
« Last Edit: January 03, 2009, 06:10:10 AM by MCHALLIS »

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online Script 2.0
« Reply #67 on: January 04, 2009, 02:18:09 PM »
Hi Mike,

I don't have a robots.txt file.  Can you give me a little insight and how to get one going?
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com


Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Whos Online Script 2.0
« Reply #68 on: January 04, 2009, 02:20:50 PM »
Hi Michael

A good place to check out is Googles Webmaster Tools - that was what got me going with sitemaps and robots:

http://www.google.com/webmasters/tools/

Best regards,

Henrik

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script 2.0
« Reply #69 on: January 04, 2009, 02:43:28 PM »
Version: 2.01 - 03-Jan-2009

- fixed bug in visitor timeouts where if you had deleted a nickname, the visitor would no longer timeout
- fixed bug where random visitor country flags were missing (still might be happening)
- fixed bug where a random worldmap pin was in center of map
- moved all the functions in include-whos-online-settings.php to include-whos-online-header.php
- added setting to allow or disallow image pins for bots on the worldmap
to upgrade from 2.00, replace include-whos-online-page.php, include-whos-online-header.php and include-whos-online-settings.php

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

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Whos Online Script 2.0
« Reply #70 on: January 04, 2009, 02:48:45 PM »
Hi Mike

Thanks - I have it up and running without any problems.

Best regards,

Henrik

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online Script 2.0
« Reply #71 on: January 04, 2009, 02:51:31 PM »
I've notice statistics in the footer on many users pages.  How do these get incorporated?
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com


Offline AM1234

  • Posts: 363
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: Whos Online Script 2.0
« Reply #72 on: January 04, 2009, 02:54:49 PM »
My locations pins are not in their proper locations:

http://www.beamsvillewx.ca/whos-online.php

and why does my one visitor's last url refer to my settings.php?

I am using version 2.1
« Last Edit: January 04, 2009, 03:24:31 PM by AM1234 »
Ann-Marie
Beamsville, Ontario, Canada

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 #73 on: January 04, 2009, 03:00:43 PM »
edit: oops, double post
« Last Edit: January 04, 2009, 03:02:49 PM by MCHALLIS »

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online PHP Script 2.0 for your template site
« Reply #74 on: January 04, 2009, 03:01:14 PM »
Mike,

Version 2.1 is up and running fine here! :)
http://relayweather.com/whos-online.php

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


 

cumulus