-
AuthorPosts
-
obliat Friend
obliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
February 25, 2011 at 7:57 pm #160710In Teline IV I was able to style most of the dates in different modules.
Front Page JA_Newspro though is a pain. I can’t seem to find a way to do it.
Firebug shows class=createdate and all the php files that has it won’t change the thing as there is no DATE_FORMAT_LC style to change it, by reading en-GB.ini.What php file defines it or where does it get changed. It looks like DATE_FORMAT_LC or DATE_FORMAT_LC1 now as it shows Day, date, Month, year?
Inside the articles I am able to change the date style, but FP change is impossible for me.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
February 28, 2011 at 12:02 am #378700Firebug points to a createdate style and if I’m not wrong, it should be inside mod_janewsprotmpldefaultblog_item.php
<?php if ( $showcreator || $showdate ) : ?>
<div class="ja-zinmeta clearfix">
<?php if ($showdate) : ?>
<span class="createdate">
<?php echo $row->created?>But it generates like DATE_FORMAT_LC or DATE_FORMAT_LC1 date style on my template and I can’t figure out how to change it to say DATE_FORMAT_LC4.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 1, 2011 at 3:39 am #378977You open this file: modulesmod_janewsprohelpersadaptercontent.php and find the following code:
[PHP]
else $rows [$i]->created = JHTML::_(‘date’, $rows [$i]->created);
[/PHP]
replace:
[PHP]
else $rows [$i]->created = JHTML::_(‘date’, $rows [$i]->created, JText::_(‘DATE_FORMAT_LC4’));
[/PHP]obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 1, 2011 at 7:58 am #379022Incredible, thanks a lot. Woudn’t find it myself – so deeply buried :laugh:
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by obliat 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How do I change JA_newspro Frontpage date style?
Viewing 4 posts - 1 through 4 (of 4 total)