此插件修改自jiangcat
【下载】BT信息显示插件
jiangcat
如有问题,请各位大大们多多包含>_
部分人说的附件错误原因:-___________---___-照搬JIANGCAT的错误-_-
我自己修改的没付上-__-
原因:
代码:
===================================================================搜索:===================================================================牋牋 } else {牋牋牋$temp['attach'] .= "cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' />爏essionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}' title='' class='edit' target='_blank'>{$row['filename']}( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )
";牋牋 }===================================================================替换为:===================================================================牋牋 }牋牋 else if ( $row['extension'] == 'torrent' )牋牋 {牋牋牋$temp['torrent'] .= $this->generate_torrent_table($row);牋牋 }牋牋 else {牋牋牋$temp['attach'] .= "cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' />爏essionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}' title='' class='edit' target='_blank'>{$row['filename']}( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )
";牋牋 }
请修正为:
代码:
===================================================================搜索:===================================================================牋牋 } else {牋牋牋$temp['attach'] .= "cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' />爏essionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}' title='' class='edit' target='_blank'>{$row['filename']}( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )
";牋牋 }===================================================================替换为:===================================================================牋牋 }else if( $row['extension'] == 'torrent' ){牋牋牋$temp['torrent'] .= $this->generate_torrent_table($row);牋牋 }else{牋牋牋$temp['attach'] .= "cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' />爏essionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}' title='' class='edit' target='_blank'>{$row['filename']}( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )
";牋牋 }
此帖由 brlily 在 2005-09-20 01:27 进行编辑...