cloudy

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

0 Members and 1 Guest are viewing this topic.

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 #90 on: January 04, 2009, 06:59:56 PM »
Yes I need it if you don't mind. The include files are good they are dated 1/3. Like I said I need just that one file.

Chuck

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 #91 on: January 04, 2009, 08:46:00 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

That is the way it is designed, it shows "who is online", sorry if you want it differently.
Pinto's original example was no different regarding that.
« Last Edit: January 04, 2009, 08:56:02 PM by MCHALLIS »

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 #92 on: January 04, 2009, 08:53:02 PM »
I think I have everything going okay. Thanks for all the help on this folks. Much appreciated.

Chuck

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 #93 on: January 04, 2009, 08:55:26 PM »
The next version will have this change:

I accidentally used the possessive whose in the function name

edit:
include-whos-online-header.php

change:
Code: [Select]
function get_whose_online_worldmap () {
to:
Code: [Select]
function get_whos_online_worldmap () {
Then also drop the "e" on the tag where you display the map

<?php echo get_whos_online_worldmap(); ?>

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 #94 on: January 04, 2009, 08:57:44 PM »
Could we do that now or what till the update comes out Mike?

Chuck

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 #95 on: January 04, 2009, 09:08:04 PM »
Chuck, you can do it now.

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 #96 on: January 04, 2009, 09:11:26 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

Can you attach your Settings.php as a Settings.php.txt file, I will have a look.

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 #97 on: January 04, 2009, 09:21:08 PM »
Thanks Mike. I am having issues today with my ftp. I am getting max connections (5) errors. The only thing I have ftping now is WD and Cumulus. Cumulus I have ftping every 45 minutes and the realtime function every 15 seconds. I don't know if there is a program or two that is not releasing after being done. I stopped GRLevel3, Weatherlink and Graphweather as well. Never had much issues with this. I had to downgrade my internet to 256 up and down, had 3MB and 512 up before.

Chuck

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #98 on: January 04, 2009, 09:28:35 PM »
I asked this earlier and got no response so will ask again:

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.

I am not using -narrow.css or -wide.css files but using weather-screen-php.css and/or weather-print-php.css for fliers I believe.

It will not go to a wide display AFTER I log into the whos-online.php.  Only page I prefer to go wide is this page.  How can I fix this?

I am, setting the login temporarily for those who need it at the following:

admin : debug

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

Here is the Settings.php as requested:


« Last Edit: January 04, 2009, 09:31:06 PM by K3JAE »


73's de K3JAE

John
K3JAE Weather Station

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 #99 on: January 04, 2009, 09:52:54 PM »
Problem:
Sometimes location pins are not in their proper locations or even in the ocean.

This is a known weakness of the current geolocation technology.

Here is an explanation that might make sense for the geolocation inaccuracy issue:
Sometimes geolocation is close to perfect, sometimes not. Usually only about 85% accuracy.
The lat & lon, city, state parameters the database produces is for the location the ISP has reported for your current IP address.
Many ISPs share one block, or several blocks, of IP addresses with all their users.
Each time you connect you may get a different IP address assignment with different location details.
So the accuracy can even vary according to your current IP assignment.
This can cause the reported city, state, lat & lon from the IP to vary from your actual location.

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

Offline vk2him

  • Posts: 411
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Whos Online PHP Script 2.0 for your template site
« Reply #100 on: January 04, 2009, 10:03:17 PM »
That is the way it is designed, it shows "who is online", sorry if you want it differently.
Pinto's original example was no different regarding that.

Hi,

Pintos original code displayed all the visitors as he used the location_info table  ...

$query  = "SELECT longitude, latitude FROM location_info";

I think your code uses the whos_online entry?

I wonder if you would consider adding an option to display all visitors using one colour pin and the currently online visitors using a different colour?

Thanks

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 #101 on: January 04, 2009, 10:05:41 PM »
K3JAE

I wonder is $_SERVER['REQUEST_URI'] is not working on your server.

Please make a test.php file with this code in it.

Code: [Select]
<?php

echo 'REQUEST_URI: '$_SERVER['REQUEST_URI'];

?>


Visit the URL, then tell me what it prints

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 #102 on: January 04, 2009, 10:12:01 PM »
Hi,

Pintos original code displayed all the visitors as he used the location_info table  ...

$query  = "SELECT longitude, latitude FROM location_info";

I think your code uses the whos_online entry?

I wonder if you would consider adding an option to display all visitors using one colour pin and the currently online visitors using a different colour?

Thanks

The location_info table is no longer used in this version.
I am going to pass on that feature at this time, sorry.
Thanks for the suggestion, I can add it to a wish list.

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Whos Online PHP Script 2.0 for your template site
« Reply #103 on: January 04, 2009, 10:13:06 PM »
Quote
K3JAE

I wonder is $_SERVER['REQUEST_URI'] is not working on your server.

Please make a test.php file with this code in it.


Code:
<?php

echo 'REQUEST_URI: '. $_SERVER['REQUEST_URI'];

?>

Visit the URL, then tell me what it prints

Code: [Select]
REQUEST_URI: /test.phpis the response received when running test.php


73's de K3JAE

John
K3JAE Weather Station

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 #104 on: January 04, 2009, 10:22:43 PM »
Code: [Select]
REQUEST_URI: /test.phpis the response received when running test.php

The problem is you are not using one of the template switcher styles:
$SITE['CSSscreen']      = 'weather-screen-php.css'; // 800px design 

weather-screen-php.css is not one of them.

Here is how you can make it work though
rename your weather-screen-php.css to weather-screen-php-narrow.css
make a copy of weather-screen-php.css and mane it weather-screen-php-wide.css

then edit the css of weather-screen-php-wide.css to make it wide, just one change is needed for that

change

#page {
  margin: 20px auto;
  color: black;
  background-color: white;
  padding: 0;
  width: 800px;
  border: 1px solid #959596;
}

to:

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

Then use the setting
$SITE['CSSscreen']      = 'weather-screen-php-narrow.css'; // 800px design 


« Last Edit: January 04, 2009, 10:44:31 PM by MCHALLIS »