Weather-Watch.com
July 04, 2009, 01:52:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Members: 8,160  Posts: 313,109  Topics: 34,636
Please welcome Han, our newest member.

Latest versions: WD - 10.37O  WDL - 6.05  MML - 1.03
 News:
Check out the new FAQs (Frequently Asked Questions) board for a growing list of hints, tips and diagnostic suggestions.
  Advanced Search
   Home   Bug Tracker Photo Gallery Wiki Chat Calendar Search Login Register Help  
Pages: 1 ... 4 5 [6] 7 8 ... 47
  Print  |  « previous  |  next »  |  Go Down  
Author Topic: Who's Online PHP Script 2.0 for your template site  (Read 38265 times)
0 Members and 1 Guest are viewing this topic.
pinto
Weather Guru
**
Online Online

Location: Belgium
Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638
Local Time: Saturday 16:52



WWW
« 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:
User-agent: *
Disallow:/wxwuhistory.php
Disallow:/wxradar.php

save it as robots.txt and upload
Logged

MCHALLIS
Rain Maker
***
Offline Offline

Location: Long Beach, WA USA
Station Type: Davis VP2+
Posts: 1,604
Local Time: Saturday 07:52



WWW
« 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
Logged

K3JAE
Senior Forecaster
*
Offline Offline

Location: Fayette County, PA., USA
Station Type: LaCrosse WS-2308
Posts: 340
Local Time: Saturday 13:52



WWW
« 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...  Embarassed  d'oh!
« Last Edit: January 04, 2009, 03:29:09 PM by K3JAE » Logged

73's de K3JAE
John

K3JAE Weather Station


YOUR CHARACTER CAN BE DEFINED BY HOW WELL YOU TREAT SOMEONE WHO CAN DO ABSOLUTELY NOTHING FOR YOU.
firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,197
Local Time: Saturday 09:52



WWW
« Reply #78 on: January 04, 2009, 03:41:25 PM »

Wide CSS...

Code:
/**********************************
 * 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
Logged

K3JAE
Senior Forecaster
*
Offline Offline

Location: Fayette County, PA., USA
Station Type: LaCrosse WS-2308
Posts: 340
Local Time: Saturday 13:52



WWW
« 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...  Very Happy
« Last Edit: January 04, 2009, 04:02:56 PM by K3JAE » Logged

73's de K3JAE
John

K3JAE Weather Station


YOUR CHARACTER CAN BE DEFINED BY HOW WELL YOU TREAT SOMEONE WHO CAN DO ABSOLUTELY NOTHING FOR YOU.
firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,197
Local Time: Saturday 09:52



WWW
« 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
Logged

K3JAE
Senior Forecaster
*
Offline Offline

Location: Fayette County, PA., USA
Station Type: LaCrosse WS-2308
Posts: 340
Local Time: Saturday 13:52



WWW
« Reply #81 on: January 04, 2009, 04:10:55 PM »

simply place the following:

Code:
<?php echo get_whose_online_worldmap(); ?>
Logged

73's de K3JAE
John

K3JAE Weather Station


YOUR CHARACTER CAN BE DEFINED BY HOW WELL YOU TREAT SOMEONE WHO CAN DO ABSOLUTELY NOTHING FOR YOU.
firewall
Rain Maker
***
Offline Offline

Location: Branford Connecticut
Station Type: Davis VP-2
Posts: 1,197
Local Time: Saturday 09:52



WWW
« Reply #82 on: January 04, 2009, 04:20:44 PM »

OK, Thanks. Thought I had something wrong.

Jack
Logged

mth
Weather Guru
**
Offline Offline

Location: Baltimore, Maryland
Station Type: LaCrosse 2315
Posts: 898
Local Time: Saturday 10:52



WWW
« 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
Logged

Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com
vk2him
Senior Forecaster
*
Offline Offline

Location: Gerroa, NSW, Australia
Station Type: La Crosse 2307
Posts: 245
Local Time: Sunday 00:52



WWW
« 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
Logged

andro700
Chuck
Junior Weather Controller
****
Offline Offline

Location: Glendive, Montana
Station Type: Davis VP2 w/ heater and USB Data Logger
Posts: 2,886
Local Time: Saturday 08:52



WWW
« 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
Logged

AM1234
Senior Forecaster
*
Offline Offline

Location: Beamsville, Ontario, Canada
Station Type: Davis VP2+ Wireless
Posts: 242
Local Time: Saturday 09:52



WWW
« 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 » Logged

Ann-Marie
Beamsville, Ontario, Canada
n9mfk9
Senior Forecaster
*
Offline Offline

Location: Springfield IL, USA
Station Type: Davis Vantage Pro2 Datalogger 6510SER
Posts: 463
Local Time: Saturday 09:52


WWW
« Reply #87 on: January 04, 2009, 06:49:37 PM »

Hi All,
I have version up an running http://n9mfk.com
Beau
Logged
ALITTLEweird1
Mark
Rain Maker
***
Offline Offline

Location: Snoqualmie,WA
Station Type: WS-2315 + 1-Wire Solar + Logitech Quickcam Pro 9000 / Win XP
Posts: 1,907
Local Time: Saturday 07:52



WWW
« 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.
Logged

jmcmurry
Jim McMurry
Rain Maker
***
Offline Offline

Location: Mauston, WI, USA
Station Type: Davis Vantage Pro 2 Plus Wireless. StartWatch, VirtualVP, Boltek/NexStorm, GR3 & WxSim
Posts: 1,278
Local Time: Saturday 07:52



WWW
« 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
Logged


 Home of NSLog NexStorm Lightning Data Manager
Pages: 1 ... 4 5 [6] 7 8 ... 47
  Print  |  « previous  |  next »  |  Go Up  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!