Travel Mapping
Web Design Discussion => General Web Design Discussion => Topic started by: Jim on February 14, 2021, 11:20:15 am
-
On tmstage.teresco.org, I have an implementation of https://github.com/TravelMapping/Web/issues/622 which adds a link to the top bar on all TM page to the current user's main page. It's omitted if no user is specified in the URL or found in a browser cookie. While in that file, changed "Home" to "TM Home" and "Traveler Stats" to "Travelers Stats".
I'll put these on the main site soon unless I hear major objections or someone notices that the change broke something.
-
"User joecool page" wording looks a bit awkward... "joecool's User Page" OTOH would be inconsistent with all the other links in the header capitalized. Assuming smashing case of usernames here is undesirable. "User Page for joecool?" Not a
sbiug big deal; I'm sure I can get used to this too.
"Travelers Stats"
How about "Travelers' Stats", plural possessive?
-
"User joecool page" wording looks a bit awkward... "joecool's User Page" OTOH would be inconsistent with all the other links in the header capitalized. Assuming smashing case of usernames here is undesirable. "User Page for joecool?" Not a sbiug deal; I'm sure I can get used to this too.
"Travelers Stats"
How about "Travelers' Stats", plural possessive?
apostrophes? There is NO way that is MUTCD Compliant ;)
-
apostrophes? There is NO way that is MUTCD Compliant ;)
Suddenly viewing https://github.com/TravelMapping/Web/pull/287 in a new light...
-
I like the @yakra suggestions above, and made the changes on tmstage.
-
Odd. There is also a change on the main site! Null :D https://travelmapping.net/?u=null
(https://forum.travelmapping.net/index.php?action=dlattach;topic=4120.0;attach=366)
-
Did null get in by specifying it intentionally or did that just happen in a situation where no user was ever selected?
-
It's default. My cookies are always cleaned on closing the browser. I just put it to the link so that your user cookie is overwritten.
1. https://travelmapping.net/user/?u=1 '1's User Page'
2. Select "[None selected]"
3. Press "Apply" --> issue #1 Header is not updated, still '1's User Page'
4. Press "TM Home" or any other page -> issue #2 'None's User Page' instead of hidden
-
I think it should be better now. Handles either the cookie or u= QS param properly, I believe.
-
I've edited the post just a few minutes before you wrote and it is still as described on the main site and on tmstage.
issue #1 only happens when the user is changed, it's immediately updated when it changes from "none" to a user.
-
Might finally be good now. There was an unexpected interaction between user set by QS and saved in cookies.
-
yep, looks good now :)