test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • sw42it Friend
    #164384

    Hi,

    I’m using the template in an german environment with joomla 1.6.3.
    Template version is 1.0.2.

    The Blog layout is always showing the same date 01 Jan 1970. Even if the date of the article is a different one.

    Switching to english language solves the bug. Please provide a source sample which solves the problem for other languages like german.

    Thanks

    Stefan

    khoand Friend
    #392767

    You try this way:
    You replace this code from templatesja_graphitehtmlcom_contentfeatureddefault_item.php file

    $createMonth = date('M', strtotime( $created ));
    with

    $createMonth = JHTML::date($this->item->created, 'M', true);
    If it doesn’t work, could you give me username+password of ftp and a link to your website?

    sw42it Friend
    #392974

    Hi khoand,

    send you a pm with the access data to the server.
    Your code sample only corrects the month. The day and the year ist still not working correct.

    studiofat Friend
    #393054

    try to edit templatesja_graphitehtmlcom_contentfeatured/default_item.php about line 62
    change to:

    <?php if ($params->get('show_create_date')) : ?>
    <span class="create clearfix">
    <?php
    $stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
    $arrdate = explode(" ", $stringDate);
    ?>
    <span class="date"><?php echo $arrdate[0]; ?></span>
    <span class="month-year">
    <span class="month"><?php echo substr($arrdate[1], 0, 3); ?></span>
    <span class="year"><?php echo substr($arrdate[2], 0, 4); ?></span>
    </span>
    </span>
    <?php endif; ?>
    <?php if (!$params->get('show_intro')) : ?>

    khoand Friend
    #393158

    <em>@sw42it 242725 wrote:</em><blockquote>Hi khoand,

    send you a pm with the access data to the server.
    Your code sample only corrects the month. The day and the year ist still not working correct.</blockquote>

    You replace this code from templatesja_graphitehtmlcom_contentfeaturedd efault_item.php file

    $createDay = date('d', strtotime( $created ));
    $createMonth = date('M', strtotime( $created ));
    $createYear = date('Y', strtotime( $created ));

    with


    $createDay = JHTML::date($this->item->created, 'd', true);
    $createMonth = JHTML::date($this->item->created, 'M', true);
    $createYear = JHTML::date($this->item->created, 'Y', true);

    sw42it Friend
    #393168

    Now it works. Many Thanks to you.

    Stefan

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

This topic contains 6 replies, has 3 voices, and was last updated by  sw42it 13 years, 7 months ago.

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