Author Topic: Drop-down list of users  (Read 998 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1532
  • Last Login:Today at 02:35:59 pm
Drop-down list of users
« on: June 07, 2016, 10:29:57 pm »
As code refactoring continues, I've enhanced the mechanism by which the user can be specified for the main overall stats page for a user:

http://tm.teresco.org/user/

As before, you can specify user with the u= query string parameter and it's remembered in a cookie once you do that, but the free text input field has been replaced with a list of all travelers who had at least one clinched segment somewhere in their list file.

I tried it out quite a bit and was confident enough to put it right onto the main site.  It could certainly still have problems, so please let me know if you notice any.

I plan to do the same with other pages, where system lists and region lists will be drop-downs as well.

Offline Quidditch33

  • Milwaukeye
  • Full Member
  • ***
  • Posts: 116
  • Gender: Male
  • Last Login:March 31, 2019, 04:05:30 pm
  • I want to be the first one to collect them all!
    • Travel Mapping User Page
Re: Drop-down list of users
« Reply #1 on: June 08, 2016, 12:23:50 pm »
Everything looks and works fine for me.

Thanks,
-The journey of a thousand miles begins with a single step... on the gas.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1753
  • Last Login:Today at 04:50:34 am
Re: Drop-down list of users
« Reply #2 on: June 08, 2016, 02:09:04 pm »
Thanks. I don't like that the "Select User" button must be pressed...
I'd prefer data to be loaded when clicking on a user or pressing Enter.

Offline Quidditch33

  • Milwaukeye
  • Full Member
  • ***
  • Posts: 116
  • Gender: Male
  • Last Login:March 31, 2019, 04:05:30 pm
  • I want to be the first one to collect them all!
    • Travel Mapping User Page
Re: Drop-down list of users
« Reply #3 on: June 08, 2016, 05:26:19 pm »
Yeah, just like the old CHM.

Thanks,
-The journey of a thousand miles begins with a single step... on the gas.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1532
  • Last Login:Today at 02:35:59 pm
Re: Drop-down list of users
« Reply #4 on: June 13, 2016, 10:41:00 pm »
For consistency across the pages that now share the code for the generation and handling of the user dropdown, I'm going to leave it as is for now.  What I don't want to happen is on those pages where there are multiple things to choose, I want the user to be able to choose them all before regenerating the page (which for users with lots of travels can be pretty slow in some cases).