DISCUZ 6.0 发新贴后标题前自动加入当天日期

作者: csbde 分类: Other 发布时间: 2009-01-15 11:10

发新贴后标题前自动加入当天日期 1、找到include/newthread.inc.php 2、查找 if($post_invalid = checkpost()) { showmessage($post_invalid); } 3、替换为 $date_fid = "2,4,6,8"; //需要加日期的版块,用逗号分隔 $date_fid = ",".$date_fid.","; if(strstr($date_fid, ",".$fid.",")){ $date = gmdate("y/m/d", $timestamp + $timeoffset * 3600); $subject = "[".$date."] ".$subject;} ===如果需要所有版块都自动加日期,则替换为=== $date = gmdate("y/m/d", $timestamp + $timeoffset * 3600); $subject = "[".$date."] ".$subject; 4、更新缓存 ]]>

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

一条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注