ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How can I show the users currently online without requiring login?

September 16, 2010 5:07pm

Subscribe [3]
  • #1 / Sep 16, 2010 5:07pm

    wondermade

    53 posts

    The statistics module seems to only display the list of online people to other people who are logged in. Is another way to list that same info?

  • #2 / Sep 16, 2010 9:54pm

    Jarrett Barnett

    31 posts

    That’s kind of interesting. You’d think it would show whether you were logged in or not (as there is a {logged_in} variable that can always be added to restrict viewing to the public).

    None-the-less, there’s always the Query Module:

    {exp:query sql="
        SELECT m.screen_name FROM exp_members AS m
        INNER JOIN exp_sessions AS s ON m.member_id = s.member_id
    "}
        {screen_name}
    {/exp:query}


    NOTE: That you may need to change exp_ to ee_ or whatever your db prefix is (if your using a custom one). If your not sure if your using a custom one, you can try checking your /system/config.php file

  • #3 / Sep 17, 2010 9:43am

    Ingmar

    29245 posts

    Where are you displaying this info, wondermade? How? Also, what version and build of EE are you using?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases