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: 8.6.9
- This topic has 6 replies, 2 voices, and was last updated 6 years, 3 months ago by
Linda Kaufman.
-
AuthorPosts
-
08/20/2017 at 4:01 pm #432791
Linda Kaufman
ParticipantHi Support – is there a way to change the field “UPDATED 2 MONTHS AGO?” Where 2 months is however the amount of time elapsed since it was updated to the date it was updated instead? http://www.treyburn-test.org/address-book/
Thank you!
LindaAttachments:
You must be logged in to view attached files.08/21/2017 at 11:12 am #432816Steven Zahm
Keymaster@ Linda
Changing it to an actual date would require editing the template PHP file. The only point and click option available is the ability to not display it at all. If you are comfortable editing PHP, I can provide some guidance on how to make the change.
Let me know.
08/22/2017 at 3:19 pm #432888Linda Kaufman
ParticipantHi Steven – yes I am comfortable editing php code – thank you!
Linda
08/23/2017 at 10:53 am #432966Steven Zahm
Keymaster@ Linda
Great! From the screenshot it looks like you are using the Default Entry Card template, assuming that, here the instructions…
Open the
card.php
file found in this folder:../wp-content/plugins/connections/template/card/
Look for this:
cnTemplatePart::updated( array( 'timestamp' => $entry->getUnixTimeStamp(), 'style' => array( 'font-size' => '10px', 'font-variant' => 'small-caps', 'margin-right' => '10px', ) ) );
Change it to this:
echo $entry->getFormattedTimeStamp( 'm/d/Y' );
You can change
m/d/Y
to any valid PHP data format.If you decide to do this, I recommend following the instructions on how to implement a custom template override so the change is not lost when Connections is updated.
Hope this helps!
08/23/2017 at 12:46 pm #432975Linda Kaufman
ParticipantThanks so much Steven! I just have one last (quick I hope) question – I made that update but it took away the text “UPDATED:” – is there a way to put it back in? I have uploaded a screenshot of the new page.
Thanks again for all your help,
Linda08/23/2017 at 3:51 pm #432989Steven Zahm
Keymaster@ Linda
You have to add the string, like so:
echo 'UPDATED:' . $entry->getFormattedTimeStamp( 'm/d/Y' );
Hope that helps!
08/23/2017 at 5:40 pm #433000Linda Kaufman
ParticipantThanks! Perfect : )
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.