Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.6.6, getDateBlock()
- This topic has 7 replies, 5 voices, and was last updated 10 years ago by
Steven Zahm.
-
AuthorPosts
-
05/01/2013 at 12:16 pm #258494
Mike Reynolds
ParticipantI imported a membership list into connections successfully. On the birthday and anniversary fields I only had month and day, no year. Well connection assigned all records the year 2013. I there a way to only display month and year when putting a directory on our website (password protected page)?
05/03/2013 at 8:50 am #258734Paul Helm
GuestSimilar question for me. We use Connections to track birthday and hire date anniversary for staff on our company Intranet. While knowing how many years they have been with the company are great, many would prefer to NOT have the YEAR listed for birthday.
How can I edit so the year is NOT on the birthday display?
05/06/2013 at 5:55 pm #259061Ariel Parrish
ParticipantMe three — I’d like to show the Birthday and Anniversary dates without the year. I’d also like to change the label. I’m picking through the files now; there must be a way.
05/06/2013 at 7:58 pm #259068Steven Zahm
Keymaster@ All
The only way to do this is to edit a core file. The file name is class.output.php.
The function you need to find in the file is named getDateBlock.
You’ll see this line:
$defaults['date_format'] = 'F jS Y';
Change it to:
$defaults['date_format'] = 'F jS';
I do have it on my to do list to add a setting option to override this.
To alter the label, I recommend doing it as mentioned in this forum topic.
05/07/2013 at 8:38 pm #259164Mike Reynolds
GuestThanks Steven, your solution worked perfectly for me.
05/09/2013 at 3:26 pm #259403Paul Helm
GuestYes, this worked to take the year off BOTH birthday and anniversary. It would be nice to be able to override for one or the other or both, as we would prefer to not list year for birthday, but list year for anniversary.
Thanks Steven.
05/30/2013 at 4:19 am #261191Dorte Stetter
ParticipantI need to translate the date format into danish. Could you deliver short codes that handles the date format?
05/30/2013 at 11:10 am #261270Steven Zahm
Keymaster@ Dorte
Right now the only way to do that is to edit a core PHP file.
The next version of Connections slated for release within the next week will have a date format option in the settings. By default, it will inherit the date format set in the WordPress settings.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.