Page 1 of 1

[Wdiget] Who is online

PostPosted: Wed Feb 09, 2011 3:42 pm
by fc_Damir
Hi to all,

I want to share with us this new widget for raxan that display
who is online info like country, flags and number of user per country
using ip info and api of hostip.

Note:

I have some problem on my server when use

file_get_contents('http://api.hostip.info/?ip='.$stringIp);

or $p = new RaxanWebPage('http://api.hostip.info/?ip='.$stringIp);

because on my server direct access on remote file is not allowed.

In this case I use curl.
Widget first try load with raxan web page and if failed try use curl.

Nice tutorial that help me build this who is online widget for raxan: http://tutorialzine.com/2010/03/who-is- ... ql-jquery/



Good coding and enjoy

whoisonline.zip
(125.5 KiB) Downloaded 399 times

Re: [Wdiget] Who is online

PostPosted: Thu Feb 10, 2011 3:16 am
by raymond
Hi Damir,

Very nice widget! I like it.

Thanks for sharing.

__
Raymond

thanks...

PostPosted: Thu Feb 10, 2011 5:51 am
by Zippie97
thanks, that helped me a lot!
regards,
chantal

Re: [Wdiget] Who is online

PostPosted: Thu Feb 10, 2011 7:25 am
by fc_Damir
Hi,

there is a little change on the widget.

Now on page is only necessary add:

<div id="visitors"></div>

and all html code is display into visitors id or id that you want.

Re: [Wdiget] Who is online

PostPosted: Thu Feb 10, 2011 10:13 am
by fc_Damir
Hi,

in this version I have add two event that show/hide panel with visitors.

demo with some dummy data: http://dev.dgweb.ch/whoisonline.php

Best regards
Damir