dz开启图片模式后,生成缩略图文件代码?

discuz教程
source\function\function_forum.php 中function getthreadcover($tid, $cover = 0, $getfilename = 0) { global $_G; if(empty($tid)) { return ''; } $coverpath = ''; $covername = 'threadcover/'.substr(md5($tid), 0, 2).'/'.substr(md5($tid), 2, 2).'/'.$tid.'.jpg'; if($getfilename) { return $covername; } if($cover) { $coverpath = ($cover < 0 ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']).'forum/'.$covername; } return $coverpath;}复制代码生成主题封面的函数在这里

标签: