Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 多媒体附件的在线预览forD4

[复制链接]
如如何 发表于 2005-12-21 01:12:01 | 显示全部楼层
很好,已经装了

[ 本帖最后由 如如何 于 2005-12-21 03:49 编辑 ]
回复

使用道具 举报

Eor 发表于 2005-12-21 01:45:41 | 显示全部楼层
图片附件没有了下载地址啊!!!!!
楼主帮忙改改啊!
回复

使用道具 举报

 楼主| 晶莹雪花 发表于 2005-12-21 08:45:36 | 显示全部楼层
原帖由 ppll0001 于 2005-12-21 00:23 发表
我附件是图片可以直接显示在帖子里,图片显示+上了边框是很漂亮,可是为什么帖子里只有图片而没有RAR和其他格式的附件的时候在帖子的底部还是会显示附件描述的表框呢?这样很不美观啊!!楼主能改下么??



一点笔误,呵呵,将<!--仿d3附件排列-->和<!--仿d3附件排列结束-->之间的内容用2楼的内容重新替换一下:)

二楼已经更新了
回复

使用道具 举报

 楼主| 晶莹雪花 发表于 2005-12-21 08:47:30 | 显示全部楼层
原帖由 Eor 于 2005-12-21 01:45 发表
图片附件没有了下载地址啊!!!!!
楼主帮忙改改啊!



图片附件不需要下载地址吧....

直接右键另存为..........
回复

使用道具 举报

bonusboy29 发表于 2005-12-21 09:14:57 | 显示全部楼层
有个问题了 如果我先上传 不是图片的文件后再上传图片 

就显示不正常了  这个怎么办
回复

使用道具 举报

yjflq2002 发表于 2005-12-21 09:17:04 | 显示全部楼层
不错,我可以不用再研究附件表格化了。
回复

使用道具 举报

风逍遥 发表于 2005-12-21 09:31:07 | 显示全部楼层
不知道资源占用大不大哦..
回复

使用道具 举报

 楼主| 晶莹雪花 发表于 2005-12-21 09:42:31 | 显示全部楼层
原帖由 bonusboy29 于 2005-12-21 09:14 发表
有个问题了 如果我先上传 不是图片的文件后再上传图片 

就显示不正常了  这个怎么办


嗯,好像是有这个问题,原本不想动php文件,看来不动不行了,一会提供修改方法
回复

使用道具 举报

 楼主| 晶莹雪花 发表于 2005-12-21 09:57:40 | 显示全部楼层
原帖由 bonusboy29 于 2005-12-21 09:14 发表
有个问题了 如果我先上传 不是图片的文件后再上传图片 

就显示不正常了  这个怎么办


二楼已更新,对照修改就可以了
回复

使用道具 举报

bonusboy29 发表于 2005-12-21 10:29:21 | 显示全部楼层
原帖由 晶莹雪花 于 2005-12-21 09:57 发表


二楼已更新,对照修改就可以了


 安装成功 非常好看 谢谢

我自己改了一小点,图片描述显示在图片上方,mouse移没有东东 这样看起来好看好了 
图片如果设置了权限,只会显示在附件里表格里。

<!--仿d3附件排列-->
                <!--{else}-->
                                <!--{loop $post['attachimg'] $attach}-->
                                        <br><br>
                                        <!--{if $attach['attachimg']}--><div style="text-align:center">
                                                <!--{if $attachrefcheck}-->
{$attach[description]}<br><br>
                                                        <img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>800) {this.resized=true; this.width=800;}" 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);" id="imgatt">
                                                <!--{else}-->
{$attach[description]}<br><br>
                                                        <img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>800) {this.resized=true; this.width=800;}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);" id="imgatt">
                                                <!--{/if}--></div>
                                        <!--{/if}-->
                                <!--{/loop}-->
                        <!--{if ($post['attachments'])}-->
                                <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">

                                <tr align="center" class="header"><td colspan="7">本贴包含附件</td></tr>

                                <tr class="category" align="center"><td width="40%">附件<td width="20%">更新时间<td width="10%">文件大小<td width="5%">下载<td width="10%">{lang readperm}<td width="15%">描述</td></tr>

                                        <!--{loop $post['attachments'] $attach}-->
                                                <!--{if !$attach['attachimg']}-->
                                                <tr class="altbg1" align="center" ><td align="left">                                            
                                                        $attach[attachicon] <!--{if !$discuz_uid}-->$attach[filename](<a href="logging.php?action=login">登录</a>后下载)<!--{else}--><a href="attachment.php?aid=$attach[aid]" target="_blank" class="bold">$attach[filename]</a><!--{/if}--><td>
                                                        $attach[dateline]<td>
                                                        $attach[attachsize]<td>
                                                        <span class="smalltxt">$attach[downloads]</span><td>
                                                        <!--{if $attach['readperm']}-->$attach[readperm]<!--{/if}--><td align="left">
                                                        {$attach[description]}</tr>
                                                <!--{/if}-->
                                <!--{/loop}--></table>
                        <!--{/if}--><!--{/if}-->
<!--仿d3附件排列结束-->

[ 本帖最后由 bonusboy29 于 2005-12-21 10:33 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-18 15:45 , Processed in 0.155673 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表