test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • enote Friend
    #133335

    How can I display date on frontpage with JANEWS. I try but it can’t.

    Sherlock Friend
    #270546

    Hi enote !
    you can do it following way below :
    Open blog_item.php file in modules/mod_nanews/tmpl 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>

    enote Friend
    #270584

    Thanks and How can I change date format I only want dd/mm/yyyy?

    felsimedia Friend
    #270681

    open your index.php and look for this

    <div class=”ja-day”>
    <?php
    echo “<span>”.date (‘l’).”</span>”;
    echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
    ?>
    </div>

    TO

    <div class=”ja-day”>
    <?php
    echo ” <div>”.date (‘d’).” “.date (‘M’).date (‘Y’).”</div>”;
    ?>
    </div>

    check this if you want to change the date format… http://it.php.net/date

    goodluck!

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

This topic contains 4 replies, has 3 voices, and was last updated by  felsimedia 16 years, 3 months ago.

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