原创者:fuyun网站:http://www.lanjian.net/功能:
在图片附件后显示EXIF信息。
界面截图:
附件:
您所在的用户组无法下载或查看附件说明:
本插件运行环境为.Net Framework 2.0,需要1.1的朋友请下载源码用vs2003编译即可。
已经增加.Net Framework 1.1的库下载。安装步骤:1、上传 Lanjian.Discuz.Plugins.dll 到bin目录中。
2、打开模板目录中的_attachmentinfo.htm文件,查找以下内容

Code
onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口浏览图片\nCTRL+Mouse 滚轮可放大/缩小';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='点击在新窗口浏览图片\nCTRL+Mouse 滚轮可放大/缩小';}" onclick="if(!this.resized) { return true; } else { window.open(this.src); }" onmousewheel="return imgzoom(this);" />
3、在后面增加

Code
<br />
<%csharp%>
templateBuilder.Append(ImageExifFactory.GetImageExif(&amp;quot;upload/&amp;quot; + attachment[&amp;quot;filename&amp;quot;].ToString()));
<%/csharp%>
4、在后台重新生成showtopic.htm页面,全部生成也行。
以上4不只能在未插入的图片附件后添加EXIF信息,
如果要在插入的附件图片后也显示EXIF信息的话,就必须要修改源代码了,步骤如下:
1、打开Forum\PostFactory.cs文件
2、找到以下内容

Code
onload=\&amp;quot;if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口浏览图片 CTRL+鼠标滚轮可放大/缩小';}\&amp;quot; onmouseover=\&amp;quot;if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='点击在新窗口浏览图片 CTRL+Mouse 滚轮可放大/缩小';}\&amp;quot; onclick=\&amp;quot;if(!this.resized) { return true; } else { window.open(this.src); }\&amp;quot; onmousewheel=\&amp;quot;return imgzoom(this);\&amp;quot; />“
3、去掉行尾的引号,增加以下内容。

Code
</br>&amp;quot; + ImageExifFactory.GetImageExif(&amp;quot;upload/&amp;quot; + drAttach[&amp;quot;filename&amp;quot;].ToString());
4、编译项目,将Discuz.Forum.dll上传到网站的bin目录下。
您可能对 [建站软件] 的这些文章也感兴趣:
附件:
Lanjian.Discuz.Plugins.rar 附件:
Lanjian.Discuz.Plugins For 1.1.rar