Remove item creation date from k2 item

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
Sat Nov 03, 2012 11:41 pm
Reply with quote
Report this post
hi guys!
Ho do i remove item creation date from an k2 item only for a category or an item that i want tge date to not appear anymore?
User avatar
Platinum Boarder

GK User
Sun Nov 04, 2012 1:59 pm
Reply with quote
Report this post
Hi

Please open this file ../gk_startup/html/com_k2/templates/default/item.php and find this line:

Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->created, 'Y-m-d'); ?>"> <?php echo JHTML::_('date', $this->item->created, JText::_('d M')); ?> </time>


replace it with

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



It should work now on k2 item view.
K2 item on category view is working fine.

Naturally you need to configure on K2 category or item view to display or not date.

Cheers
User avatar
Platinum Boarder

GK User
Mon Nov 05, 2012 7:43 pm
Reply with quote
Report this post
Ok the date was removed but the content width doesn't automatically adjust to the left. It stays in the center. Also the content seems to be cut off on the right as well. I don't have sidebar turned on for this particular page so not sure why the width doesn't extend. I attached an image.
How can I set it up so if nothing is turned on the content will spread across the entire width of the template both left and right?
Image

I also have Leave a Comment showing as well and I want to hide that. I attached an image as well of this.
In my item view options I have everything turned off except social, intro text and full text but Leave a Comment still shows. How can I remove this?
Image

Thanks
User avatar
Junior Boarder

GK User
Tue Nov 13, 2012 5:04 am
Reply with quote
Report this post
I am having the same problem , i replaced the code provided above and the date is gone but the text is still in the middle of the article ? any suggestions >? also the Leave a Comment is still appearing .
C
User avatar
Fresh Boarder

GK User
Tue Nov 20, 2012 3:04 am
Reply with quote
Report this post
Any word on how to fix this?
User avatar
Junior Boarder

GK User
Tue Nov 20, 2012 2:00 pm
Reply with quote
Report this post
Hi again

Sorry about the delay.
Please enable the use of css override on template parameters > advanced settings and them add this line on ../templates/gk_startup/css/override.css file.

Code: Select all
aside + .k2box { margin-left: 0!important }


Cheers ;)
User avatar
Platinum Boarder

GK User
Wed Nov 21, 2012 3:21 am
Reply with quote
Report this post
Perfect...that worked to align it to the left however, the words "Leave a comment " is still showing when I have it turned off.
User avatar
Junior Boarder

GK User
Fri Nov 30, 2012 8:58 pm
Reply with quote
Report this post
Hey Guys...any word on this? I'm trying to remove the words Leave a Comment but I don't want to disable this option permanently. Right now I have this option turned off in K2 item view options but it still shows. However, if there is an item where I want to turn on comments I want to have that ability as well.
User avatar
Junior Boarder

GK User
Fri Nov 30, 2012 10:07 pm
Reply with quote
Report this post
Hi

Sorry about the delay.
You are right - there's a problem there.
I've been busy on the new template, but this night i will take a look and see what's wrong.

I'll get back to you.

Cheers
User avatar
Platinum Boarder

GK User
Thu Dec 13, 2012 12:20 pm
Reply with quote
Report this post
Hi Seichinha,

Do you no anything more about the solution for the problem?

Thanks.
User avatar
Fresh Boarder

GK User
Sat Dec 22, 2012 8:16 pm
Reply with quote
Report this post
Does anyone resolve this frustrating issue?
User avatar
Platinum Boarder

GK User
Sat Dec 29, 2012 6:40 am
Reply with quote
Report this post
Please Gavick help us!
User avatar
Platinum Boarder

GK User
Thu Jan 03, 2013 12:30 pm
Reply with quote
Report this post
Gavick help us please!
User avatar
Fresh Boarder

GK User
Mon Jan 14, 2013 7:39 pm
Reply with quote
Report this post
I should say i regret about this membership, templates doesn't work as supposed to, and support is poor, great i gave my money away for an awful product.
User avatar
Fresh Boarder


cron