Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Robin Friend
    #200979

    Hi,

    The published time stamp on a few of my K2 articles state 00:00 as the time although that time is wrong. Then, the time doesn’t show up at all on the other articles. Also the words “published date” is missing. Where can I control these settings?

    Here’s an example of article with the the wrong time stamp: http://staging1.harambeetoday.org/index.php/economics/item/1564-nigeria-boosts-efforts-to-obtain-high-yield-maize-production

    Here’s an example of article with no time stamp: http://staging1.harambeetoday.org/index.php/governance

    Ninja Lead Moderator
    #548110

    It’s very hard to suggest the solution for you because I would like to check the configuration from back-end of your site with K2 article. You can send me admin login of your site via private message. I will help you to check it.

    Robin Friend
    #549629

    Hi there,

    I just sent it to you. Also, can you provide instructions for me so I learn to do it?

    Thanks for looking into this!

    Ninja Lead Moderator
    #549683

    <em>@rwold 443736 wrote:</em><blockquote>Hi,

    The published time stamp on a few of my K2 articles state 00:00 as the time although that time is wrong. Then, the time doesn’t show up at all on the other articles. Also the words “published date” is missing. Where can I control these settings?

    Here’s an example of article with the the wrong time stamp: http://staging1.harambeetoday.org/index.php/economics/item/1564-nigeria-boosts-efforts-to-obtain-high-yield-maize-production

    Here’s an example of article with no time stamp: http://staging1.harambeetoday.org/index.php/governance</blockquote>

    I see both links above are loading CreateDate and not PublishDate. If you wish to show PublishDate you can change as:

    Open templates/ja_teline_iv_t3/html/com_k2/templates/ja_teline_iv/category_item.php and templates/ja_teline_iv_t3/html/com_k2/templates/ja_teline_iv/item.php files

    Find and change

    <?php if($this->item->params->get('itemDateCreated')): ?>
    <!-- Date created -->
    <span class="itemDateCreated">
    <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3')); ?>
    </span>
    <?php endif; ?>

    To

    <span class="itemdatePublished">
    <?php echo JHTML::_('date', $this->item->publish_up , JText::_('K2_DATE_FORMAT_LC2')); ?>
    </span>

    and apply the same that with three folders:

    <blockquote>templates/ja_teline_iv_t3/html/com_k2/templates/default/
    templates/ja_teline_iv_t3/html/com_k2/templates/ja_teline_iv_blog/
    templates/ja_teline_iv_t3/html/com_k2/templates/ja_teline_iv_interview/</blockquote>

    Let me know if it helps

    Robin Friend
    #550292

    i see a different code


    1. Screen-Shot-2014-09-21-at-5.43.43-PM
    Ninja Lead Moderator
    #550317

    <em>@rwold 446748 wrote:</em><blockquote>i see a different code

    </blockquote>

    You can change as my suggested above

    From

    <?php if($this->item->params->get('itemDateCreated')): ?>
    <?php
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = JText::_(strtoupper(date('F', strtotime( $this->item->created )))."_SHORT");
    $createYear = date('Y', strtotime( $this->item->created));
    ?>
    <span class="date"><?php echo $createDay; ?></span>
    <span class="month-year">
    <strong><?php echo $createMonth; ?></strong>
    <strong><?php echo $createYear; ?></strong>
    </span>
    <?php endif; ?>

    To

    <span class="itemdatePublished">
    <?php echo JHTML::_('date', $this->item->publish_up , JText::_('K2_DATE_FORMAT_LC2')); ?>
    </span>

    (P/S: I just changed directly on your site, please check it again)

    Robin Friend
    #552349

    Hi there:

    It still isn’t working. I contacted K2 and they couldn’t help. Here is the link to the thread http://getk2.org/community/English-K2-Community/198637-time-stamp-incorrect

    Ninja Lead Moderator
    #552809

    I have been trying to help you but it is related to k2 component and I am sorry there is little I can do now.

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

This topic contains 8 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 6 months ago.

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