,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;,},复制代码, , ,生成主题封面的函数在这里, 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; } 复制代码 生成主题封面的函数在这里