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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[转]简单弄个仿D4的附件加[+]

[复制链接]
hufanyun 发表于 2005-7-29 22:09:35 | 显示全部楼层 |阅读模式
作者:Clement

把模板文件post开头的模板的
  1.         <tr>
  2.         <td colspan=2 class="header">{lang attachment}  : </td>
  3.         </tr>
  4.         <!--{loop $multiattach $temp}-->
  5.         <tr>
  6.         <td bgcolor="{ALTBG1}">{lang attachment} <span class="smalltxt">({lang lower_than} $maxattachsize_kb kb)</span>:</td>
  7.         <td bgcolor="{ALTBG2}" class="smalltxt">
  8.         <!--{if $allowsetattachperm}-->{lang require} {lang credit_title} <input type="text" name="attachperm[]" value="0" size="5">&nbsp;<!--{/if}-->
  9.         <input type="file" name="attach[]" size="40">
  10.         <!--{if $attachextensions}--><br><br>{lang attachment_allow_exts}: $attachextensions<!--{/if}--></td>
  11.         </tr>
  12.         <!--{/loop}-->
复制代码


全部替换为


  1. {template post_attachments}
复制代码

上传附件到模板文件夹
演示
http://www.myqqpet.net

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
mxd-user 发表于 2005-7-29 22:10:58 | 显示全部楼层
沙发~稀饭,找这个插件好久了
回复

使用道具 举报

.阿峰 发表于 2005-8-30 22:02:22 | 显示全部楼层
模板文件post开头的模板,是指post_bbinsert.htm
                                          post_editpost.htm
                                          post_newreply.htm
                                          post_newthread.htm
                                          post_preview.htm
                                          post_sminsert.htm      
全部6个文件吗?

首先post_bbinsert.htm里面就没找到<tr>
        <td colspan=2 class="header">{lang attachment}  : </td>



修改哪几个呢?
回复

使用道具 举报

.阿峰 发表于 2005-8-30 22:29:35 | 显示全部楼层
测试过了,我实际只修改了post_newreply.htm和 post_newthread.htm
因为其他post开头的模板我都找不到<td colspan=2 class="header">{lang attachment}  : </td>
那是不是楼主的意思就是只修改这2个文件就行了??

修改这2个文件后发表新贴和发表回复下面的附件编辑样子是象D4的了。但编辑贴子时下面附件样子就是2.5的样子了。

我不懂,很笨的,研究了半天没明白,请帮我看看。
回复

使用道具 举报

tomsina 发表于 2005-8-31 02:52:00 | 显示全部楼层
先收藏
回复

使用道具 举报

dreamnet 发表于 2005-8-31 07:06:06 | 显示全部楼层
回复

使用道具 举报

.阿峰 发表于 2005-8-31 09:23:37 | 显示全部楼层
楼上的朋友~你提供的地址~“您已经登录,但您的账号或其所在的用户组无权访问当前页面。”
回复

使用道具 举报

dreamnet 发表于 2005-8-31 09:40:44 | 显示全部楼层
这个是freedz的网址,不是我的网站,呵呵
回复

使用道具 举报

mxd-user 发表于 2005-8-31 09:42:30 | 显示全部楼层

回复 #4 .阿峰 的帖子

还有editpost你没有改
回复

使用道具 举报

.阿峰 发表于 2005-9-1 00:56:04 | 显示全部楼层
谢谢楼上的装好了。

dreamnet 提供的贴是梦网版  很不错
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 08:39 , Processed in 0.097513 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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