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

    Please i need your help
    How i can insert time of redaction a note before the title in a frontpage?
    for example


    1. telinemod
    Anonymous Moderator
    #322717

    Hi solsantiec

    Open componentscom_contentviewscategorytmplblog_item.php file and change as my way:


    <?php
    /*
    $JA#COPYRIGHT$
    */

    defined('_JEXEC') or die('Restricted access');
    /* This template for headline (frontpage): first news with big image and next news with smaller images
    bigimg_w, bigimg_h, smallimg_w, smallimg_h
    */
    $showhlreadmore = intval (trim( $params->get( 'showhlreadmore', 0 ) ));
    $hiddenClasses = trim( $params->get( 'hiddenClasses', '' ) );
    $i = 0;
    ?>
    <div id="ja-zinfpwrap">
    <div id="ja-zinfp" class="clearfix">

    <div class="ja-zinfp-featured column clearfix">
    <?php foreach ($rows as $news) :
    $pos = ($i==0 || $i==$bigitems)?'first':(($i==count($rows)-1 || $i==$bigitems-1)?'last':'');
    if($i<$bigitems) :
    $link = JRoute::_(ContentHelperRoute::getArticleRoute($news->slug, $news->catslug, $news->sectionid));
    $image = modJANewsHelperFP::replaceImage ($news, $imgalign, 1, $bigmaxchar, $bigshowimage, $bigimg_w, $bigimg_h, $hiddenClasses);
    //First new
    ?>
    <div class="ja-zincontent inner clearfix <?php echo $pos;?>">
    <?php echo $image; ?>
    <h4 class="ja-zintitle"><strong><?php echo date("h:i" , strtotime($news->created));?></strong> <a href="<?php echo $link;?>" title="<?php echo strip_tags($news->title); ?>"><?php echo $news->title;?></a></h4>
    <?php echo $bigmaxchar?$news->introtext1:$news->introtext;?>
    <?php if ($showhlreadmore) {?>
    <a href="<?php echo $link;?>" class="readon"><span><?php echo JText::_('READ MORE...');?></span></a>
    <?php } ?>
    </div>
    <?php if($i==$bigitems-1):?>
    </div>

    <div class="ja-zinfp-normal column clearfix">
    <?php endif;?>
    <?php else: ?>
    <?php
    $link = JRoute::_(ContentHelperRoute::getArticleRoute($news->slug, $news->catslug, $news->sectionid));
    $image = modJANewsHelperFP::replaceImage ($news, $imgalign, 1, $smallmaxchar, $smallshowimage, $smallimg_w, $smallimg_h, $hiddenClasses);
    //Next news
    ?>
    <div class="ja-zincontent inner clearfix <?php echo $pos;?>">
    <?php echo $image; ?>
    <h4 class="ja-zintitle"><strong><?php echo date("h:i" , strtotime($news->created));?></strong> <a href="<?php echo $link;?>" title="<?php echo strip_tags($news->title); ?>"><?php echo $news->title;?></a></h4>
    <?php echo $smallmaxchar?$news->introtext1:$news->introtext;?>
    </div>
    <?php
    endif;
    ++$i;
    endforeach;?>
    </div>

    </div>
    </div>
    <script type="text/javascript">
    /* <!.addClass('active').removeClass('inactive');
    news.addEvent('mouseover', function(){
    $$('.ja-zinfp-normal .active').addClass('inactive').removeClass('active');
    this.addClass('active').removeClass('inactive');
    });
    }
    /* ]]> */
    </script>

    solsantiec Friend
    #322828

    i try this method, but dont change a home….

    Anonymous Moderator
    #323204

    Hi solsantiec

    Could you submit a ticket, send us your live url, ftp account so that i could have a closer look on the issue?

    I tried to use this code into our site and it worked fine.

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

This topic contains 4 replies, has 2 voices, and was last updated by Anonymous 15 years ago.

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