- 積分
- 433
- 威望
- 433
- 金錢
- 50
- 最後登錄
- 2021-6-10
|
效果图
首先,进入discuzcode模板,找到:- <img src="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" alt="$attach[filename]" />
- <!--{/if}-->
- <!--{/if}-->
- <!--{else}-->
複製代碼 以下的所有代码全部替换为- <div class="ik_vt_down">
- <h3 style="font-size: 15px;height: 30px;line-height: 30px;border-bottom: 1px dashed #ddd;margin-bottom: 4px;">$attach[filename]<em style="font-size: 12px;font-weight: 100;margin-left: 10px;">($attach[attachsize], {lang downloads}: $attach[downloads]<!--{if $attach['price']}-->, {lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}<!--{/if}-->)</em></h3>
- <p>
- 附件描述:<!--{if $attach['description']}-->$attach[description]<!--{/if}--><br>
- 版权信息:本站内会员所分享的全部“资源/素材”,仅供学习与参考,版权为原作者所有。<br>
- 责任声明:本站所有资源来自互联网以及会员发布,我们并并不能完全保证文件的安全性以及完整性。
- </p>
- <p id="xunleidown" style="height: 40px;line-height: 40px;">
- <!--{if !$attach['price'] || $attach['payed']}-->
- <a href="attachment.php?aid=$aidencode" target="_blank" style="text-decoration: none;padding: 3px 18px;background: #8db80c;color: #fff;margin-right: 10px;box-shadow: 1px 1px 1px #333;" id="vt_ik_down">本地下载</a>
- <!--{else}-->
- <a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)" style="text-decoration: none;padding: 3px 18px;background: #8db80c;color: #fff;margin-right: 10px;box-shadow: 1px 1px 1px #333;" id="vt_ik_down">本地下载</a>
- <!--{/if}-->
- <script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script
- <script src="http://pstatic.xunlei.com/js/base64.js"></script>
- <a oncontextmenu=ThunderNetwork_SetHref(this)
- onclick="return OnDownloadClick_Simple(this,2)"
- <!--{if !$attach['price'] || $attach['payed']}-->
- href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank" style="text-decoration: none;padding: 3px 18px;
- background: #4899E0;color: #fff;box-shadow: 1px 1px 1px #333;"
- <!--{else}-->
- href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]"style="text-decoration: none;padding: 3px 18px;
- background: #4899E0;color: #fff;box-shadow: 1px 1px 1px #333;"
- <!--{/if}-->
- thunderResTitle="迅雷下载" thunderPid="133690"
- <!--{if !$attach['price'] || $attach['payed']}-->
- thunderHref="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank"
- <!--{else}-->
- thunderHref="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]"
- <!--{/if}-->
- style="text-decoration: none;">迅雷下载</a>
- <!--{/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}-->
- $attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"><a href="attachment.php?aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $GLOBALS[attachcredits]} onclick="return creditconfirm('{$GLOBALS[attachcredits]}');"{/if}><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
- <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}-->
- $attach[attachicon] <strong>{lang attach_pay}: $attach[filename]</strong>
- <!--{/if}-->
- <!--{/block}-->
- <!--{eval return $return;}-->
- <!--{eval
- }
- }-->
複製代碼 |
|