-
AuthorPosts
-
teletrance Friend
teletrance
- Join date:
- July 2008
- Posts:
- 110
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 8 times in 1 posts
March 20, 2009 at 11:26 am #139369Hello, I need same help, please.
I am using Opal and mod-janews publised in user5, set to show intros of articles publised in a section where I will publish just the latest news.I need to show the date (just hour, in fact) when the article was published.
link live: http://www.ziuadevest.eu/
How should I do?Thank you
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
March 26, 2009 at 9:40 am #298165Hi,
For this case, please open modulesmod_latestnewstmpldefault.php file, find following code:
<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text; ?>
</a>and change to:
<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text; ?>
</a>
<?php if ($this->params->get('show_create_date')) : ?>
<?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC2')) ?>
<?php endif; ?>teletrance Friendteletrance
- Join date:
- July 2008
- Posts:
- 110
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 8 times in 1 posts
March 26, 2009 at 1:04 pm #298218Unfortunately, that does not working.
I am nor using mod_latestnews. I am using mod_janews to publish articles in user 5 module position. This news are publish in a Latest News section, that is why I need to show the hour when this article was published.On the other hand, if I am trying to use mod_latestnews instead mod_janews, beyond the fact that I am not able anymore to show the title and the first 50 words from every latest news, but I get tihis error:
Fatal error: Call to a member function get() on a non-object in /home/gxj47/public_html/modules/mod_latestnews/tmpl/default.php on line 9
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
March 27, 2009 at 7:10 am #298379You can change to:
<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text; ?>
</a><?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC2')) ?>
teletrance Friendteletrance
- Join date:
- July 2008
- Posts:
- 110
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 8 times in 1 posts
March 27, 2009 at 8:44 am #298394I am sorry, it does not work. I am not using mod_latestnews, but mod_janews to show my latest news in user 5, where I need the intro of news to be precedeed by hour (created date).
thank you anyway
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
March 30, 2009 at 4:59 am #298997For this case, please open templatesja_opalhtmlmod_janewsblog_item.php file, at about line 44, find following code:
<h4 class=”jazin-title”><a href=”<?php echo $link;?>” title=”<?php echo strip_tags($row->title);?>”><?php echo $row->title;?></a></h4>
and change to:
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a> <?php echo JHTML::_('date', $row->created, JText::_('DATE_FORMAT_LC2')) ?></h4>
1 user says Thank You to JA Developer for this useful post
teletrance Friendteletrance
- Join date:
- July 2008
- Posts:
- 110
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 8 times in 1 posts
March 30, 2009 at 7:17 am #299016Thank you, this time it worked! Thank you again
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by teletrance 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum