WordPress.org

Ready to get started?Download WordPress

Forums

Who is Online? (10 posts)

  1. Mark (podz)
    Support Maven
    Posted 10 years ago #

    I'm fairly sure this is not what you mean in some ways, but I've found this script very useful.
    It tracks the following:
    Date, ip, browser, processor, JavaScript Disabled, screen dimensions, color depth, referrer, cookies supported.
    It's very simple to install too.
    Could be useful ?
    http://poeticpollution.net/scripts/UserFingerprints/php/

  2. Lester Chan
    Member
    Posted 10 years ago #

    @rupe: I had done it in b2 before and I will be porting it over soon when I have the time. =D

  3. Laughinglizard
    Member
    Posted 10 years ago #

    I have a solution. Check out http://dinki.mine.nu/word/b2-img/whoisonline.txt
    Peace

  4. Lester Chan
    Member
    Posted 10 years ago #

    hey LL, why not use $wpdb instead of php's mysql functions?

  5. Laughinglizard
    Member
    Posted 10 years ago #

    I could, it is just to make it cross application compatible.

  6. Lester Chan
    Member
    Posted 10 years ago #

    oh i see. =D

  7. davidchait
    Member
    Posted 10 years ago #

    Yeah, you can use the referer library mentioned elsewhere for this same purpose, just add the query function to find last accesses by time. You could also potentially stash the user's ID if they were logged into your site, and with that display names..
    On the last point, I actually have significantly updated the refererLib code on my site, including the use of $wpdb specificially to prevent any chance of opening a second connection the to SQL server -- not wanting to count on the mysql fns to do so. I agree with the desire to keep things cross-app-compatible, yet for actual release I'd hate to have a half-dozen connections to my sql server (which isn't the same box at my hosting site as it is on my home test box!)...
    =d
    http://www.chait.net

  8. Rupe
    Member
    Posted 10 years ago #

    Thanks for all the help folks.
    One question LL...how do you make the text that shows up obey the regular font structure of your CSS file? In other words how do I make "There are 100 users Online" a certain size and color font to blend in with the rest of my site?

  9. Mark (podz)
    Support Maven
    Posted 10 years ago #

    You need to encase the code in a div.
    <div class="XXX">
    put your online code calls here
    </div>
    Go to your site, select 'View Source' and scroll through it to see which font you want, and which div class covers that, then copy that to the above.
    That make sense ?

  10. Laughinglizard
    Member
    Posted 10 years ago #

    Sorry about that Rupe. The thread got lost :-) podz answer above should work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.