cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Whos Online Script 2.0
« Reply #75 on: January 04, 2009, 03:14:07 PM »
Hi Mike,

I don't have a robots.txt file.  Can you give me a little insight and how to get one going?
you can start with this:

Code: [Select]
User-agent: *
Disallow:/wxwuhistory.php
Disallow:/wxradar.php

save it as robots.txt and upload

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Whos Online Script 2.0
« Reply #76 on: January 04, 2009, 03:17:19 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 have not had time to investigate the map accuracy.

But here is an explanation that might make sense for the map accuracy issue:
The lat & lon is for the location where the the ISP recorded the IP address for.
This may no be your actual lat & lon.

To check the database itself, compare with this online demo.
http://www.maxmind.com/app/locate_ip

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #77 on: January 04, 2009, 03:22:47 PM »
I am having a problem....

Regardless if I add the code at bottom of the Settings.php script to force wide screen on "who's Online" page the page does not open wide and places all information at bottom of page overrunning the narrow borders.  It will not go to a wide display.  Only page I prefer to go wide is this page.  How do I fix this?

Could it be I do not have the -wide.css on the server?  If so can someone place any -wide.css file for me as I dumped them... never anticipated using them...  :oops:  #-o
« Last Edit: January 04, 2009, 03:29:09 PM by K3JAE »


73's de K3JAE

John
K3JAE Weather Station

Offline BfdWx

  • Posts: 1,511
  • Branford Connecticut
    • Branford Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #78 on: January 04, 2009, 03:41:25 PM »
Wide CSS...

Code: [Select]
/**********************************
 * TITLE: Gila Screen Stylesheet  *
 * URI  : gila/gila-screen.css    *
 * MODIF: 2003-Apr-30 19:09 +0800 *
 **********************************/

body {
  color: white;
  background-color: black;
  font-family: verdana, helvetica, arial, sans-serif;
  font-size: 73%;  /* Enables font size scaling in MSIE */
  margin: 0;
  padding: 0;
}

html > body {
  font-size: 9pt;
}

#page {
  margin: 20px auto;
  color: black;
  background-color: #4A4A4A;
}

.doNotDisplay {
  display: none !important;
}

.picfl {
           float:left;
           padding-right: 5px;
           position: relative;
}

.picfr {
           float:right;
           padding-left: 5px;
           position: relative;
}

.picfc {
           text-align: center;
           padding-left: 5px;
           padding-right: 5px;
           position: relative;
}


/* ##### Header ##### */

/* ##### CHANGE background-color to change header color, hex code is OK ##### */
/* ##### Hex Color Chart - http://www.hypersolutions.org/pages/rgbhex.html  ##### */

#header {
  color: inherit;
  background-color: #202020;
}

.headerTitle {
  margin: 0;
  padding: 0.25em 4mm 0.25em 4mm;
}

.headerTitle a {
  color: #C0C0C0;
  background-color: transparent;
  text-decoration: none;
  font-size: 110%;  /* For MSIE */
  font-weight: bold;
  font-style: italic;
}

.headerTitle > a {
  font-size: 110%;  /* For fully standards-compliant user agents */
}

.headerTitle span {
  color: white;
  background-color: transparent;
  font-weight: normal;
}

 .headerTemp {
  font-size: 36px;
  font-weight: bold;
  float: right;
  right: .5ex;
  margin-right: 5px;
  margin-left: 15px;
  top: 0.18em;
  color: white;
}

[class~="headerTemp"] {
  top: 0.18em;  /* For fully standards-compliant user agents */
}

.subHeader {
  color: white;
  float: left;
  clear: left;
  position: relative;
  background-color: #4A4A4A;
  font-size: 109%;
  margin: 0;
  padding: 0.5ex 1ex;
}

.subHeaderRight {
  color: white;
  background-color: #4A4A4A;
  font-size: 109%;
  text-align: right;
  margin:  0;
  padding: 0.5ex 2ex;
}

.subHeader a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ##### Left Side Bar ##### */

.leftSideBar {
  width: 9.5em;
  float: left;
  clear: left;
}

.leftSideBar .sideBarTitle {
  color: #C0C0C0;
  background-color: #202020;
  font-weight: bold;
  margin: 0;
  padding: 0.5ex 1ex;
}

.leftSideBar ul {
  list-style-type: none;
  list-style-position: outside;
  margin: 0;
  padding: 0;
}

.leftSideBar li {
  margin: .5ex;
  padding: 0;
}

.leftSideBar a {
display: block;
color: #CC9933;
background-color: transparent;
width: 89px;
padding: .05em;
text-decoration: none;
}

.leftSideBar a:visited {
  color: #CC9933;
  background-color: transparent;
  text-decoration: none;
}

