-
AuthorPosts
-
adnanpirota Friend
adnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
December 31, 2010 at 9:25 am #158125I would like to know if it would be possible to display time of posting except the date in JA Bulletin?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2011 at 11:12 am #369996Hi,
Yes you can, open templatesja_teline_ivhtmlmod_jabulletindefault.php, change this snipet:
echo JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC4'));
to
echo $item->date;
or you can use other php code to display as you wish, please consult:
http://php.net/manual/en/function.date.phpadnanpirota Friendadnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
April 6, 2011 at 3:18 pm #385177I am not so good with PHP and would like if possible to get a little help with this one because when I replace the upper code with the lower code i get some php error on entire site and than I need to disable ja bulletin. i would highly appretiate if anyone could place a code to display date and time in ja bulletin (for example 08-04-2011 17:18).
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 7, 2011 at 9:51 am #385270Not sure why you got the error, it should work fine. If you want this format: 08-04-2011 17:18, change:
echo JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC4'));
to:
date ( 'd-m-Y H:i', strtotime($item->date) );
1 user says Thank You to Ninja Lead for this useful post
adnanpirota Friendadnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
April 7, 2011 at 3:33 pm #385303Maybe there is something I am doing wrong but when I change the code as instructed I get this on my front page:
” Parse error: syntax error, unexpected T_STRING in /home/tonditen/public_html/templates/ja_teline_iv/html/mod_jabulletin/default.php on line 20″
I am changing it with eXtplorer I hope that is not causing the problem?
adnanpirota Friendadnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
April 7, 2011 at 7:45 pm #385315Maybe I am not supposed to edit the file with eXtplorer because just now I tried to change DATE_FORMAT_LC4 to DATE_FORMAT_LC2 and I got the same error message, can anyone pleae tell me what I am doing wrong ?
adnanpirota Friendadnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
April 8, 2011 at 7:47 am #385387OK e edited the file through cpanel and it worked, thnx a lot.
adnanpirota Friendadnanpirota
- Join date:
- March 2009
- Posts:
- 101
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 35
- Thanked:
- 3 times in 1 posts
April 11, 2011 at 4:01 pm #385801Can anyone tell me why the time in Ja Bulletin is not the sime like the time of publishing of the article (in the global configuration of my site I have put locale setting as gmt + 2 so that my article time in joomla would be correct, but even without that ja bulletin was showing time -2hrs. From where does ja bulletin take the time ?
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by adnanpirota 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum