WordPress.org

Ready to get started?Download WordPress

Forums

Is There a way to display logged in usernames? (7 posts)

  1. tomm10
    Member
    Posted 8 years ago #

    Is there a plugin out there or a simple adjustment to a script that will allow the usernames of those registered users to my site who are currently logged on to be viewed?

    I could see this in two ways. One would features a simple list of only logged in usernames. The other would be a list of all usernames with only those logged in highlighted.

    It seems like this should be a fairly simple thing but I guess its just not in demand. Anyone feel like a challenge?

  2. pibby
    Member
    Posted 8 years ago #

    I'm looking to do this as well. Any ideas?

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

  4. pibby
    Member
    Posted 8 years ago #

    That thread did not have the answer. It shows how to echo the user (as in singular) that is logged in. If Admin is logged in, then it will show the name Admin only to the logged in Admin.

    I want to see all of the users that are logged in, not just a message showing only my name when I am logged in. That code can be used to do- "Welcome to the site, UserName."

    What I'm looking for is an actual list in my sidebar, for instance, that shows anyone who is currently logged in.

  5. Can
    Member
    Posted 8 years ago #

    I'm also looking for something like this. Except that I'd like the Last Visit (Date) to be added as well.

    Maybe a Member-Tracking Plugin that will have most of what's on this member list:

    Member01: Erin
    Join Date: January 10, 1994
    Last Visit: December 01, 1994
    IP (optional):

    Member02: Jose
    Join Date: September 19, 2003
    Last Visit: September 25, 2003
    IP (optional):

  6. pibby
    Member
    Posted 8 years ago #

    I'm still trying to figure out a solution for displaying a list of logged in users on the pages of a site.

    I've come across things like this, but they show only the username to the logged in person.
    <?php
    get_currentuserinfo();
    echo "Logged in as $user_login.";
    ?>

    I've come across this which can list all of the authors registered on the site, but does not show which of them is currently logged in.
    <?php list_authors(); ?>

    Is there a way to adapt either of these tags to list all of the users logged in?

  7. heyrsmith
    Member
    Posted 8 years ago #

    All: Try out the User Online Plugin by GaMerZ. It might be just what you are lolooking for. Make sure that you follow the install instructions CAREFULLY, as it requires that you add some tables to your DB. It does it for you automatically, but you have to follow the steps and then delete a file at the end. It works great for me in 2.0 installations, 1.5 does not always get the user name, but it does show number of users online, ip address and what page they are currently browsing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.