Welcome to our community

Prakhar

After logging in, I can't see the "you've last visited" information. It would be nice if it is designed as a click-able link and clicking it gives the entire history of our MHB login sessions.

MarkFL

Staff member
After logging in, I can't see the "you've last visited" information.
Can you post a screenshot of what you are talking about?

It would be nice if it is designed as a click-able link and clicking it gives the entire history of our MHB login sessions.
Storing the entire session history for every user in the database would be quite impractical and take up a lot of space on the server.

Prakhar

Can you post a screenshot of what you are talking about?
I mean to say that every user should be able to see when they last visited the website after logging in.

For example: Hello Prakhar! You last visited: 15 June 2015 at 3:30 p.m.
Storing the entire session history for every user in the database would be quite impractical and take up a lot of space on the server.
Not all, just the last few.

Prakhar

If someone logs in with the "Remember?" option checked, he/she doesn't automatically get logged out which is as per the "Remember?" option. But, can we have such a feature that when someone keeps the "Remember?" option checked, then, while logging in next time, there is no need to type the username. Only the password needs to be typed (as seen in GMail) and there is a link below to log in with a different username. This might not be (so) useful, but still it saves the typing of the username every time.

MarkFL

Staff member
If someone checks the "Remember Me?" option, then they will not need to log in again, until they actually log out. If they do log out, then their browser should remember the username upon typing just the first letter. Multiple accounts is not something we encourage though.

Prakhar

Multiple accounts is not something we encourage though.
I was just considering the case of a shared computer.

MarkFL

Staff member
The last visit time of a user is already stored in a user's cached information, and with a simple plugin and template edit, it can be displayed. This is an example of this on my local dev site:

Is this the kind of thing you had in mind?

Prakhar

Yes I meant the same.

MarkFL

Staff member
Okay, now the next issue becomes where to display this information such that it does not push down the main part of our pages (the information between the breadcrumb and the footer) nor get in the way on the small screen style. Any suggestions?

Prakhar

Towards the right but below the bread crumb, there is an MHB search bar and below that is Current Time. Maybe below the Current Time? Or maybe, the Current Time and Last Visited information is displayed just above the search bar but below the brown border of the blue rectangle and the search bar comes just above the "We Recommend..." line. Whatever is more suitable to you. I would prefer my second option.

MarkFL

Staff member
Towards the right but below the bread crumb, there is an MHB search bar and below that is Current Time. Maybe below the Current Time? Or maybe, the Current Time and Last Visited information is displayed just above the search bar but below the brown border of the blue rectangle and the search bar comes just above the "We Recommend..." line. Whatever is more suitable to you. I would prefer my second option.
The breadcrumb has to have its own line all to itself because of long thread titles when viewing threads. Now, we could code it such that this information only displays on the home page and uses CSS positioning so that it does not push anything down. I will play around with this idea and report back soon.

MarkFL

Staff member
Okay, this is what I came up with based on your second suggestion, and it doesn't interfere with long breadcrumbs or push anything down, so it can display on all pages.

Would that work for you?

Prakhar

Yes that is nice. It would be even better if the "current time" and "last visited" are both aligned by their colons, just like this:

$\begin{array}{rl}\text{Current Time: }& \text{07:30} \\ \text{You Last Visited: }& \text{07:01 (August 7, 2015)} \end{array}$

MarkFL

Staff member
I like your idea of aligning the descriptors, however I think it would look better if the times were right-aligned like so:

What do you think?

Ackbach

Indicium Physicus
Staff member
I don't know - I think Prakhar's alignment is a tad easier to read, and not just because it's a larger font in this thread.

anemone

MHB POTW Director
Staff member
In this case, I am in favor of Prakhar's alignment.

MarkFL

Staff member
I don't know - I think Prakhar's alignment is a tad easier to read, and not just because it's a larger font in this thread.
Easy enough to do...how's this?

anemone

MHB POTW Director
Staff member
Easy enough to do...how's this?
That looks perfect to me! Good job, Mark!

Prakhar

Easy enough to do...how's this?
Yes, that is sufficient and informative.