Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • gianco Friend
    #191675

    How change the “January 1970” date in Events category blog?

    Another problem is the date of the event, It works only with past events…
    there is the possibility to change the publishing date to make it to appear for a date in future.

    ther is any documentation for this?

    thanks

    Ninja Lead Moderator
    #510199

    I have reported this bug to development team and they will fix and release it next version. But you can fix this problem with my solution

    Open templates/ja_muzic/html/com_content/category/event.php file

    Line 207

    $orderdate = $this->params->get('order_date');

    change to

    $orderdate = $this->params->get('order_date');
    if($orderdate == 'published') $orderdate='publish_up';

    Let me know if it helps

    dpchap015 Friend
    #510524

    <em>@Ninja Lead 395187 wrote:</em><blockquote>I have reported this bug to development team and they will fix and release it next version. But you can fix this problem with my solution

    Open templates/ja_muzic/html/com_content/category/event.php file

    Line 207

    $orderdate = $this->params->get('order_date');

    change to

    $orderdate = $this->params->get('order_date');
    if($orderdate == 'published') $orderdate='publish_up';

    Let me know if it helps</blockquote>

    fix of this bug

    you can post the event that are in future date. by created date

    first you should select the created date order from blog layout option of events menu.
    like this http://awesomescreenshot.com/00b1w19udb
    and change the code

    /templates/ja_muzic/html/com_content/category/event-item.php

    replace this code

    <span class=”day”><?php //echo JHtml::_(‘date’, $this->item->publish_up, JText::_(‘TPL_DATE_FORMAT_DAY’));?></span>
    <span class=”month”><?php //echo JHtml::_(‘date’, $this->item->publish_up, JText::_(‘TPL_DATE_FORMAT_MONTH’));?></span>

    by this

    <span class=”day”><?php echo JHtml::_(‘date’, $this->item->created, JText::_(‘TPL_DATE_FORMAT_DAY’));?></span>
    <span class=”month”><?php echo JHtml::_(‘date’, $this->item->created, JText::_(‘TPL_DATE_FORMAT_MONTH’));?></span>

    now event blog layout will show the date of creation. like 7-2-2014
    http://awesomescreenshot.com/0211w1da53

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

This topic contains 3 replies, has 3 voices, and was last updated by  dpchap015 11 years ago.

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