Board logo

Title: [BBShack] 图片附件美化框 For Discuz 4.0 [Print this page]

Author: Phoenix001    Time: 2023-2-18 11:52     Title: 图片附件美化框 For Discuz 4.0

适用版本:  discuz!4.0
插件作者:  不记得了(忘了是那里找到的了)
插件修改:  viewthread.htm
修改难度:  易
数据库升级:  无

1、把stt.rar附件里的图片放到风格目录下

2、修改模版:viewthread.htm

找到:

    <img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);">

复制代码


改为:


    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
        <td background="{IMGDIR}/attach_img_2.gif"></td>
        <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
      </tr>
      <tr>
        <td background="{IMGDIR}/attach_img_4.gif"> </td>
        <td><img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);"></td>
        <td background="{IMGDIR}/attach_img_6.gif"> </td>
      </tr>
      <tr>
        <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
        <td background="{IMGDIR}/attach_img_8.gif"></td>
        <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
      </tr>
    </table>

复制代码


再找:

    <img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);">

复制代码


改为:

    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
        <td background="{IMGDIR}/attach_img_2.gif"></td>
        <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
      </tr>
      <tr>
        <td background="{IMGDIR}/attach_img_4.gif"> </td>
        <td><img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);"></td>
        <td background="{IMGDIR}/attach_img_6.gif"> </td>
      </tr>
      <tr>
        <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
        <td background="{IMGDIR}/attach_img_8.gif"></td>
        <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
      </tr>
    </table>

复制代码
Author: Phoenix001    Time: 2023-2-20 13:13

图片附件美化框 For Discuz 4.0
https://discuz.dismall.com/thread-218206-1-1.html
(出处: Discuz免费开源建站系统)


............................................................................................................................



适用版本:  discuz!4.0
插件作者:  不记得了(忘了是那里找到的了)
插件修改:  viewthread.htm
修改难度:  易
数据库升级:  无

1、把stt.rar附件里的图片放到风格目录下

2、修改模版:viewthread.htm

找到:

    <img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);">

复制代码


改为:


    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
        <td background="{IMGDIR}/attach_img_2.gif"></td>
        <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
      </tr>
      <tr>
        <td background="{IMGDIR}/attach_img_4.gif"> </td>
        <td><img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);"></td>
        <td background="{IMGDIR}/attach_img_6.gif"> </td>
      </tr>
      <tr>
        <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
        <td background="{IMGDIR}/attach_img_8.gif"></td>
        <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
      </tr>
    </table>

复制代码


再找:

    <img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);">

复制代码


改为:

    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
        <td background="{IMGDIR}/attach_img_2.gif"></td>
        <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
      </tr>
      <tr>
        <td background="{IMGDIR}/attach_img_4.gif"> </td>
        <td><img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);"></td>
        <td background="{IMGDIR}/attach_img_6.gif"> </td>
      </tr>
      <tr>
        <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
        <td background="{IMGDIR}/attach_img_8.gif"></td>
        <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
      </tr>
    </table>

复制代码

[ 本帖最后由 szqyn 于 2006-1-7 18:17 编辑 ]

Image attachment: SpxImage4.gif (2023-2-20 13:13, 63.79 K) / Number of times this attachment has been downloaded 53
http://cloud.caffz.com:12345/mud/AbyssalSwamp/index/attachment.php?aid=1045



Image attachment: SpxImage5.gif (2023-2-20 13:13, 69.17 K) / Number of times this attachment has been downloaded 55
http://cloud.caffz.com:12345/mud/AbyssalSwamp/index/attachment.php?aid=1046



Att: stt.rar (2023-2-20 13:13, 1.35 K) / Number of times this attachment has been downloaded 52
http://cloud.caffz.com:12345/mud/AbyssalSwamp/index/attachment.php?aid=1047




Welcome AbyssalSwamp (http://cloud.caffz.com:12345/mud/AbyssalSwamp/index/) caffz.com