.leftSideBar a:hover {
background-color: #202020;
color: white;
}

.leftSideBar .sideBarText {
  color: black;
  background-color: transparent;
  line-height: 1.25em;
  margin: 1ex 0.25ex 1.5em 0.75ex;
  padding: 0;
  display: block;
}

.leftSideBar .sideBarText a {
  text-decoration: underline;
  font-weight: bold;
}

.leftSideBar .sideBarText a:visited {
  text-decoration: underline;
  font-weight: bold;
}

.leftSideBar .sideBarText a:hover {
  text-decoration: none;
}

.leftSideBar .thisPage {
  color: white;
  background-color: transparent;
  font-weight: bold;
}

/* ##### Main Copy ##### */

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

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

#main-copy h1 {
  color: white;
  background-color: transparent;
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 175%;
  font-weight: bold;
  margin: 1em 0 0 0;
  padding: 1em 0 0 0;
  border-top: 1px solid rgb(216,210,195);
}

#main-copy a {
  color: #663300;
  background-color: transparent;
  text-decoration: underline;
}

.table-top {
  color: white;
  background-color: #4A4A4A;
  text-align: left;
  font-weight: bold;
}

.column-dark {
  color: black;
  background-color: #9F9F9F;
}

.column-light {
  color: black;
  background-color: #BFBFBF;
}

#main-copy a:hover {
  text-decoration: none;
}

p {
  margin: 1em 0 1.5em 0;
  padding: 0;
}

dt {
  font-weight: bold;
  margin: 0;
  padding: 0 0 0.5ex 0;
}

dd {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

.watchBox {
  color: black;
  font-size: 12px;
  text-align: center;
  background-color: #FF9900;
  margin: 0 0 0 0;
  padding: .5em 0em .5em 0em;
  border: 1px dashed rgb(34,70,79);
}

.advisoryBox {
  color: black;
  font-size: 12px;
  text-align: center;
  background-color: #FFCC00;
  margin: 0 0 0 0;
  padding: .5em 0em .5em 0em;
  border: 1px dashed rgb(34,70,79);
}

.warningBox {
  color: white;
  font-size: 13px;
  text-align: center;
  background-color: #CC0000;
  margin: 0 0 0 0;
  padding: .5em 0em .5em 0em;
  border: 1px dashed rgb(255,255,255);
}

/* ##### ajaxSidebar ##### */
.ajaxSidebar {
    background-color: white;
        border: none;
        width: 114px;
}
.ajaxSidebar h2 {
        font-size: 12pt;
        color: white;
        background-color: #4A4A4A;
        text-align: center;
        margin-right: 6px;
}

.ajaxSidebar .meas {
        font : x-small Arial, Helvetica, sans-serif;
        color: black;
        text-align : right;
        background-color: white;
        width: 35%;
        }
.ajaxSidebar .data {
        font : 9pt Arial, Helvetica, sans-serif;
        color: black;
        text-align : left;
        background-color: white;
        }
.ajaxSidebar td {
         border: none;
         background-color: white;
}
.ajaxDashboard .datahead {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 9pt;
        font-weight: bold;
        color:  white;
        background-color: #202020;
        text-align: center;
}
.ajaxDashboard .data1 {
         color: white;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 9pt;
         border-bottom: 1px solid #CCCCCC;
         background-color: #4A4A4A;
         text-align: left;
}
.ajaxDashboard td {
         border: none;
         background-color: #4A4A4A;
}


/* ##### Footer ##### */

#footer {
  color: white;
  background-color: #4A4A4A;
  font-size: 92%;
  text-align: center;
  line-height: 1.25em;
  margin: 0;
  padding: 1em 4mm 1em 4mm;
  clear: both;
}

#footer div {
  margin: 0;
  padding: 0 0 1ex 0;
}

#footer a {
  color: white;
  background-color: transparent;
  text-decoration: underline;
  font-weight: bold;
}

#footer a:visited {
  color: white;
  background-color: transparent;
  text-decoration: underline;
  font-weight: bold;
}

#footer a:hover {
  text-decoration: none;
}

.jsuparrow {
background-color:#CDDBCD;
border:0px none;
color:#22464F;
text-decoration:none;
}

.jsupoutline {
background:#CDDBCD none repeat scroll 0%;
border:0px solid #2266AA;
height:15px;
left:0px;
padding:0px;
position:absolute;
top:0px;
width:24px;
}

/* WordPress additions for Weather Display PHP AJAX Templates */
/* Copy and paste all of this to the END of your CSS files */

/* Begin Sidebar */
#sidebar
{
    padding: 2.5em;
    width: 150px;
    float: right;
    background-color: #9F9F9F;
    margin: 20px;

    }

