test
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • soda99 Friend
    #161682

    hi there.
    i installed ja Methys. beautiful template
    but all ny articles are dated – 31 dec
    how can i fix that

    http://www.yarivg.com/

    thanks

    chavan Friend
    #382334

    I hope the 31 dec is static one.

    Please attach this file templates/ja_methys/html/com_content/frontpage/default.php

    so i can check the possibility of issue

    khoand Friend
    #382343

    Hi,
    Do you change Created Date of your article?

    soda99 Friend
    #382344

    if you go to the site you can see that each article has a different creation date

    khoand Friend
    #382351

    Hi,
    – Open <joomla url>templatesja_methyshtmlcom_contentfeatureddefault_item.php file, show me code after

    <!-- Date created -->
    – My code is


    <?php
    $createDay = date('d', strtotime( $created));
    $createMonth = date('M', strtotime( $created));
    //$createYear = date('Y', strtotime( $created));
    ?>
    <span class="date"><?php echo $createDay; ?></span>
    <span class="month"><?php echo $createMonth; ?></span>

    soda99 Friend
    #382352

    i don have a fetured folder. i have it here: templates/ja_methys/html/com_content/frontpage

    <!– Date created –>
    <?php
    $createDay = date(‘d’, strtotime( $created));
    $createMonth = date(‘M’, strtotime( $created));
    //$createYear = date(‘Y’, strtotime( $created));
    ?>
    <span class=”date”><?php echo $createDay; ?></span>
    <span class=”month”><?php echo $createMonth; ?></span>

    khoand Friend
    #382355

    Because I use Joomla 1.6, but you use 1.5 version. Do you give me code before


    <!-- Date created -->

    – My code is


    <?php $created = T3Hook::_('t3_date_format', array($this->item->created, 'frontpage.created'));
    if (!$created) $created = JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')) ?>

    soda99 Friend
    #382356

    mine is:

    <dd class=”create”>
    <?php $created = T3Hook::_(‘t3_date_format’, array($this->item->created, ‘frontpage.created’));
    if (!$created) $created = JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)) ?>

    khoand Friend
    #382364

    I don’t find down your problem. If it’s OK, do you give me username+password of backend/ftp?

    viktorg Friend
    #383707

    Have you sorted this out? I have the same problem with joomla 1.6. I think this is a language issue (date format bug). With English activated on frontend it works.

    Do you have the right code?

    Ninja Lead Moderator
    #384702

    <em>@viktorg 230749 wrote:</em><blockquote>Have you sorted this out? I have the same problem with joomla 1.6. I think this is a language issue (date format bug). With English activated on frontend it works.

    Do you have the right code?</blockquote>

    If you install the quickstart then front page articles are likely to have all the identical pink circle date labels. What is your current language? Please update supper admin login info here:
    http://support.joomlart.com/index.php?/Tickets/Ticket/View/68737
    I want to check it myself.

    nikema Friend
    #385557

    I have the same problem, with Englis Default Language it works, but not with other language.
    Any news?
    thx

    khoand Friend
    #385600

    Hi,
    Could you give me user+pass of administrator+ftp? I will solve your problem
    <em>@nikema 233175 wrote:</em><blockquote>I have the same problem, with Englis Default Language it works, but not with other language.
    Any news?
    thx</blockquote>

    nikema Friend
    #385606

    thx khoand, sent it by pm

    nikema Friend
    #385651

    I solved for my site, the problem is the timestamp value that isn’t correct created, the function

    strtotime( $created)

    works correct only when the site default language is English, so because strtotime accept only an english input, witih different languages fault.

    I bypassed it using directly the $created string to extract the day and the month of the date in the current language,
    Using this way:

    Original Code

    <!-- Date created -->
    <?php
    $createDay = date('d', strtotime( $created));
    $createMonth = date('M', strtotime( $created));
    //$createYear = date('Y', strtotime( $created));
    ?>
    <span class="date"><?php echo $createDay; ?></span>
    <span class="month"><?php echo $createMonth; ?></span>
    <!-- <span class="year"><?php echo $createYear; ?></span> -->

    Modified Code

    <!-- Date created -->
    <?php
    list($dd, $gg, $mm, $yy, $hh) = split(' ', $created);
    ?>
    <span class="date"><?php echo $gg; ?></span>
    <span class="month"><?php echo $mm; ?></span>

    I dont know if can be a general solution, but for my site work.:)

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

This topic contains 15 replies, has 6 voices, and was last updated by  nikema 13 years, 8 months ago.

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