Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • adnanpirota Friend
    #158125

    I would like to know if it would be possible to display time of posting except the date in JA Bulletin?

    Ninja Lead Moderator
    #369996

    Hi,

    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.php

    adnanpirota Friend
    #385177

    I 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 Moderator
    #385270

    Not 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) );

    adnanpirota Friend
    #385303

    Maybe 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?


    1. ja-bulletin-with-time
    adnanpirota Friend
    #385315

    Maybe 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 Friend
    #385387

    OK e edited the file through cpanel and it worked, thnx a lot.

    adnanpirota Friend
    #385801

    Can 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 ?


    1. ja-bulletin-time
Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  adnanpirota 13 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum