Realtime users online script *Possibly ajax*

Discussion in 'PHP' started by rudeturk, Jan 23, 2008.

  1. #1
    Does anyone know a users online tool/script possible ajax where it updates the users online realtime, so if one visitor leaves the website it will drop from 10 users online to 9 without reloading the page, and instead of having a setting which counts a user online for 3 mins then offline it should use a system where it tracks sessions possibly,
    can anyone help?
     
    rudeturk, Jan 23, 2008 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does it mean to "leave" a web site? What if I open another tab and never go back to the site? What if I am visiting it using a browser with Javascript turned off?
     
    SmallPotatoes, Jan 23, 2008 IP
  3. rudeturk

    rudeturk Well-Known Member

    Messages:
    884
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    120
    #3
    When i mean leave, i mean the session is over.
    then it wont use javascript but it can still use javascript, i mean who has javascript turned off these days.
     
    rudeturk, Jan 23, 2008 IP
  4. sharqi

    sharqi Guest

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It is fairly simple to create a system to do this. Obviously it depends on how your sessions are managed, but a bit of dectective work with google will have you educated in no time.
     
    sharqi, Jan 24, 2008 IP
  5. swapshop

    swapshop Peon

    Messages:
    656
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Does anyone have a idea on how to do this?
     
    swapshop, May 22, 2009 IP
  6. Love*

    Love* Well-Known Member

    Messages:
    1,739
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    165
    Digital Goods:
    1
    #6
    Live Users Online PHP Script:
    • Flat file (no database required!)
    • Real-time statistics (The ajax was done with mootools and is included inside the zip.)
    Source:
    http://vinewhip.com/live-users-online-php-script/

    Download Link:
    http://vinewhip.com/wp-content/uploads/2009/05/live_online_users_script.zip
     
    Love*, Aug 21, 2009 IP
  7. jik34

    jik34 Active Member

    Messages:
    586
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    83
    Digital Goods:
    4
    Articles:
    2
    #7
    hahaha,, funny @sharqi

    @ OP, try Cnstats Script
     
    jik34, Aug 22, 2009 IP
  8. redrum

    redrum Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    redrum, Oct 31, 2009 IP
  9. astrazone

    astrazone Member

    Messages:
    358
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #9
    wow 646 days old. are you sure that its not only you?
     
    astrazone, Oct 31, 2009 IP
  10. redrum

    redrum Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Well, I need a script just like this, That auto update afer a while.

    I have javascript running, and I tried it simultaniusly with two friends, and they got the same result with ie. It just showed the 1 user online that are default and static coded in the html-file.
     
    redrum, Oct 31, 2009 IP
  11. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    mate..there is no "real time"
    you can make it lets say the activity of online users is based on last 5 mins..
    on my site I made it 30 mins..
    coding one is very simple..
    however, you can find lots of free scripts.. google is your friend..
     
    xenon2010, Oct 31, 2009 IP
  12. redrum

    redrum Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have one now, but its not the best solution, it works like this.
    I have an iframe on the main page, the iframe contain a php script showing the users online. I use a javascript to reload the php script page.
    Since my visitors stay in the main page quite some time I want the online users to update automaticly, my visitors nerver reloads the page and I my site only contain one page.

    I do realise that it cant be the acctual online users. But a reload every 5 minutes or so is fine.

    Acctually I tried google, but I couldnt find anyone that suited me. What I want is a script that does like the one I have, but without any iframe.
     
    redrum, Oct 31, 2009 IP
  13. neil_buzzerchat_staff

    neil_buzzerchat_staff Banned

    Messages:
    470
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28