Support jOOmla! Autoit!
 
最新文章模块增加发布时间的hack 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-09-09 | View Count View: 11779 | Digg Count Digg: 63

最新文章 mod 默认是没有时间显示的..

方法 mod_latestnews.php:

搜索:

SELECT a.id, a.title

全部替换为:

SELECT a.id, a.title, a.created

最后末尾的地方:

<?php echo $row->title; ?></a>

后面增加:

<small><?php echo $row->created; ?></small>

而这句可以换为:

<?php echo mosFormatDate( $row->created ); ?>

<?php echo substr(mosFormatDate( $row->created ),2); ?>

其实直接把 $row->created 替换为:

substr( $row->created,0,10 )

substr( $row->created,6,4 )

substr( $row->created,12,4 )

都是可行的,只是里面的数字可能要改下而已. 

这也只是现实时间格式不同而已.

End. Autoit

 


Permanent URL: http://www.autoit.cn/index.php/content/view/78/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: 最新文章  latestnews  时间  hack  

 
Akocomment 出现验证码错误的修正方法   去除后台页脚 1.0.11 里新增的安全及版本检查显示