inherit
266522
0
Jun 18, 2022 6:00:37 GMT -8
thesunstar
2
June 2022
thesunstar
|
Post by thesunstar on Jun 12, 2022 19:26:36 GMT -8
Is there anyway to add a timestamp in a post? I am currently setting up tables with one column being dates, and i'd like them to be proper timestamps... but the only way i know how to do this is by doing: BBCode being: [quote timestamp="1640999400"][/quote] Which takes up an annoyingly enormous area of space... I'd appreciate your help please
|
|
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 Jun 12, 2022 22:36:32 GMT -8
You could provide a set of CSS rules on your forum that recognizes an empty quote which bears only a timestamp and style it so it appears inline with your text. <style> /* Style any quote bearing ONLY a timestamp */
.quote[timestamp]:not([author],[source]) { all: initial; display: inline-block; font: inherit; padding: 0 1ch; }
.quote[timestamp]:not([author],[source]) .quote_body { all: initial; display: inline; font: inherit; }
.quote[timestamp]:not([author],[source]) .no_avatar_placeholder { display: none; }
.quote[timestamp]:not([author],[source]) .quote_header { all: initial; font: inherit; color:transparent; }
</style>
|
|
inherit
266522
0
Jun 18, 2022 6:00:37 GMT -8
thesunstar
2
June 2022
thesunstar
|
Post by thesunstar on Jun 18, 2022 5:58:56 GMT -8
Thank you so much Chris i appreciate you taking the time to help me and to even go so far as to write the code out for me!! My apologies for not replying till now, i've been stretched pretty thin xD - which makes me that much more grateful for your help! I hope you're having a great weekend thus far. ☺Best wishes, ~ - thesunstar
|
|
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 Jun 19, 2022 23:14:45 GMT -8
You're welcome thesunstar! Hopefully it meets your needs but if you notice any unwanted or unanticipated side effects feel free to bump this thread with the issue.
|
|