K2 Date Format and Box Layout

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Feb 14, 2014 6:32 pm
Reply with quote
Report this post
Hi. New to K2 functionality and wondering if you can please tell me how to:
1) lose the left-side date box and put the date in the content area with my item
2) reformat the left-side date box so that the date is formatted with day, month, year
3) explain why the email link is taking me to a 403 page and how to format it

Please see attached screenshot.

Thanks so much!!
User avatar
Senior Boarder

teitbite
Fri Feb 14, 2014 8:41 pm
Reply with quote
Report this post
Hi

1 & 2. I'm afraid it's a designed element and the only way to change it is by changing it manualy in /html/com_k2/default/item.php

3. Looks like a SEF issue. Please show me Your site.
User avatar
Moderator

GK User
Fri Feb 14, 2014 10:55 pm
Reply with quote
Report this post
Thanks!

Is there a specific line of code I need to address in the item.php file? I've seen moderator responses before where Gavick support identifies the code and how to change it.

Regarding the email 403 error issue, here is a link to one of the pages of my site where the email appears:
http://javelinaco.cloudaccess.net/news- ... dates.html
User avatar
Senior Boarder

teitbite
Tue Feb 18, 2014 10:13 pm
Reply with quote
Report this post
Hi

In lines 106-108 of the file /html/com_k2/default/item.php You will find this code:

Code: Select all
                    <?php if($this->item->params->get('itemDateCreated')): ?>
                    <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $this->item->created, JText::_('M')); ?></span></time>
                    <?php endif; ?>


Remove this code and in line 103, which looks like this:

Code: Select all
                              <li class="date-hidden"><time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, JText::_('F j Y')); ?></time></li>


remove

Code: Select all
class="date-hidden"


from fist part of it. In the same line code:

Code: Select all
JText::_('F j Y')


will allow You to change the format. Here is a lint of available options: http://php.net/manual/pl/function.date.php

About the 404. I meant a page where the link I can click and is leading to a 404 page can bee seen.
User avatar
Moderator


cron