[Wdiget] Who is online

A place to share your Plugins and Extensions

[Wdiget] Who is online

Postby fc_Damir » Wed Feb 09, 2011 3:42 pm

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 155 times
fc_Damir
 
Posts: 33
Joined: Mon Jun 14, 2010 9:13 am

Re: [Wdiget] Who is online

Postby raymond » Thu Feb 10, 2011 3:16 am

Hi Damir,

Very nice widget! I like it.

Thanks for sharing.

__
Raymond
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

thanks...

Postby Zippie97 » Thu Feb 10, 2011 5:51 am

thanks, that helped me a lot!
regards,
chantal
Zippie97
 
Posts: 1
Joined: Thu Feb 10, 2011 5:51 am
Location: Germany Nortrhine-Westfalia

Re: [Wdiget] Who is online

Postby fc_Damir » Thu Feb 10, 2011 7:25 am

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.
Attachments
widget and page.zip
(2.8 KiB) Downloaded 147 times
fc_Damir
 
Posts: 33
Joined: Mon Jun 14, 2010 9:13 am

Re: [Wdiget] Who is online

Postby fc_Damir » Thu Feb 10, 2011 10:13 am

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
Attachments
whoisonline.zip
(2.53 KiB) Downloaded 165 times
fc_Damir
 
Posts: 33
Joined: Mon Jun 14, 2010 9:13 am


Return to Plugins & Widgets

Who is online

Users browsing this forum: No registered users and 1 guest

cron