打开\source\function\function_group.php
if($data['status'] == 3) { $imgwh = array('icon' => array('48', '48'), 'banner' => array('720', '168')); require_once libfile('class/image'); $img = new image; $img->Thumb($upload->attach['target'], './'.$uploadtype.'/'.$upload->attach['attachment'], $imgwh[$type][0], $imgwh[$type][1], 'fixwr'); } return $upload->attach['attachment']; }
可增加一个字段:
if($data['status'] == 3) { $imgwh = array('icon' => array('48', '48'), 'banner' => array('720', '168'), 'hkshadow' => array('91', '91')); require_once libfile('class/image'); $img = new image; $img->Thumb($upload->attach['target'], './'.$uploadtype.'/'.$upload->attach['attachment'], $imgwh[$type][0], $imgwh[$type][1], 'fixwr'); } return $upload->attach['attachment']; }
然后打开\source\module\forum\forum_group.php