Page 1 of 1

How to hide date in a post

Posted: 25 Jan 2009, 15:36
by Pietro
Hi guys ...
Plesa, I need your help ...
I have to hide the date in a post, but I do not know how ... :(
I found this topics:
viewtopic.php?f=2&t=810&p=4680&hilit=hide+data#p4680
"EDIT: I found it! views/phocaguestbook/tmpl/default.php and comment out line 180 and the date disappears from the front end entries display"
And I did ...
I mean, I found line 180, but nothing appens ...

// if ($a_count > $a_end_count)
// {
// $end_a = "></a>"; // close the a tag if there is a open a tag
// in case <a href> ... <a href ></a>
// in case <a ... <a href >></a>
// }
// else

Can You help me, please! :(
Thanks a lot
Pietro

Re: How to hide date in a post

Posted: 26 Jan 2009, 15:02
by Jan
Hi, you should change this file:
components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

on row 180 there is:

Code: Select all

$msgpg .= '<p align="right" style="padding-right:10px;"><small style="color:'.$this->css['secondfontcolor'].'">' . JHTML::_('date',  $values->date, JText::_( $this->tmpl['date_format'] ) ) . '</small>';
this you should to comment...

Jan

Re: How to hide date in a post - SOLVED! ^_^

Posted: 26 Jan 2009, 15:40
by Pietro
Great ...
Thanks a lot, I get it ...
Have a nice day!
Pietro ^_^

Re: How to hide date in a post

Posted: 29 Jan 2009, 14:23
by Jan
Ok