夜间模式
请选择 进入手机版 | 继续访问电脑版

BoonKiong.com2024™

      走好人生路、唱好人生这首歌。
人气 151

附件下载超美化

文強已获得官方认证 2023-6-25 11:51



1.jpg


2.jpg


打开 discuzcode 模板,找到:

[CSS] 纯文本查看 复制代码
                        <img src="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" alt="$attach[filename]" />
                <!--{/if}-->
        <!--{/if}-->
        <!--{else}-->


将下边的所有代码全部替换为:

[CSS] 纯文本查看 复制代码
<style type="text/css">
<!--
.typeoption table ,.typeoption td { width: 300px; font-size:12px;}
.movie{
float:left;  

}
-->
</style>
<div class="typeoption">
<div class="movie">
        $attach[attachicon]
</div>
<div style="margin-left: 38px;width: 57%;height:auto; border:1px dashed #F30;">
<table cellpadding="0" cellspacing="0" class="formtable datatable" >
<tr class="colplural">
<th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
</tr>
<tr>
<th>附件大小:</th><td>$attach[attachsize]</td>
</tr><tr class="colplural">
<th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;">{lang attachment_buy}</a>] [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
</tr><tr>
<th>{lang downloads}:</th><td>$attach[downloads]</td>
</tr><tr class="colplural">
<th>更新时间:</th><td>$attach[dateline]</td>
</tr><tr>
<th>下载地址:</th><td>
<a href="attachment.php?aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $GLOBALS[attachcredits]} onclick="return creditconfirm('{$GLOBALS[attachcredits]}');"{/if}><img src="https://boonkiong.com/b/is/p/download.gif" border="0" alt="普通方式下载 - $attach[filename]" /></a>
</td>
</tr>
</table>
</div>
        <!--{/if}-->
        </dl>
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}

function attachinpost($attach) {
global $attachrefcheck, $extcredits, $creditstrans, $creditstransextra, $ftp, $thumbstatus, $attachimgpost;
$attach['refcheck'] = (!$attach['remote'] && $attachrefcheck) || ($attach['remote'] && ($ftp['hideurl'] || ($attach['isimage'] && $attachimgpost && strtolower(substr($ftp['attachurl'], 0, 3)) == 'ftp')));
$aidencode = aidencode($attach[aid]);
}-->
<!--{block return}-->
        <!--{if !isset($attach['unpayed'])}-->
                <!--{if $attach['attachimg']}-->
                        <!--{if !IS_ROBOT}-->
                                <span style="position: absolute; display: none" id="attach_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'13'})"><img src="{IMGDIR}/attachimg.gif" border="0"></span>
                                <!--{if $thumbstatus && $attach['thumb']}-->
                                        <a href="javascript:;"><img onclick="zoom(this, '{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes&nothumb=yes{else}$attach[url]/$attach[attachment]{/if}')" src="{if $attach[refcheck]}attachment.php?aid=$aidencode{else}$attach[url]/$attach[attachment].thumb.jpg{/if}" border="0" id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></a>
                                <!--{else}-->
                                        {eval $GLOBALS[aimgs][$attach[pid]][] = $attach[aid];}{eval $widthcode = attachwidth($attach['width']);}
                                        <img src="images/common/none.gif" file="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" alt="$attach[filename]" />
                                <!--{/if}-->
                                <div class="t_attach" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">                                
                                <a href="attachment.php?aid=$aidencode&nothumb=yes" title="$attach[filename]" target="_blank"><strong>{lang download}</strong></a> ($attach[attachsize])<br />
                                <!--{if $attach[description]}-->$attach[description]<br /><!--{/if}-->
                        <!--{else}-->
                                <dl class="t_attachlist attachimg">
                                <!--{if !$attach['price'] || $attach['payed']}-->
                                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                                        <img src="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" alt="$attach[filename]" />
                                <!--{/if}-->
                                <div style="display: none">
                        <!--{/if}-->
                <!--{else}-->

<style type="text/css">
<!--
.typeoption table ,.typeoption td { width: 300px; font-size:12px;}
.movie{
float:left;  

}
-->
</style>
<div class="typeoption">
<div class="movie">
        $attach[attachicon]
