test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • knuganga Friend
    #162935

    I´m trying to change GMT values to Norwegian in Teline III v2. But I cant find this path and file:
    templatesja_teline_iiilibsja.template.helper.p
    Is it for another version of Teline?

    Thanks Knut

    himangi Friend
    #387022

    Hi,

    Did you try changing time zone from GLOBAL Configuration? If not you can go to Global Configuration>Server Tab. Set Time Zone to your time..

    knuganga Friend
    #387032

    My time zone settings in global is +1 UCT Copenhagen. But that doesn´t affect the “Last update” at the top of my homepage: http://www.newsflash.no It shows GMT

    Knut

    himangi Friend
    #387049
    knuganga Friend
    #387069

    I´m affraid not. Teline IV has different files and paths than Teline III v2. I cant´t find this file at all: templatesja_teline_ivblockstopbar.php
    But thanks anyway for your effort.

    Knut

    himangi Friend
    #387077

    Hi,

    Can you provide me Joomla admin details and ftp details by updating your ticket at http://support.joomlart.com/index.php?/Tickets/Ticket/View/70495
    I will take a look.

    asifak Friend
    #387162

    I am using JA Telline III V2. Last update was also not working in my case too. Somebody from JA informed me that it is server problem. Anyhohw, I have removed the script displaying the last update.

    Phill Moderator
    #387169

    For T3V2 open templates>ja_teline_iii_v2>blocks>header.php and replace all the code therin with the code below.

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA Teline III v2 template for Joomla 1.5
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. For details on licensing,
    # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.com - http://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ------------------------------------------------------------------------
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <div class="inner clearfix">
    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>
    </div>
    <!-- HEADLINES & Top megamenu -->
    <div class="ja-topbar clearfix">
    <p class="ja-day">
    <?php
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em>

    <?php echo date("H:i:s D", time());?>

    <?php
    $gmt = T3Common::getLastUpdate();
    $gmt = str_replace(" GMT", "", $gmt);
    date_default_timezone_set("GMT");
    $timestamp = strtotime($gmt);
    date_default_timezone_set("America/New_York"); // time is in EST
    $est = date("h:i:s A", $timestamp);
    echo $est." EST";
    ?>

    </em></p>
    <?php if($this->countModules('headlines')) : ?>
    <jdoc:include type="modules" name="headlines" />
    <?php endif; ?>

    <?php if($this->countModules('syndicate')) : ?>
    <div class="ja-syndicate">
    <jdoc:include type="modules" name="syndicate" />
    </div>
    <?php endif; ?>

    <?php $this->showBlock ('topmega') ?>
    </div>
    <!-- END HEADLINES -->

    <?php $this->genBlockEnd ($block) ?>

    Then adjust the bit I have highlighted in red to match your timezone using the details from here – http://www.php.net/manual/en/timezones.php

    In your case it would be

    date_default_timezone_set("Europe/Oslo"); // time is in Europe/Oslo

    The “EST” bit in the output comes from the following line

    echo $est." EST";

    Change the bit in red to however you want your time to be noted. Here in the UK it would either be ” BST” or ” GMT” depending on the time of year. Not sure what you use in Norway, ” UTC”?

    knuganga Friend
    #387222

    Thanks a lot. It worked. I´m almost there:
    http://www.newsflash.no/index.php/musikk/490-naer-innertier-fra-dinosaurer

    But now it shows: onsdag, 20. april 2011 Sist oppdatert 10:12:30 Wed 11:00:00 PM UTC
    I would like it to show: onsdag, 20. april 2011 Sist oppdatert onsdag 10:12:30

    With 00:00:00 – 24:00:00 format if you know what I mean. We dont´t use PM and AM in norway

    Thanks

    Phill Moderator
    #387247

    Please try the following code. I’ve not tested it but it should do trick.

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA Teline III v2 template for Joomla 1.5
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. For details on licensing,
    # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.com - http://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ------------------------------------------------------------------------
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <div class="inner clearfix">
    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>
    </div>
    <!-- HEADLINES & Top megamenu -->
    <div class="ja-topbar clearfix">
    <p class="ja-day">
    <?php
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em>

    <?php echo date("h:i:s ", time());?>

    <?php
    $gmt = T3Common::getLastUpdate();
    $gmt = str_replace(" GMT", "", $gmt);
    date_default_timezone_set("GMT");
    $timestamp = strtotime($gmt);
    date_default_timezone_set("Europe/Oslo"); // time is in Europe/Oslo
    $est = date("h:i:s A", $timestamp);

    ?>

    </em></p>
    <?php if($this->countModules('headlines')) : ?>
    <jdoc:include type="modules" name="headlines" />
    <?php endif; ?>

    <?php if($this->countModules('syndicate')) : ?>
    <div class="ja-syndicate">
    <jdoc:include type="modules" name="syndicate" />
    </div>
    <?php endif; ?>

    <?php $this->showBlock ('topmega') ?>
    </div>
    <!-- END HEADLINES -->

    <?php $this->genBlockEnd ($block) ?>

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

This topic contains 10 replies, has 4 voices, and was last updated by  Phill 13 years, 7 months ago.

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