#sidebar form {
    margin: 0;
    }
/* End Sidebar */


/* Begin Calendar */
#wp-calendar {
    empty-cells: show;
    margin: 10px auto 0;
    width: 155px;
    }

#wp-calendar #next a {
    padding-right: 10px;
    text-align: right;
    }

#wp-calendar #prev a {
    padding-left: 10px;
    text-align: left;
    }

#wp-calendar a {
    display: block;
    }

#wp-calendar caption {
    text-align: center;
    width: 100%;
    }

#wp-calendar td {
    padding: 2px 0;
    text-align: center;
    }

#wp-calendar td.pad:hover { /* Doesn't work in IE */
    background-color: #fff; }
/* End Calendar */



/* Begin Lists

    Special stylized non-IE bullets
    Do not work in Internet Explorer, which merely default to normal bullets. */

html>body .entry ul {
    margin-left: 0px;
    padding: 0 0 0 30px;
    list-style: none;
    padding-left: 10px;
    text-indent: -10px;
    }

html>body .entry li {
    margin: 7px 0 8px 10px;
    }

.entry ul li:before, #sidebar ul ul li:before {
    content: "\00BB \0020";
    }

.entry ol {
    padding: 0 0 0 35px;
    margin: 0;
    }

.entry ol li {
    margin: 0;
    padding: 0;
    }

.postmetadata ul, .postmetadata li {
    display: inline;
    list-style-type: none;
    list-style-image: none;
    }

#sidebar ul, #sidebar ul ol {
    margin: 0;
    padding: 0;
    }

#sidebar ul li {
    list-style-type: none;
    list-style-image: none;
    margin-bottom: 0px;
    }

#sidebar ul p, #sidebar ul select {
    margin: 5px 0 8px;
    }

#sidebar ul ul, #sidebar ul ol {
    margin: 5px 0 0 10px;
    }

#sidebar ul ul ul, #sidebar ul ol {
    margin: 0 0 0 10px;
    }

ol li, #sidebar ul ol li {
    list-style: decimal outside;
    }

#sidebar ul ul li, #sidebar ul ol li {
    margin: 3px 0 0;
    padding: 0;
    }
/* End Entry Lists */

#sidebar {
    font: 10px 'Lucida Grande', Verdana, Arial, Sans-Serif;
    color: black;
    }

small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike {
    color: #777;
    }


#wp-calendar #prev a, #wp-calendar #next a {
    font-size: 9pt;
    }

#wp-calendar a {
    text-decoration: none;
    }

#wp-calendar caption {
    font: bold 1.3em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    text-align: center;
    }

#wp-calendar th {
    font-style: normal;
    text-transform: capitalize;
    }

#sidebar h2 {
    font-family: 'Lucida Grande', Verdana, Sans-Serif;
    font-size: 1.2em;
    }

/* Begin Blog Main Copy */
#blog-main {
  color: black;
  background-color: #C0C0C0;
  text-align: left;
  line-height: 1.5em;
  margin: 0 0 0 9.5em;
  padding: .5ex 1em 1em 1em;
  border-left: 1px solid rgb(216,210,195);
  min-height: 720px

}

#blog-main-dark {
  color: white;
  background-color: black;
  text-align: left;
  line-height: 1.5em;
  margin: .1em 0 0 9.5em;
  padding: .5ex 1em 1em 1em;
  border-left: 1px solid rgb(216,210,195);
}

#blog-main h1 {
  color: black;
  background-color: transparent;
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 175%;
  font-weight: bold;
  font-style: italic;
  margin: 1em 0 0 0;
  padding: 1em 0 0 0;
  border-top: 1px solid rgb(216,210,195);
}

#blog-main h2 {
  color: black;
  background-color: transparent;
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 120%;
  font-weight: bold;
  margin: 1em 0 0 0;
  padding: 1em 0 0 0;
  text-align:left

}

#blog-main a {
  color: #663300;
  background-color: transparent;
  text-decoration: underline;
}

#blog-main a:hover {
  text-decoration: none;
}

/* Captions */

.aligncenter,
div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
}

.wp-caption img {
    margin: 0;
    padding: 0;
    border: 0 none;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    padding: 0 4px 5px;
    margin: 0;
}
/* End captions */

/* Added for image alignment issued */

img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
    }

img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
    }

.alignright {
    float: right;
    }

.alignleft {
    float: left;
    }
   
.thread-alt {
  color: black;
  background-color: #9F9F9F;
}

.thread-even {
  color: black;
  background-color: #BFBFBF;
}

/* ##### mjc extra ##### */

#horizontal-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#horizontal-menu ul li {
display: inline;
padding: .2em 1em;
}

.menuLinkSelectedhoriz {
background-color: #202020;
color: white;
width: 100px;
padding: .2em;
}

.menuLinkSelected {
display: block;
background-color: #202020;
color: white;
width: 90px;
padding: .04em;
}



Jack

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #79 on: January 04, 2009, 03:55:14 PM »
Thanks Jack.

Well after renaming to proper -wide.css and uploading it... nothing changes. So my problem still exists. Help anyone? Interestingly enough, this only happens after I log in.  If I load it and not log in, the site shows as supposed to. I am, setting the login temporarily for those who need it at the following:

admin : debug

http://www.k3jae.com/whos-online.php

And, as a side note, definitely the markers on the map are a bit off.  I got someone in the Pacific Ocean, off the coast of California at the moment hitting my site at the moment...  :D
« Last Edit: January 04, 2009, 04:02:56 PM by K3JAE »


73's de K3JAE

John
K3JAE Weather Station

Offline BfdWx

  • Posts: 1,511
  • Branford Connecticut
    • Branford Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #80 on: January 04, 2009, 04:04:38 PM »
I think I am misunderstanding how to place the map portion on my page. Could someone just explain or post the proper code for the map please?

Thanks,

Jack

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #81 on: January 04, 2009, 04:10:55 PM »
simply place the following:

Code: [Select]
<?php echo get_whose_online_worldmap(); ?>


73's de K3JAE

John
K3JAE Weather Station

Offline BfdWx

  • Posts: 1,511
  • Branford Connecticut
    • Branford Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #82 on: January 04, 2009, 04:20:44 PM »
OK, Thanks. Thought I had something wrong.

Jack

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Whos Online PHP Script 2.0 for your template site
« Reply #83 on: January 04, 2009, 04:24:09 PM »
Pinto, Henrik,

Thanks for getting me going to the right direction.  Its amazing how many bots hit my pages daily.  I've got the robots.txt file uploaded here: http://relayweather.com/robots.txt

Just how long does it take to start taking effect?

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


Offline vk2him

  • Posts: 411
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Whos Online PHP Script 2.0 for your template site
« Reply #84 on: January 04, 2009, 06:28:26 PM »
@ Brian,

thanks for teh great script, I'm not sure if I have mine working properly though? The map only displays people who are currently online? I thought it would work like Pinto's original example where the pins would stay after the timeout period? Can this be setup as an option ?
Cheers

http://wx.theshackbythebeach.com/wx/wxindex.php

Ian

Offline andro700

  • Chuck
  • Posts: 3,209
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Whos Online PHP Script 2.0 for your template site
« Reply #85 on: January 04, 2009, 06:32:04 PM »
I need a favor from someone. I need the whos-online.php file that included in the latest version 2.1. Every time I download the zip file mine is dated 12/31 which is the old file. This would be greatly appreciated.

Chuck

Offline AM1234

  • Posts: 363
  • Beamsville, Ontario, Canada
    • Beamsville Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #86 on: January 04, 2009, 06:34:54 PM »
Quote
But here is an explanation that might make sense for the map accuracy issue:
The lat & lon is for the location where the the ISP recorded the IP address for.
This may no be your actual lat & lon.

To check the database itself, compare with this online demo.
http://www.maxmind.com/app/locate_ip

Mike: I have checked my ip using the above link.  It places my ip correctly in the city next to me. In previous versions (except 2.0, 2.1), I used the stand-alone world map from pinto, and it placed the locations of me and my visitors correctly.
« Last Edit: January 04, 2009, 06:40:40 PM by AM1234 »
Ann-Marie
Beamsville, Ontario, Canada

Offline n9mfk9

  • Posts: 469
  • Springfield IL, USA
Re: Whos Online PHP Script 2.0 for your template site
« Reply #87 on: January 04, 2009, 06:49:37 PM »
Hi All,
I have version up an running http://n9mfk.com
Beau

Online ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #88 on: January 04, 2009, 06:50:57 PM »
I need a favor from someone. I need the whos-online.php file that included in the latest version 2.1. Every time I download the zip file mine is dated 12/31 which is the old file. This would be greatly appreciated.

Chuck

if you still need it, let me know and I can email it to you.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,219
  • Mauston, WI, USA
    • Juneau County Weather
Re: Whos Online PHP Script 2.0 for your template site
« Reply #89 on: January 04, 2009, 06:54:05 PM »
I need a favor from someone. I need the whos-online.php file that included in the latest version 2.1. Every time I download the zip file mine is dated 12/31 which is the old file. This would be greatly appreciated.

Chuck

Chuck,

Just sent a copy to the EMail in your profile.

- Jim

 Home of NSLog NexStorm Lightning Data Manager