-
AuthorPosts
-
May 28, 2015 at 12:02 am #206694
I would like the date format on the JA ACM to read ‘day / month / year’. How do I resolve this?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 28, 2015 at 12:14 am #572099Hi
Open this file templatesja_charityacmcountdowntmplstyle-1.php and change date format
date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 28, 2015 at 12:14 am #737139Hi
Open this file templatesja_charityacmcountdowntmplstyle-1.php and change date format
date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',
May 28, 2015 at 12:41 am #572104If I switch this to ‘d/m/Y’ the date doesn’t change, the countdown stops working and I get the alert ‘We Ready To Rock Your World’ as a pop up?
May 28, 2015 at 12:41 am #737144If I switch this to ‘d/m/Y’ the date doesn’t change, the countdown stops working and I get the alert ‘We Ready To Rock Your World’ as a pop up?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 28, 2015 at 1:06 am #572111Hi
Sorry i misunderstood your question
Countdown is a JA Acm module and it takes configuration from a JS ytemplatesja_charityjsdown-countjquery.downCount.js
as you can see from file content changing the countdown settings to allow to show M/Y too it requires to modify the JS code
I can submit your request to Joomlart’s developers to see if would possible to add this feature as an available option into a new release of the JA ACM Countdown type module.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 28, 2015 at 1:06 am #737151Hi
Sorry i misunderstood your question
Countdown is a JA Acm module and it takes configuration from a JS ytemplatesja_charityjsdown-countjquery.downCount.js
as you can see from file content changing the countdown settings to allow to show M/Y too it requires to modify the JS code
I can submit your request to Joomlart’s developers to see if would possible to add this feature as an available option into a new release of the JA ACM Countdown type module.
May 28, 2015 at 3:34 pm #572159Ok, that would be good.
Just to be clear, it’s not the countdown but the date I’m looking at changing. I can delete the js file you mention and the date still works, just not in the order I require which is the UK format – day, then month, then year.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 9, 2015 at 3:03 am #573382Hi guys,
It should not relate to the js file, if you want to change the format date, try with this tweak:
– Open the file: root/templates/ja_charity/acm/countdown/tmpl/style-1.php
– Look for this code:
<?php if($helper->get('downdate')): ?>
<?php echo $helper->get('downdate'); ?>
<?php endif; ?>
Replace it with:
<?php if($helper->get('downdate')): ?>
<?php $revertDate = explode('-', $helper->get('downdate'));
echo $revertDate[2] . '-' . $revertDate[1] . '-' . $revertDate[0];
?>
<?php endif; ?>
And rollback the change in the formate ‘Y/m/d’ in the #2 post of Pavit if you’ve changed
1 user says Thank You to Saguaros for this useful post
February 29, 2016 at 12:49 am #891897Hi,
I did not locate the line edit date in style1.phpSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 29, 2016 at 1:37 am #891918You can open above file with an editor like Notepad++ or others, then make a search to find these lines of code.
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 10 replies, has 4 voices, and was last updated by Saguaros 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Change date format on countdown of JA ACM
Viewing 11 posts - 1 through 11 (of 11 total)