Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • obliat Friend
    #162368

    I’d like to display created date under lead news story title of JA news_fp (only lead news story).
    Please see screenshot – created date in red (new row – not right after the title)

    Also how do I add comments count next to created date?

    Thanks


    1. janewsfp-created-date
    Saguaros Moderator
    #385113

    You open the file: modulesmod_janews_fptmpldefaultblog.php
    and find:
    [PHP]
    <?php echo $bigmaxchar > strlen($news->bigintrotext)?$news->introtext:$news->bigintrotext?>
    [/PHP]

    replace by:
    [PHP]
    <p><?php echo JHTML::_(‘date’,$news->created, JText::_(‘DATE_FORMAT_LC2’));?></p>
    <?php echo $bigmaxchar > strlen($news->bigintrotext)?$news->introtext:$news->bigintrotext?>
    [/PHP]

    obliat Friend
    #385312

    I already placed

    <div><?php echo date("d.m.Y", strtotime($news->created)) ?></div>
    and it worked for me, but decided to try yours and it didn’t work at first, but once i changed <p> to <div> it made it.

    So works both ways, but I’ll keep your code 🙂

    I’ll appreciate if you can provide code for putting author name and comments count (possibly even from JA Comments Component, not the standard comments count) so I can put it next to created date.

    Thanks

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

This topic contains 3 replies, has 2 voices, and was last updated by  obliat 13 years, 1 month ago.

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