110

Today the layout of the user profile page has changed. I haven't found any information on MSO about it.

Now that it's gone, how can we find "last seen" and "profile views" information in profiles?


And those blanks are also a little uncomfortable:

screenshot of Martijn Pieters's profile

14
  • 61
    Feel free to join in on the collective bafflement regarding the change on MSE: meta.stackexchange.com/q/368285/786798
    – 0Valt
    Commented Aug 6, 2021 at 10:25
  • 4
    Someone else also just asked this here.
    – Thom A
    Commented Aug 6, 2021 at 10:30
  • 1
    But.. you can't move it there. That where the very important collective information has a placeholder!
    – Scratte
    Commented Aug 6, 2021 at 10:30
  • 3
    see also Profile page is very empty, revert to old version?
    – jps
    Commented Aug 6, 2021 at 11:50
  • 2
    this needs to be featured to help wider site audience learn about the change and get to where this all started. And support request to roll it back
    – gnat
    Commented Aug 6, 2021 at 17:53
  • 3
    I think questions like this, although technically 'duplicates' of the one linked by @Oleg, should be posted as often as possible on every site's Meta (adding the bug and feature-request tags) until the recent changes to the Profile Page are reverted. Commented Aug 9, 2021 at 15:05
  • @AdrianMole I actually agree with that sentiment - the more ruckus there is regarding the change, the better, even if some will ultimately be closed as dupes of early reports such as this. That's the only way we have to show SE how unwise this decision has been.
    – 0Valt
    Commented Aug 9, 2021 at 15:08
  • 4
    @Oleg Yep! In the past, the active "Meta Community" has been called "toxic" by senior staff who didn't agree with what that Community was asking for. Time to get toxic, again? Commented Aug 9, 2021 at 15:09
  • 1
    @AdrianMole there is already a feature-request for this - Bring the "last seen" field back on "profile" page, please.
    – user692942
    Commented Aug 9, 2021 at 15:15
  • 1
    @AdrianMole oh, we already are :) Hope all this is going to get through just as it did with "thank you" and custom 404 pages gone. The way how the change was made shows utter disregard for community input.
    – 0Valt
    Commented Aug 9, 2021 at 15:41
  • 1
    @Oleg The Thanks™ misadventure was from a different team - one that did listen. This latest mess is from the team that changed line spacing and, despite much protestation, never once even considered reverting the change. Commented Aug 9, 2021 at 15:44
  • 1
    @AdrianMole yeah, that's true. Although Aaron has shown willingness to revert changes when it turned out that custom 404s are actually a beloved feature. If we all concentrate on making it loud and clear that this is not about the UI/UX being good/bad (as I see how it can actually have the effect of the team doubling-down on the decision) but the decisions made went against everything community stands for and what SE has been trying to convince us for the past months they support too, it might just work.
    – 0Valt
    Commented Aug 9, 2021 at 15:48
  • 2
    @zcoop98 I swear I fixed that typo before submitting... Freudian slip!
    – TylerH
    Commented Aug 9, 2021 at 17:28
  • 1
    It partly came back. As this is being used as a duplicate target, it ought to be indicated somehow. Sample: "Last seen more than 4 years ago" Commented May 6, 2022 at 11:20

2 Answers 2

81

Stack Exchange API provides a way to get this information through the /users/{ids} endpoint:

const endpoint = "https://api.stackexchange.com/2.3/users/";
$(btn).on('click', function() {
  const params = "?order=desc&site=" + sitename.value + "&filter=!40D72h-7nG92Z1_td";
  const url = endpoint + userid.value + params;
  $.get(url, function(response) {
    if (response.items.length == 0) {
      $(result).html("No user with that id found");
    } else {
      const userData = response.items[0];
      const lastSeen = new Date(userData.last_access_date * 1000);
      const viewCount = userData.view_count;
      const joinDate = new Date(userData.creation_date * 1000);
      $(result).html("Last seen: " + lastSeen.toLocaleString() + "<br>Profile views: " + viewCount + "<br>Member since: " + joinDate.toLocaleString());
    }
  })
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Sitename: <input placeholder="site-name" id="sitename" value="stackoverflow">
<br/><br/> User ID: <input type="number" placeholder="user-id" id="userid">
<button id="btn">Check</button>
<hr>
<div id="result"></div>


A userscript that I wrote (LegacyProfiles) is available that automatically loads this information when you view a user's profile.

9
  • 3
    Great user script. There is a minor bug though: it uses plural even when it should be singular, for example "last seen 1 hours ago" (screenshot). It's not a big deal, but it would be nice if you could fix it if it's not too difficult. Commented Aug 19, 2021 at 18:37
  • 2
    @DonaldDuck Thanks for the report. Patched in v1.8
    – Spectric
    Commented Aug 20, 2021 at 15:34
  • 1
    Hi @Spectric. I really like the script. Minor Bug though: when you press check without writing something in the input then this will be displayed: i.sstatic.net/8eGrA.png Commented Sep 3, 2021 at 14:13
  • OK..., works..., finally...!, some Instructions missing on the SE Post, => first need to install 'TamperMonkey', I didn't/won't upvote (yet), (+ can't vote/comment on SE, need 100-Rep, only have 99-Rep), but I never upvote when People use "recent"/"last"/"latest". + not clear what the Links on "Un/Minified" are, => simply open some '.js' File as '.txt' File in the Browser... // But OK, it works "in the end" (v2.2 'Unminified' on FF98)... Doesn't work though in FF55 + 'Greasemonkey' v4.1. (+0.9 then, ah-ah...!)
    – chivracq
    Commented May 6, 2022 at 5:51
  • Alright, still got my Upvote, ah-ah...!, nice to get the Last seen Info back, that's useful (needed!) Info for Answerers to deal with the Follow-up from Askers... (and to be more patient), and I had "forgotten" about the Profile Views, ah-ah...! // Script in v2.2. is quite different from the one posted in this Answer, I might "tweak" it to display the Date in International Format (2022-06-05) rather than the current "06/05/2022", + split the long Lines to make the Script a bit more readable without Horizontal Scrolling, but it works nicely... // How much is the API Limit btw...?
    – chivracq
    Commented May 6, 2022 at 17:08
  • 1
    @chivracq The API limit is 300, but it can be extended to 10000 if you register an API key.
    – Spectric
    Commented May 6, 2022 at 18:08
  • OK, API Key can be registered here indeed, not "clear" what needs to be filled in for OAuth Domain and Enable Client Side OAuth Flow, but I haven't read any Documentation yet... // And hum, the "Default" Script v2.2. already contains an API Key ("LRILX..."), so I guess all Users using the "Default" Script share the 10,000 Calls for that Default API Key together... OK, I'll "see" with more Practice if I need to register a "Personal" API Key..., or 300 would already be more than enough for myself alone... That's per Day I reckon...
    – chivracq
    Commented May 6, 2022 at 23:15
  • This does not work. I just typed some random alphabets and I gave a result which is not valid. See this image Commented May 7, 2022 at 8:12
  • 4
    Typing out random strings into numeric inputs and taking advantage of the browser-specific behavior of allowing non-digits, then claiming "this does not work" is a bit unfair to the userscript, @Sambhav.K. Do feel free to submit a bug report on the Stack Apps post, though.
    – 0Valt
    Commented May 7, 2022 at 15:11
26

Here’s a solution for last seen:

In the user’s profile, click on "network profile" in the top right and then look at their accounts tab. This won’t show the exact time of day they visited, and I don’t think all users have a network profile, but it’s something.

Here’s yours, for an example: https://stackexchange.com/users/16353407/jizhihaosama?tab=accounts

3
  • 1
    I think there is a bug in it. "Last seen" seems to be capped at 25 days. For instance, I don't think I have visited any of the obscure cryptocurrency sites in the last 25 days, like "EOS.IO" (or "Martial Arts" or "Esperanto Language"). Abandoned accounts can't be detected this way. Commented Aug 12, 2021 at 8:37
  • Mine is properly showing dates well past 25 days (scroll to the bottom, tested while not logged in): stackexchange.com/users/6979/james-skemp?tab=accounts Commented Aug 15, 2021 at 19:11
  • A user can be a member of 50 sites but if they decide to hide their 49 accounts on each site, visitors will only see one community on the profile page's "communities" and that user won't have a network account (which is daft because being a member of one site surely means you have an account on the network). This means it's impossible to view a person's last activity on any of the sites they participate in.
    – Mari-Lou A
    Commented Oct 24, 2021 at 22:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .