-
AuthorPosts
-
April 3, 2012 at 9:52 pm #175764
I am using JAteline IV, Joomla 2.5. When is in backend “Show Create Date” turned on, on frontend janewspro module shows modified date. Is there any way that it shows created date? (i use default theme)
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 4, 2012 at 5:13 am #447244It’s weird, because my localhost ja_teline_iv works normally. Could you give me username+password of your backend and ftp? I will check it.
April 4, 2012 at 3:04 pm #447314Sorry, but it is not weird becouse even when I created site with Joomlart Demo Builder it has the same problem. Exstensions>Module Manager>JA News – Default Layout – then I have turn On “Show Create day” and went to any article that shows date on frontpage, just opened and saved and it shows Modified date, not created date. Its big problem to me, becouse i have set order of articles by created date, and i need to have show created date. Thanks
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 4, 2012 at 10:05 pm #447371You’re right. It’s a bug. You replace the code from /modules/mod_janewspro/helpers/adapter/content.php
if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->modified);
else $row->created = JHTML::_('date', $row->modified);with
if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->created);
else $row->created = JHTML::_('date', $row->created);You remember clear cache of server and browser.
1 user says Thank You to khoand for this useful post
April 5, 2012 at 6:48 am #447421Great, it works fine now. Thanks a lot.
artmaster Friendartmaster
- Join date:
- April 2006
- Posts:
- 10
- Downloads:
- 3
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
April 15, 2012 at 2:49 am #448419My original code (CONTENT.PHP) is different. Using Joomla 2.5 and JA News Pro Module versione 2.5.1
Original Code:
if ($enabletimestamp)
$row->created = $helper->generatTimeStamp($row->modified);
else
$row->created = JHTML::_('date', $row->modified);MODIFIED CODE
if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->created);
else $row->created = JHTML::_('date', $row->created);No way for me, empty cache browser /server etc.
Any Ideas?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 16, 2012 at 8:25 am #448480Hi luca,
Thank you for contacting us !
You might have made a mistake with your replaced code, You should try as following
Opeo the file of modulesmod_janewsprohelpersadaptercontent.php looking for this code
[PHP] if ($enabletimestamp)
$row->created = $helper->generatTimeStamp($row->modified);
else
$row->created = JHTML::_(‘date’, $row->modified);
[/PHP]
and change it to
[PHP] if ($enabletimestamp)
$row->created = $helper->generatTimeStamp($row->created);
else
$row->created = JHTML::_(‘date’, $row->created);[/PHP]I hope this should help !
1 user says Thank You to Sherlock for this useful post
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 4 voices, and was last updated by Sherlock 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
JAnewspro module – created date instead modified
Viewing 7 posts - 1 through 7 (of 7 total)