Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Joomla 如何在kunena1.7中从dateTime中删除时间_Joomla_Joomla1.5 - Fatal编程技术网

Joomla 如何在kunena1.7中从dateTime中删除时间

Joomla 如何在kunena1.7中从dateTime中删除时间,joomla,joomla1.5,Joomla,Joomla1.5,我在我的网站上使用kunena,我想在主页或帖子页面中删除用户在最新帖子中的datetime时间。 我从语言文件中的变量中删除了%H:%I,但仍然显示时间。 如何删除此项?在Joomla后端: 转到Kunena配置页面 转到“前端”选项卡 有一个名为“消息时间格式”的参数,您可以将其设置为“隐藏” 更新: 说到这里,我意识到我正在使用Kunena 2.0.x,您也应该这样做。因此,我建议升级到Kunena的最新版本,它仍然与Joomla 1.5兼容。编辑Kunena core的代码。 例如,在此

我在我的网站上使用kunena,我想在主页或帖子页面中删除用户在最新帖子中的datetime时间。 我从语言文件中的变量中删除了
%H:%I
,但仍然显示时间。 如何删除此项?

在Joomla后端:

  • 转到Kunena配置页面
  • 转到“前端”选项卡
  • 有一个名为“消息时间格式”的参数,您可以将其设置为“隐藏
  • 更新:

    说到这里,我意识到我正在使用Kunena 2.0.x,您也应该这样做。因此,我建议升级到Kunena的最新版本,它仍然与Joomla 1.5兼容。

    编辑Kunena core的代码。 例如,在此路径中:

    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>
    

    是的,这是可行的,但是这个解决方案同时删除了日期和时间!我想尽快离开。像这样:管理员最后一次发布于2013年1月24日,没有时间!谢谢
    
    <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>