[#5170] member since: just the year

9 years 1 month ago - 9 years 1 month ago #260356 by Giankomat
[#5170] member since: just the year was created by Giankomat
hi, quick question, I want to show just the year in that field
example: member since 2015

awesomescreenshot.com/0c24kvcpa4

I tried custom date in parameters, I can't figure it out how to accomplish that..

Please Log in to join the conversation.

9 years 1 month ago #260358 by krileon
Replied by krileon on topic member since: just the year
Ensure you're using CB 2.0.7. Next edit the Member Since (registerDate) field. Now under Parameters > Display set "Profile View Display" to "Custom" then set the following.

Custom Date Format: Y
Custom Time Format: (empty it)

This should output only the year. For further formatting variables see PHP date documentation below.

php.net/manual/en/function.date.php


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 1 month ago #260369 by Giankomat
Replied by Giankomat on topic member since: just the year
just upgraded
this is my setting
awesomescreenshot.com/0e74kxb032

this is what i get
awesomescreenshot.com/0b94kxau84

Please Log in to join the conversation.

9 years 1 month ago - 9 years 1 month ago #260413 by krileon
Replied by krileon on topic member since: just the year
Ah, it's the time still showing. Add a space to the "Custom Time Format" parameter instead of leaving it completely empty and that'll do it. Will need to improve the time display check to test for that.

forge.joomlapolis.com/issues/5170


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Giankomat

Please Log in to join the conversation.

9 years 1 month ago #260463 by Giankomat
Replied by Giankomat on topic member since: just the year
it works, thanks

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.325 seconds

Facebook Twitter LinkedIn