-
AuthorPosts
-
April 18, 2011 at 9:15 pm #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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
April 19, 2011 at 6:57 am #387022Hi,
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..
April 19, 2011 at 7:32 am #387032My 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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
April 19, 2011 at 8:47 am #387049Hi,
Please check if this is helpful to you. http://www.joomlart.com/forums/topic/how-to-change-last-update-from-gmt-to-est/
April 19, 2011 at 10:44 am #387069I´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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
April 19, 2011 at 11:05 am #387077Hi,
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 Friendasifak
- Join date:
- November 2010
- Posts:
- 172
- Downloads:
- 1
- Uploads:
- 19
- Thanks:
- 46
- Thanked:
- 2 times in 1 posts
April 20, 2011 at 2:02 am #387162I 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 20, 2011 at 2:53 am #387169For 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”?
April 20, 2011 at 8:17 am #387222Thanks a lot. It worked. I´m almost there:
http://www.newsflash.no/index.php/musikk/490-naer-innertier-fra-dinosaurerBut 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:30With 00:00:00 – 24:00:00 format if you know what I mean. We dont´t use PM and AM in norway
Thanks
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
April 20, 2011 at 10:31 am #387247Please 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) ?>
-
AuthorPosts
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