v1.1
参照dz插件弄得,不足之处还请指正.
修改
includes\functions_showthread.php
注意修改后要保存为utf-8格式,否则会有乱码。
查找
代码:
$link_name = urlencode($row['filename']);
在后面添加
代码:
$exiffile=$bboptions[uploadurl]."/".$row['attachpath'].'/'.$row['location'];<br /> $exif = @read_exif_data("$exiffile",0,true);<br /> <br /> if ($exif['EXIF']['ExifVersion']){<br /> $exifinfo="EXIF版本:".$exif['EXIF']['ExifVersion']." 相机品牌:".$exif['IFD0']['Make']." 相机型号:".$exif['IFD0']['Model']." 光圈:".$exif['COMPUTED']['ApertureFNumber']." 快门:".$exif['EXIF']['ExposureTime']." 感光度ISO:".$exif['EXIF'][ISOSpeedRatings];<br /> }<br /><br /><br /><br />
查找
代码:
$temp['thumb'] .= "<a href='./../../{$showfile}' title='{$row['filename']} - ".$forums->lang['_filesize'].$forums->func->fetch_number_format( $row['filesize'], true ).", ".$forums->lang['_clicknums'].": {$row['counter']}' target='_blank'><img src='./../../{$showthumb}' width='{$row['thumbwidth']}' height='{$row['thumbheight']}' class='attach' alt='{$row['filename']} - ".$forums->lang['_filesize'].$forums->func->fetch_number_format( $row['filesize'], true ).", ".$forums->lang['_clicknums'].": {$row['counter']} (".$forums->lang['_largeviews'].")' /></a> ";
修改为
代码:
$temp['thumb'] .= "<a href='./../../{$showfile}' title='{$row['filename']} - ".$forums->lang['_filesize'].$forums->func->fetch_number_format( $row['filesize'], true ).", ".$forums->lang['_clicknums'].": {$row['counter']}' target='_blank'><img src='./../../{$showthumb}' width='{$row['thumbwidth']}' height='{$row['thumbheight']}' class='attach' alt='{$row['filename']} - ".$forums->lang['_filesize'].$forums->func->fetch_number_format( $row['filesize'], true ).", ".$forums->lang['_clicknums'].": {$row['counter']} (".$forums->lang['_largeviews']."),$exifinfo' /></a> <br><font color='#DD0000'>$exifinfo</font>";
查找
代码:
$temp['image'] .= "<img src='./../../{$showfile}' alt='".$forums->lang['_uploadimages']."' [/img] ='javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;' onsubmit='javascript:window.open(this.src);' style='CURSOR: pointer' /> ";
修改为
代码:
$temp['image'] .= "<img src='./../../{$showfile}' alt='".$forums->lang['_uploadimages'].",".$exifinfo."' [/img] ='javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;' onsubmit='javascript:window.open(this.src);' style='CURSOR: pointer' /> <br><font color='#DD0000'>$exifinfo</font>";
查找
代码:
$temp['attach'] .= "<img src='images/".$bbuserinfo['imgurl']."/{$forums->cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' /> <a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$link_name}&attachpath={$row['attachpath']}' title='' class='edit' target='_blank'>{$row['filename']}</a><span class='edit'>( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )</span><br />";
修改为
代码:
$temp['attach'] .= "<img src='images/".$bbuserinfo['imgurl']."/{$forums->cache['attachmenttype'][ $row['extension'] ]['attachimg']}' border='0' alt='".$forums->lang['_uploadattachs']."' /> <a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$link_name}&attachpath={$row['attachpath']}' title='' class='edit' target='_blank'>{$row['filename']}</a><span class='edit'>( ".$forums->lang['_filesize'].": ".$forums->func->fetch_number_format($row['filesize'], 1)." ".$forums->lang['_clicknums'].": {$row['counter']} )</span><br /><font color='#DD0000'>$exifinfo</font>";
注意修改后要保存为utf-8格式,否则会有乱码。鼠标悬停在图片上即可看到exif信息
此帖由 bullfrog 在 2006-01-18 10:00 进行编辑...