</div>
<div style="margin-left: 38px;width: 57%;height:auto; border:1px dashed #F30;">
<table cellpadding="0" cellspacing="0" class="formtable datatable" >
<tr class="colplural">
<th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
</tr>
<tr>
<th>附件大小:</th><td>$attach[attachsize]</td>
</tr><tr class="colplural">
<th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
</tr><tr>
<th>{lang downloads}:</th><td>$attach[downloads]</td>
</tr><tr class="colplural">
<th>更新时间:</th><td>$attach[dateline]</td>
</tr><tr>
<th>下载地址:</th><td>
<a href="attachment.php?aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $GLOBALS[attachcredits]} onclick="return creditconfirm('{$GLOBALS[attachcredits]}');"{/if}><img src="https://boonkiong.com/b/is/p/download.gif" border="0" alt="普通方式下载 - $attach[filename]" /></a>
</td>
</tr>
</table>
</div>
                        <div class="t_attach" id="attach_$attach[aid]_menu" style="position: absolute; display: none">
                        <!--{if $attach['description']}-->$attach[description]<br /><!--{/if}-->
                        {lang downloads}: $attach[downloads]<br />
                        <!--{if $attach['readperm']}-->{lang readperm}: $attach[readperm]<br /><!--{/if}-->
                <!--{/if}-->
                <!--{if $attach['price']}-->
                        {lang price}: {$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]}<br />
                        <a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">[{lang pay_view}]</a>
                <!--{/if}-->
                <div class="t_smallfont">$attach[dateline]</div>
                <!--{if !$attach['attachimg'] && $GLOBALS['attachcredits']}-->{lang attachcredits} $GLOBALS[attachcredits]<br /><!--{/if}-->
                </div>
        <!--{else}-->

<style type="text/css">
<!--
.typeoption table ,.typeoption td { width: 300px; font-size:12px;}
.movie{
float:left;  

}
-->
</style>
<div class="typeoption">
<div class="movie">
        $attach[attachicon]
</div>
<div style="margin-left: 38px;width: 57%;height:auto; border:1px dashed #F30;">
<table cellpadding="0" cellspacing="0" class="formtable datatable" >
<tr class="colplural">
<th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
</tr>
<tr>
<th>附件大小:</th><td>$attach[attachsize]</td>
</tr><tr class="colplural">
<th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;">{lang attachment_buy}</a>] [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
</tr><tr>
<th>{lang downloads}:</th><td>$attach[downloads]</td>
</tr><tr class="colplural">
<th>更新时间:</th><td>$attach[dateline]</td>
</tr><tr>
<th>下载地址:</th><td>
<strong><font color=#ff0000>{lang attach_pay},请先购买再下载...</font></strong>
</td>
</tr>
</table>
</div>
        <!--{/if}-->
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}

}-->


代码中有个图片文件:

1.gif






上一篇:sclub代码-又一款帖子评分美化
下一篇:签到插件 Ver1.2
  • TA的每日心情

    2023-7-25 17:56
  • 签到天数: 24 天

    连续签到: 23 天

    [LV.4]偶尔看看III

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

    您还未登录

    随手拍~~:

    热门推荐~~:

    Instagram 播放器代码...

    首先進入後台 → 界面 → 编辑器设置 →Discuz! 代码 新增一个 ig 的“标签”,然后点击“详 ...

    2023年谷歌浏览器依然能够使用Flash的方法...

    1、首先需要安装 Clean Flash Player:[/colorT] 下载解压后鼠标右键“以管理员身份运行”Clean Flas ...

    论坛表情分享...

    1、洋葱头 ...

    Discuz! X3.5 解决小图标不显示的方法...

    我发现大多数使用Discuz! X3.5 都有小图标不能显示的问题,提问的时候大家给的回答都是说跨域的问题, ...

    如何在 discuz 帖子里添加 APlayer 音乐播...

    1、首先将下边的 APlayer.css 和 APlayer.js 代码下载然后解压上传到服务器。 2、单曲音乐的代 ...

    热度会员~~:

    文強bkboonkiongadmin老谟深虑huaekinTaCanas彤彤aachi55688dongerlaoreninception

    免责声明~~:


    本站内容来源于合作伙伴及网络搜集,版权归原作者所有。如有侵犯版权,请立刻和本站联系,我们将在三个工作日内予以改正。
    Email:hsbk@hotmail.com

    服务与条款|隐私政策|免责声明|手机版|网站地图|友链申请| 文强阁

    Powered by Discuz! X3.5|© 2001-2024 Discuz! Team. |距离砂劳越元首诞辰还有: