How to hide the date/time from News & Articles?

Hi all!

I need some assistance please.

I would like to hide the "date/time" from showing live on News and Articles on my site.

Obviously, I don't mind if they show on the Admin side of things. I still would like to know when I added what to where, but just do not want members to see when I add News and Articles to the site (just in case I go crazy one night and add 20 new articles at once in a row)

Hope this makes sense. I would love if someone could point me in the right direction.

Please let me know what folder/file path to take for edits and specifically what edits to be made.

Thanks in advance for your help,

VirtualGirl

Quote · 21 Sep 2009

Hi VirtualGirl

 

if you open news.php

 

first find the line

 

<div class="news_date"><?=date( str_replace('%','',$short_date_format), $news_arr['Date'] )?></div>

 

and remove it then find line

 

$sCode .= '<div class="news_date">'.$news_arr['Date'].'</div>';

 

and remove this.  This will remove the dates on the news page and article page.

 

Hope this helps

 

Gareth

Quote · 21 Sep 2009

Thanks, Gareth.

I made the changes you suggested and it cleared the dates/times from the actual 'News' and 'Articles' pages, but the NEWS block and ARTICLES block on the homepage still show dates for when items were posted.

Any ideas on how to make these dates go away?

Thanks so much for your help, I truly appreciate it!

VirtualGirl

Quote · 21 Sep 2009

Hi Virtual Girl

 

If you edit /inc/news.inc.php and change the following line:

 

$ret .= '<div class="newsInfo"><img src="' . getTemplateIcon( 'clock.gif' ) . '" />' . LocaledDataTime( $news_arr['Date'] ) . '</div>';

 

to

 

//$ret .= '<div class="newsInfo"><img src="' . getTemplateIcon( 'clock.gif' ) . '" />' . LocaledDataTime( $news_arr['Date'] ) . '</div>';

 

This will remove the date and clock.gif on the front page

 

Hope this helps

Quote · 22 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.