Whos Online Script

Hi Mike

Thank you very much for the country flag add-on.

Unfortunately I cant get it working (I havent modified it to show the owner of IP)

It looks like it looks for g.png flag all the time (see attached pic)

What can be the problem?

Best regards,

Henrik


Well I now have it working but to do this I have had to convert my who’s online page to php which means it’s different from all the other pages but I can live with that. Logging in the database works fine with my standard pages, it just means that I have not yet found a method of showing the stats on any other pages. I’ll work on that bit a bit more. This is all on the version without the country flag showing.

Stuart

You can now see my page online here, if it works correctly you should not be able to see any details like IP or which page is being looked at. However when I view it I have all the viewing options enabled. I modified the page script to lookup my ip address and enable the viewing options if it is my pc but everyone else just sees the basic info - hopefully :wink: At present this still is without the flag, as I’ve not worked on that yet.

Stuart

Stuart,

Looks great from here, just like you described it.

  • Jim

Henrik,

I’m getting the same thing. I checked the table on my host and it looks fine with over 87,000 records in it. We may have to wait for Mike.

  • Jim

Sorry about that Henrik and Jim (anybody else), version 1.07 had an unfinished file in it. I forgot to copy over the finished file from my server.

Please download again:

Version: 1.08 21-Dec-2008

  • bug fix, 1.07 was broken, the country flags all showed “g”
    to upgrade from 1.07, replace include-whos-online-header.php

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

If you upgrade from version 1.07 the people still online will have country “g” until they leave for at least 15 minutes and come back.

Sorry Stuart, you have an unusual installation I am not able to support. I suspect that the values that are expected to be carried from one whos online include to another are not working correctly because of the way you are using PHP in the shtml pages. That is something I am not able to test and debug. Hope you understand.

Mike,

Version 1.08 works great for me now with that change.

Thanks. - Jim

Hi Mike

Thank you very much - I have it up and running now:

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

Best regards,

Henrik

Mike, No problem, the only change I have made to the script itself is to add code to the ‘page’ script to detect if its my IP address and change the options to show IP address and page being viewed, this will enable me to put it up as a public page but folks will not be able to see IP addresses and which pages others are looking at but I can. Having created a PHP page for my who’s online page when I get time I may well convert over all the others, however the code to add each person viewing a web page works just fine using SSIs I just had to place the statements in a PHP script file to include. This way I can use virtually any update you come up with with almost no changes.

The only issue I do have is adding it to my guestbook so I can see who is viewing that, the problem there is that the whole guestbook is a huge PERL program which builds the web pages dynamically to display. I’m still trying to work that one out.

Stuart

The flags are showing with version 1.08, and I did not have to open a ticket with e-rice. Thanks!
http://www.nhpaweather.com/whos-online.php

Thanks for the great script. I modified it a little to add the city and country name. Fantastic job, thanks again.

http://www.gartholson.net/horca/weather/php/whos-online/whos-online.php

Thanks ever so much for the flags…looks great :slight_smile:

I am wondering a bit if anyone has considered the possibility of this being a privacy issue? [-X

I can understand wanting this type of information for you the site owner to know who is currently on your site, but I’m not so sure that visitors to your site would be all that keen on having their IP published to anyone else looking at the page.

There are a number of visitor location services etc, that provide location information about who is visiting a site, but I don’t know of any of them that publish the IP to anyone but the owner of the website.

For example, I have visitor information on my weather page:

http://www.tnetweather.com/visitors.php

It give nice maps etc, but it does not reveal the users IP information, only general location info. I as the site owner, can go to their portal and See the specific IP’s but no one but the owner of the website can.

Kevin this is why you can decide when you install this script how much info you want to show by default. I dont show IP or url details to anyone, that only shows if it is me looking at he page. The decision is entirely up to the owner of the website.

Stuart

I just clicked on your link. Under IP it shows Corona, CA. If I click on the IP address it shows Wichita, KS. I live in Shreveport, LA. Just thought I’d let you know.

Stuart, I understand that.

I just was bringing up the issue so that people think about it for a bit. Would you want to have your residential IP published to anyone else that views the page? How many of your visitors would visit your site if they knew you were publishing their IP’s to anyone to see? Have you notified your visitors that you are publishing their private IP’s for anyone to view?

If this were on a commercial website in the US, it would run afoul of FTC privacy issues (that and lack of a posted privacy policy). I would not be surprised if there are EU privacy laws as well as they tend to be more critical to that type of stuff.

There is absolutely no issues if the the website owner can view it though, the issue is making that information public for anyone to view.

I agree with you 100%. I discussed this privately with MCHALLIS when the script was originally published without the option to not display the IP’s.

I’m gonna expose my real ignorance with the following question…how often does the database get updated and where in the code is the updating done?

Mike,

Wow…very nice script! :slight_smile: I’ve got it completely installed and running.
http://relayweather.com/whos-online.php

One question though: I see that your site will expand to widescreen when going to your “who-is”. I also need mine to do the same but don’t want the Theme Switcher selection to appear on the menubar. I just need to default the whos-online.php to widescreen only. I’ve added the new “include-style-switcher.php”. Is there a way to accomplish this??

Again, thanks for the support!

Cheers,
Michael

EDIT::: Got it…I just deleted the code that calls the display of the theme switch in menubar.php