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.

Sort Members by IP Address

April 23, 2009 8:16pm

Subscribe [2]
  • #1 / Apr 23, 2009 8:16pm

    clwhitmire

    6 posts

    Hello-

    Is it possible to sort members by their IP addresses?

    Thank you for your time.

    CW

  • #2 / Apr 24, 2009 1:28am

    John Henry Donovan

    12339 posts

    clwhitmire,

    Do you want to do this in the member templates, or on a ‘regular’ template?

  • #3 / Apr 26, 2009 11:56am

    clwhitmire

    6 posts

    I think in the member template. Right now, I’m going member-by-member, doing an IP search for each address, for over 1,000 members. I just thought there might be an easier way to identify multiples.

  • #4 / Apr 26, 2009 1:38pm

    Greg Aker

    6022 posts

    Would the ip search form help?  Admin ›  Members and Groups ›  Member Search

    -greg

  • #5 / Apr 26, 2009 3:44pm

    clwhitmire

    6 posts

    I’ve been using the IP search. I still have to enter all the existing IP addresses one at a time to search for duplicates. I was just hoping there was a way to sort them, to save time and see where my multiples are.

  • #6 / Apr 26, 2009 4:09pm

    Greg Aker

    6022 posts

    ah, okay.

    What about running the following in a template:

    {exp:query sql="SELECT member_id, group_id, username, screen_name, email, ip_address from exp_members ORDER BY ip_address DESC"}
    
        Member Id: {member_id}
    
        Group Id: {group_id}
    
        Username: {username}
    
        Screen name: {screen_name}
    
        Email Address: {email}
    
        IP Address: {ip_address}
    
        <hr >
        
    
    {/exp:query}

    Or, you can run the same query at:  Admin ›  Utilities ›  SQL Manager ›  Database Query Form

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases