2013-01-23 63 views
0

我在我的网站中使用kunena,并且希望在用户在主页面或帖子页面中删除最近发布的日期时间。 我从语言文件中的变量中删除%H:%i,但时间显示仍然存在。 我该如何删除它?如何从dateTime中删除时间kunena1.7

回答

1

编辑kunena核心代码。 例如,在这条道路:

components/com_kunena/template/yourTemplate/view/message.php 

我编辑此:

<span class="kmsgdate kmsgdate-left" title="<?php echo CKunenaTimeformat::showDate($this->msg->time, 'config_post_dateformat_hover') ?>"> 
<?php echo CKunenaTimeformat::showDate($this->msg->time, 'config_post_dateformat'); ?> 
</span> 

要:

<span class="kmsgdate kmsgdate-left" title="<?php echo CKunenaTimeformat::showDate($this->msg->time, 'config_post_dateformat_hover') ?>"> 
<?php 
    $dateTime = CKunenaTimeformat::showDate($this->msg->time, 'config_post_dateformat'); 
    $date = explode(" ", $dateTime); 
    echo $date[1]; 
?> 
</span> 

而刚刚日期将被显示。

0

在Joomla的后端:

  1. 转到使用Kunena配置页
  2. 转到“前端”选项卡
  3. 有一个名为“留言时间格式”参数,你可以设置为 “隐藏

更新:

话虽如此,我意识到我正在使用Kunena 2.0.x,你也应该这样做。所以我建议升级到最新版本的Kunena,它仍然是Joomla 1.5兼容。

+0

是啊这是工作,但这个解决方案删除日期和时间都!我想删除jast时间。像这样:最后发表由管理员在24/1/13没有时间!谢谢 ... –