Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Sept 8, 2014 9:30:50 GMT -8
As the title describes, I was wondering if it was possible for someone to provide a code that would modify the time stamp. I really only care about its appearance on the forum home, but if its easier to do it globally I wouldn't argue; simple(r) is good. What I'd like to have is it only display the Month, Day, Year and not the time of day... except for the '5 hours ago' messages when its been within 24 hours of course; those I would like to show.
I had this accomplished in v4 for an older site but not sure how to go about it with the smancy new stuff goin' on with the time stamp variable. Any help on this would be much appreciated.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Nov 19, 2014 8:38:15 GMT -8
bump
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Nov 28, 2014 10:38:36 GMT -8
bump
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,986
December 2005
horace
Wormo's Mini-Profile
|
Post by Chris on Nov 28, 2014 19:55:20 GMT -8
I believe the updated code in this thread should be able to do what you desire. To prevent the "5 hours ago" type of date from being converted you could place a one-line code of <script>$('.recent_time').removeClass('time');</script> above the code in that thread. With the code running, you will have the various components of the dates addressable through CSS (as described in that thread) so it would then be possible to use the .at and .at-time classes to hide the time with display:none
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Nov 29, 2014 8:39:31 GMT -8
Hurrah! Many thanks Eton. Will give this a whirl after reading that thread
|
|