-
AuthorPosts
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 9:11 am #154640Where i can find getLastUpdate Function so i can modify the php code ?
ThanksAratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
September 26, 2010 at 9:45 am #356684here you go…
http://www.joomlart.com/forums/downloads.php?do=cat&id=334
you can upload the last files…
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 10:39 am #356688Thank but
I need to modify the last update function so it can be shown without the GMT extension but only D:m:y:HH:MM
The old posts about this argument in the forum are referred at the file ja.template.helper.php in the ja_teline_iii template i need to modify the getlastupdate function in JA Social template.
I’m searching that php code but i can’t find it anymore.Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 26, 2010 at 10:41 am #356689I think you pavit mean last update at the top of left corner? is that right? If it is what you asking for it is in topbar.php ( in folder blocks) There you can find date and last update php. Rest you can find in language files
1 user says Thank You to Urszula Dziki for this useful post
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 11:10 am #356690Yes is it
but in the topbar.php where can i remove the GMT extension ?Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 26, 2010 at 11:14 am #356691in mine look like this I removed time totally and then move my login module on the left to use that space using css
?>
<?php $this->genBlockBegin ($block) ?>
<p class=”ja-day”>
<?php
$app =& JFactory::getApplication();
$date = JFactory::getDate();
$date->setOffset($app->getCfg(‘offset’));
echo $date->toFormat(‘<span class=”day”>%A,</span><span class=”date”>%d %B %Y</span>’);
?></p>
<p class=”ja-updatetime”><span></em></p>
<?php if($this->countModules(‘ja-login’)) : ?>
<div id=”ja-headtools” class=”ja-headtool”>
<ul>
<jdoc:include type=”modules” name=”ja-login” />
</ul>
</div>
<?php endif; ?>
<?php $this->genBlockEnd ($block) ?>pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 11:21 am #356692This is Mine
?>
<?php $this->genBlockBegin ($block) ?><p class=”ja-day”>
<?php
echo “<span class=”day”>”.JText::_(date (‘l’)).”</span>”;
echo “<span class=”date”> “. JText::_(date (‘d’)) .” “.JText::_(date (‘F’)).JText::_(date (‘ Y’)).”</span>”;
?>
</p>
<p class=”ja-updatetime”><span><?php echo JText::_(‘Ultimo aggiornamento’)?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p><?php if($this->countModules(‘ja-login’)) : ?>
<div id=”ja-headtools” class=”ja-headtool”>
<ul>
<jdoc:include type=”modules” name=”ja-login” />
</ul>
</div>
<?php endif; ?><?php $this->genBlockEnd ($block) ?>
Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 26, 2010 at 11:27 am #356693you still got this line
<p class=”ja-updatetime”><span><?php echo JText::_(‘Ultimo aggiornamento’)?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
which is your time
Do you want to remove it or modify?
If you want to just removed .. you can also ad css code if it is easier to your template.css I think I saw someone post answer for this too
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 11:32 am #356694The time now is shown “Ultimo aggiornamento 06:53:21 AM GMT”
I need to show “Ultimo aggiornamento 26-Set-2010 06:53:21”Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 26, 2010 at 11:40 am #356696This is in language somewhere I didn’t have chance to work it out as I am not using it. give me couple of hours I need to go now for dinner. Unless you find yourself. .. i wil lfind it for you.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 26, 2010 at 5:19 pm #356706Any news ?
Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 26, 2010 at 11:58 pm #356730i haven’t done for myself so not sure how it work but
there was an answer here for spanish languageby tienh for another template. I didn’t test it but it is what he recommended to change into your language
PHP Code:
<p class=”ja-updatetime”><span><?php echo JText::_(‘Last update’)?></span><em><?php echo $this->getLastUpdate(); ?></em></p>
You change:
PHP Code:
<p class=”ja-updatetime”><span><?php echo JText::_(‘LAST UPDATE’)?></span><em><?php echo $this->getLastUpdate(); ?></em></p>you put those text into the global language file or the template language file:
English:
LAST UPDATE=Last Update
Spanish:
LAST UPDATE=Ćltima actualizaciĆ³nWith English: you open the file: languageen-GBen-GB.ini you put the “LAST UPDATE=Last Update” text into this. you make the language for the Spanish language in the same way
the post is here http://www.joomlart.com/forums/topic/how-to-change-the-last-update-to-spanish/
and another post you might find useful too http://www.joomlart.com/forums/topic/how-to-modify-date/#post-325204
I hope it helps.. it is for spanish but I assume same steps are for your language
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 27, 2010 at 8:44 pm #356848Thanks a lot Di
but this solution don’t work
thanks anyway for your courtesy.Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
September 27, 2010 at 11:46 pm #356856I wish I could help with this… that is why I removed as I didn’t have much time to play around and it was not very important for the site itself. Sorry didn’t work for you. May be there will be someone more knowledgable here to help. :confused::confused:
knightofthenight Friendknightofthenight
- Join date:
- September 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 8
September 29, 2010 at 7:40 am #357043Hello.
My Date and Lastupdate is in english…well the all Site is switched to German (Site / Admin Language Manager)…What I have to do to have an German Date.
BR
Knight
-
AuthorPosts
This topic contains 16 replies, has 5 voices, and was last updated by hilfiger 14 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum