-
AuthorPosts
-
bowman999 Friend
bowman999
- Join date:
- April 2007
- Posts:
- 119
- Downloads:
- 13
- Uploads:
- 7
- Thanks:
- 25
- Thanked:
- 14 times in 1 posts
October 14, 2008 at 11:26 pm #134421How do I add date and author information to the featured articles and normal articles on the front page? (for example, SUNDAY, 12 OCTOBER 2008 19:35 | JOHN HOWELL).
I’ve managed to add them to the sections but not front page main articles (that use Ja news 1.3.1 and and Ja news fp).
Any help appreciated
Thanks
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 16, 2008 at 3:04 am #275533Hi !
Please view following thread to consult about the problem :
http://www.joomlart.com/forums/topic/articles-date-author/bowman999 Friendbowman999
- Join date:
- April 2007
- Posts:
- 119
- Downloads:
- 13
- Uploads:
- 7
- Thanks:
- 25
- Thanked:
- 14 times in 1 posts
October 16, 2008 at 3:37 am #275547Hi hainn84,
I actually wanted to do this for Teline 2, I think the information your sent was for the first version of this template (teline).
I couldn’t find that line in any of the ja_news or ja_news_fp files.
Help appreciated
Thanks
John
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 17, 2008 at 3:35 am #275787with teline ii , you can do it following way below :
Open blog_item.php file in modulesmod_janewstmpl folder, find following code section at about line 33 :
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
change to :
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
<div class="article-meta">
<span class="createdate">
<?php echo JHTML::_('date', $row->created, JText::_('DATE_FORMAT_LC2')); ?>
</span>
</div>
hope can help you !
video1 Friendvideo1
- Join date:
- May 2007
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
November 13, 2008 at 10:25 pm #279079If you want this (date+author) to happen for the featured articles you need to change modulesmod_janews_fptmpldefault_fp.php to:
[PHP]
<div class=”article-meta”>
<span class=”createdate”>
<?php echo JHTML::_(‘date’, $news->created, JText::_(‘DATE_FORMAT_LC3’)); ?>
</span> <span class=”createby”><?php JText::printf( ($news->created_by_alias ? $news->created_by_alias : $news->author) ); ?></span>
</div> <br/>[/PHP]November 14, 2008 at 8:59 am #279127<em>@hainn84 86488 wrote:</em><blockquote>with teline ii , you can do it following way below :
Open blog_item.php file in modulesmod_janewstmpl folder, find following code section at about line 33 :
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
change to :
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
<div class="article-meta">
<span class="createdate">
<?php echo JHTML::_('date', $row->created, JText::_('DATE_FORMAT_LC2')); ?>
</span>
</div>
hope can help you !</blockquote>
I have the same problem but if I add that lines janews say “Undefined class name ‘jhtml’ “
and what about janews frontpage? And how to add also section name?sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 14, 2008 at 10:32 pm #279204Hi Hainn!
1) How do I remove the “Time” in the articles. I just want Date and Author listed, not time of day.2) How do I remove the “Login” on Telline ll Home page, as this will not be needed. If I’m correct, this is only used for Community Board Login?
Thanks!
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 14, 2008 at 10:56 pm #279207Hi Hain,
Please check PM for important message!video1 Friendvideo1
- Join date:
- May 2007
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
November 14, 2008 at 11:46 pm #279210sbaldwin,
To remove time: In the files mentioned above change LC2 to LC3 , this will display date only.
[PHP] <?php echo JHTML::_(‘date’, $news->created, JText::_(‘DATE_FORMAT_LC3’)); ?> [/PHP]
To remove Login, in Admin mode> Extensions>Modules: de-activate Login Form.
That’s all.1 user says Thank You to video1 for this useful post
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
November 15, 2008 at 12:57 am #279215Hi Video1!
Thanks for helping! I only need this for articles that are not part of JA news or JA FP. Will the code above work for those articles within my site? Just want to make sure, and thanks again!video1 Friendvideo1
- Join date:
- May 2007
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
November 15, 2008 at 11:13 am #279245The code above will work for Teline files mentioned. I don’t know for sure about other articles. You might want to try componentscom_content_viewsarticletmpldefault.php
-
AuthorPosts
This topic contains 11 replies, has 5 voices, and was last updated by video1 16 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum