Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • acho Friend
    #163396

    Hi, I would like to change Last update function with current time in teline IV. can you tell please what php code should change?

    I tried this: http://www.joomlart.com/forums/topic/current-time-instead-of-last-update-in-teline-iv-j1-6/
    but it shows date but I need current time

    thanks!

    khoand Friend
    #389064

    Hi,
    You replace this code from /templates/ja_teline_iv/blocks/topbar.php file

    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>

    with

    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo JHTML::date('now', 'h:i:s A', true).' GMT';?></em></p>

    acho Friend
    #389831

    the time is not updated upon page load/reload – it shows the time of first load of the page and keeps it for hours even if you refresh/reload the page 🙁

    http://www.reporter-bg.net

    Phill Moderator
    #389834

    There could be many reasons for that but most likely the cache either on your browser or the Joomla cache.

    No offence, but do people really need the current time that does not refresh while the page is loaded? Would a real time clock not be the preferable option?

    Maybe integrating something like the following in that position would be better – http://extensions.joomla.org/extensions/calendars-a-events/time/clocks/395?qh=YTozOntpOjA7czo1OiJjbG9jayI7aToxO3M6NjoiY2xvY2tzIjtpOjI7czo3OiJjbG9jaydzIjt9

    Having said that, everyone has a clock on their computer do they not?

    acho Friend
    #389860

    <em>@phill luckhurst 238568 wrote:</em><blockquote>There could be many reasons for that but most likely the cache either on your browser or the Joomla cache.

    No offence, but do people really need the current time that does not refresh while the page is loaded? Would a real time clock not be the preferable option?

    Maybe integrating something like the following in that position would be better – http://extensions.joomla.org/extensions/calendars-a-events/time/clocks/395?qh=YTozOntpOjA7czo1OiJjbG9jayI7aToxO3M6NjoiY2xvY2tzIjtpOjI7czo3OiJjbG9jaydzIjt9

    Having said that, everyone has a clock on their computer do they not?</blockquote>

    I this regards and the date is useless 😉

    I know your point but why not having clock there – I saw it workong correct on other memebers sites and I like it

    Can you confirm on your browser it does the same – I am using firefox 4 for mac

    Thank you

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  acho 13 years, 6 months ago.

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