Tommy
Junior Member
Posts: 339
inherit
241969
0
May 2, 2023 4:47:54 GMT -8
Tommy
339
February 2017
tommytdl
|
Post by Tommy on Dec 29, 2018 13:43:08 GMT -8
Just saying up front that I'm not a coder so detailed help is appreciated.
I want to display member's registered date in their mini-profile.
I found this bit of code in a plugin.
<span class="post_act">Registered: $[user.registered_on]</span>
The problem is it gets too long and breaks into two lines because it shows the time as well...
Can someone help me with a bit of code that would only return the date and not the time?
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Dec 29, 2018 19:42:48 GMT -8
What about...
$[user.registered_on_short] Which shows, for example:
May 2015 It doesn't get the exact date, however.
|
|
Tommy
Junior Member
Posts: 339
inherit
241969
0
May 2, 2023 4:47:54 GMT -8
Tommy
339
February 2017
tommytdl
|
Post by Tommy on Dec 29, 2018 21:30:52 GMT -8
What about... $[user.registered_on_short] Which shows, for example: May 2015 It doesn't get the exact date, however. No that's good though! that might be perfect actually, I will give it a try. The member suggestion that folks liked was that it say something like "xxxxx'er since May 2015" which was why the exact date and time was too long and not right sounding. Thank you kindly.
|
|
Tommy
Junior Member
Posts: 339
inherit
241969
0
May 2, 2023 4:47:54 GMT -8
Tommy
339
February 2017
tommytdl
|
Post by Tommy on Dec 29, 2018 21:44:21 GMT -8
elli your solution was perfect, thank you!
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Dec 29, 2018 21:52:06 GMT -8
You're welcome!
|
|