1, 后台--》用户--》用户组--》系统用户组--》游客 编辑附件查看权限,可以查看图片。
2, 将/bbs/template/default/forum/ 下的 discuzcode.htm 内容替换成下文:(注意备份)
(该内容为GBK版本 没有安装新浪微博插件:)
{eval
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_credits($creditsrequire, $message) {
}
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
$message<br /><br />
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_codedisp($code) {
$randomid = ‘code_‘.random(3);
}
<!--{block return}--><div class="blockcode"><div id="$randomid"><ol><li>$code</ol></div><em onclick="copycode($(‘$randomid‘));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_quote() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_free() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply() {
global $_G;
}
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply_hidden() {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachlist($attach) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? "&fid=".$_G[‘fid‘]."&archiveid=".$_G[forum_thread][archiveid] : ‘‘;
}
<!--{block return}-->
<ignore_js_op>
<dl class="tattl">
<dt>
$attach[attachicon]
</dt>
<dd>
<p class="attnm">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})" id="aid$attach[aid]" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">$attach[filename]</a>
<!--{/if}-->
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none">
<div class="tip_c">
<p class="y">$attach[dateline] {lang upload}</p>
<p>{lang downloads}: $attach[downloads]</p>
<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}-->{lang attachcredits}: $_G[getattachcredits]<br /><!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
</p>
<p>$attach[attachsize]<!--{if $attach[‘readperm‘]}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->, {lang downloads}: $attach[downloads]<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}-->, {lang attachcredits}: $_G[getattachcredits]<!--{/if}--></p>
<p>
<!--{if $attach[‘price‘]}-->
{lang price}: <strong>$attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]}</strong> [<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach[‘description‘]}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
</dd>
</dl>
</ignore_js_op>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function imagelist($attach, $firstpost = 0) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? "&fid=".$_G[‘fid‘]."&archiveid=".$_G[forum_thread][archiveid] : ‘‘;
$attachthumb = getimgthumbname($attach[‘attachment‘]);
}
<!--{block return}-->
<!--{if $attach[‘attachimg‘] && $_G[‘setting‘][‘showimages‘] && ($_G[‘group‘][‘allowgetimage‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<ignore_js_op>
<!--{if !IS_ROBOT}-->
<dl class="tattl attm">
<dt></dt>
<dd>
<p class="mbn">
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})" id="aid$attach[aid]" class="xw1" target="_blank">$attach[filename]</a>
<em class="xg1">($attach[attachsize], {lang downloads}: $attach[downloads])</em>
<!--{if $firstpost && $_G[‘fid‘] && $_G[‘forum‘][‘picstyle‘] && ($_G[‘forum‘][‘ismoderator‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow(‘setcover{$attach[aid]}‘, this.href)">{lang set_cover}</a>
<!--{/if}-->
</p>
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none">
<div class="tip_c">
<p class="y">$attach[dateline] {lang upload}</p>
<p>{lang downloads}: $attach[downloads]</p>
<p>
<a href="javascript:;" onclick="imageRotate(‘aimg_$attach[aid]‘, 1)"><img src="{STATICURL}image/common/rleft.gif" /></a>
<a href="javascript:;" onclick="imageRotate(‘aimg_$attach[aid]‘, 2)"><img src="{STATICURL}image/common/rright.gif" /></a>
</p>
</div>
<div class="tip_horn"></div>
</div>
<p class="mbn">
<!--{if $attach[‘readperm‘]}-->{lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach[‘price‘]}-->{lang price}: <strong>$attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]}</strong> [<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach[‘description‘]}--><p class="mbn xg2">{$attach[description]}</p><!--{/if}-->
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<p class="mbn">
<!--{if $_G[‘setting‘][‘thumbstatus‘] && $attach[‘thumb‘]}-->
<!--{if $_G[‘uid‘]}--><a href="javascript:;"><img id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute(‘zoomfile‘))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" w="$attach[width]" /></a><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center; font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请先 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a></div><!--{/if}-->
<!--{else}-->
<!--{if $_G[‘uid‘]}--><img id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" w="$attach[width]" /><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center; font-size:12px;line-height:35px; border:10px solid #E5EDF2">游客只能查看小图,看高清大图请 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请先 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a></div><!--{/if}-->
<!--{/if}-->
</p>
<!--{/if}-->
</dd>
</dl>
<!--{else}-->
<dl class="tattl attm">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<dd>
<!--{if $attach[‘description‘]}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</ignore_js_op>
<!--{/if}-->
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachinpost($attach, $firstpost = 0) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? ‘&fid=‘.$_G[‘fid‘].‘&archiveid=‘.$_G[forum_thread][archiveid] : ‘‘;
$attachthumb = getimgthumbname($attach[‘attachment‘]);
}
<!--{block return}-->
<ignore_js_op>
<!--{if $attach[‘attachimg‘] && $_G[‘setting‘][‘showimages‘] && (!$attach[‘price‘] || $attach[‘payed‘]) && ($_G[‘group‘][‘allowgetimage‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<!--{if !IS_ROBOT}-->
<!--{if $_G[‘setting‘][‘thumbstatus‘] && $attach[‘thumb‘]}-->
<!--{if $_G[‘uid‘]}--><img{if $attach[‘price‘] && $_G[‘forum_attachmentdown‘] && $_G[‘uid‘] != $attach[‘uid‘]} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute(‘zoomfile‘))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]"/><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center;font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请先 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a></div><!--{/if}-->
<!--{else}-->
<!--{if $_G[‘uid‘]}--><img{if $attach[‘price‘] && $_G[‘forum_attachmentdown‘] && $_G[‘uid‘] != $attach[‘uid‘]} class="attprice"{/if} id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" /><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center;font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请先 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a></div><!--{/if}-->
<!--{/if}-->
<div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">
<div class="tip_c xs0">
<div class="y">$attach[dateline] {lang upload}</div>
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" title="$attach[filename] {lang downloads}:$attach[downloads]" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach[attachsize])</span></a>
<!--{if $attach[description]}--><br />$attach[description]<!--{/if}-->
<!--{if $firstpost && $_G[‘fid‘] && $_G[‘forum‘][‘picstyle‘] && ($_G[‘forum‘][‘ismoderator‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<br /><a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow(‘setcover{$attach[aid]}‘, this.href)">{lang set_cover}</a>
<!--{/if}-->
<!--{else}-->
<!--{if $attach[‘description‘]}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
<div style="display: none">
<!--{/if}-->
<!--{else}-->
$attach[attachicon]
<span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">$attach[filename]</a>
<!--{/if}-->
<em class="xg1">($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>
</span>
<div class="tip tip_4" id="attach_$attach[aid]_menu" style="position: absolute; display: none">
<div class="tip_c xs0">
<div class="y">$attach[dateline] {lang upload}</div>
{lang downloads}: $attach[downloads]
<!--{if $attach[‘description‘]}--><br />$attach[description]<!--{/if}-->
<!--{if $attach[‘readperm‘]}--><br />{lang readperm}: $attach[readperm]<!--{/if}-->
<!--{/if}-->
<!--{if $attach[‘price‘]}-->
<br />{lang price}: $attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]} <a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">[{lang pay_view}]</a>
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}--><br />{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
</ignore_js_op>
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}
}-->
================================
GBK版本安装新浪微博的discuzcode.htm内容替换:
{eval
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_credits($creditsrequire, $message) {
}
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
$message<br /><br />
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_codedisp($code) {
$randomid = ‘code_‘.random(3);
}
<!--{block return}--><div class="blockcode"><div id="$randomid"><ol><li>$code</ol></div><em onclick="copycode($(‘$randomid‘));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_quote() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_free() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply() {
global $_G;
}
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply_hidden() {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachlist($attach) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? "&fid=".$_G[‘fid‘]."&archiveid=".$_G[forum_thread][archiveid] : ‘‘;
}
<!--{block return}-->
<ignore_js_op>
<dl class="tattl">
<dt>
$attach[attachicon]
</dt>
<dd>
<p class="attnm">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})" id="aid$attach[aid]" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">$attach[filename]</a>
<!--{/if}-->
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none">
<div class="tip_c">
<p class="y">$attach[dateline] {lang upload}</p>
<p>{lang downloads}: $attach[downloads]</p>
<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}-->{lang attachcredits}: $_G[getattachcredits]<br /><!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
</p>
<p>$attach[attachsize]<!--{if $attach[‘readperm‘]}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->, {lang downloads}: $attach[downloads]<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}-->, {lang attachcredits}: $_G[getattachcredits]<!--{/if}--></p>
<p>
<!--{if $attach[‘price‘]}-->
{lang price}: <strong>$attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]}</strong> [<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach[‘description‘]}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
</dd>
</dl>
</ignore_js_op>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function imagelist($attach, $firstpost = 0) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? "&fid=".$_G[‘fid‘]."&archiveid=".$_G[forum_thread][archiveid] : ‘‘;
$attachthumb = getimgthumbname($attach[‘attachment‘]);
}
<!--{block return}-->
<!--{if $attach[‘attachimg‘] && $_G[‘setting‘][‘showimages‘] && ($_G[‘group‘][‘allowgetimage‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<ignore_js_op>
<!--{if !IS_ROBOT}-->
<dl class="tattl attm">
<dt></dt>
<dd>
<p class="mbn">
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})" id="aid$attach[aid]" class="xw1" target="_blank">$attach[filename]</a>
<em class="xg1">($attach[attachsize], {lang downloads}: $attach[downloads])</em>
<!--{if $firstpost && $_G[‘fid‘] && $_G[‘forum‘][‘picstyle‘] && ($_G[‘forum‘][‘ismoderator‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow(‘setcover{$attach[aid]}‘, this.href)">{lang set_cover}</a>
<!--{/if}-->
</p>
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none">
<div class="tip_c">
<p class="y">$attach[dateline] {lang upload}</p>
<p>{lang downloads}: $attach[downloads]</p>
<p>
<a href="javascript:;" onclick="imageRotate(‘aimg_$attach[aid]‘, 1)"><img src="{STATICURL}image/common/rleft.gif" /></a>
<a href="javascript:;" onclick="imageRotate(‘aimg_$attach[aid]‘, 2)"><img src="{STATICURL}image/common/rright.gif" /></a>
</p>
</div>
<div class="tip_horn"></div>
</div>
<p class="mbn">
<!--{if $attach[‘readperm‘]}-->{lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach[‘price‘]}-->{lang price}: <strong>$attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]}</strong> [<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach[‘description‘]}--><p class="mbn xg2">{$attach[description]}</p><!--{/if}-->
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<p class="mbn">
<!--{if $_G[‘setting‘][‘thumbstatus‘] && $attach[‘thumb‘]}-->
<!--{if $_G[‘uid‘]}--><a href="javascript:;"><img id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute(‘zoomfile‘))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" w="$attach[width]" /></a><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center; font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请先 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号或新浪微博账号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a> <a href="xwb.php?m=xwbAuth.login"><img src="xwb/images/bgimg/sina_login_btn.png" class="vm"/></a></div><!--{/if}-->
<!--{else}-->
<!--{if $_G[‘uid‘]}--><img id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" w="$attach[width]" /><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center; font-size:12px;line-height:35px; border:10px solid #E5EDF2">游客只能查看小图,看高清大图请 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请先 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号或新浪微博账号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a> <a href="xwb.php?m=xwbAuth.login"><img src="xwb/images/bgimg/sina_login_btn.png" class="vm"/></a></div><!--{/if}-->
<!--{/if}-->
</p>
<!--{/if}-->
</dd>
</dl>
<!--{else}-->
<dl class="tattl attm">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<dd>
<!--{if $attach[‘description‘]}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</ignore_js_op>
<!--{/if}-->
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachinpost($attach, $firstpost = 0) {
global $_G;
$attach[‘refcheck‘] = (!$attach[‘remote‘] && $_G[‘setting‘][‘attachrefcheck‘]) || ($attach[‘remote‘] && ($_G[‘setting‘][‘ftp‘][‘hideurl‘] || ($attach[‘isimage‘] && $_G[‘setting‘][‘attachimgpost‘] && strtolower(substr($_G[‘setting‘][‘ftp‘][‘attachurl‘], 0, 3)) == ‘ftp‘)));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach[‘width‘]);
$is_archive = $_G[‘forum_thread‘][‘is_archived‘] ? ‘&fid=‘.$_G[‘fid‘].‘&archiveid=‘.$_G[forum_thread][archiveid] : ‘‘;
$attachthumb = getimgthumbname($attach[‘attachment‘]);
}
<!--{block return}-->
<ignore_js_op>
<!--{if $attach[‘attachimg‘] && $_G[‘setting‘][‘showimages‘] && (!$attach[‘price‘] || $attach[‘payed‘]) && ($_G[‘group‘][‘allowgetimage‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<!--{if !IS_ROBOT}-->
<!--{if $_G[‘setting‘][‘thumbstatus‘] && $attach[‘thumb‘]}-->
<!--{if $_G[‘uid‘]}--><img{if $attach[‘price‘] && $_G[‘forum_attachmentdown‘] && $_G[‘uid‘] != $attach[‘uid‘]} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute(‘zoomfile‘))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]"/><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center;font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请先 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号或新浪微博账号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a> <a href="xwb.php?m=xwbAuth.login"><img src="xwb/images/bgimg/sina_login_btn.png" class="vm"/></a></div><!--{/if}-->
<!--{else}-->
<!--{if $_G[‘uid‘]}--><img{if $attach[‘price‘] && $_G[‘forum_attachmentdown‘] && $_G[‘uid‘] != $attach[‘uid‘]} class="attprice"{/if} id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" /><!--{else}--><a href="member.php?mod=logging&action=login" onclick="showWindow(‘login‘, this.href)" class="xi2"><img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$_G[forum_thread][subject]" title="$_G[forum_thread][subject]" style="width:150px;height:170px;" /></a><div style="width:620px;text-align:center;font-size:12px;line-height:35px;border:10px solid #E5EDF2">游客只能查看小图,看高清大图请先 <a href="member.php?mod=logging&action=login"><font color="#FF0000"><B>登陆</B></font></a>,没有账号请 <a href="member.php?mod=register"><font color="#FF0000"><B>注册</B></font></a>,也可以用QQ号或新浪微博账号直接登陆本站<br/> <a href="$_G[connect][login_url]&statfrom=login_simple"><img src="{IMGDIR}/qq_login.gif" class="vm" alt="{lang qqconnect:connect_header_login}" /></a> <a href="xwb.php?m=xwbAuth.login"><img src="xwb/images/bgimg/sina_login_btn.png" class="vm"/></a></div><!--{/if}-->
<!--{/if}-->
<div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">
<div class="tip_c xs0">
<div class="y">$attach[dateline] {lang upload}</div>
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" title="$attach[filename] {lang downloads}:$attach[downloads]" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach[attachsize])</span></a>
<!--{if $attach[description]}--><br />$attach[description]<!--{/if}-->
<!--{if $firstpost && $_G[‘fid‘] && $_G[‘forum‘][‘picstyle‘] && ($_G[‘forum‘][‘ismoderator‘] || $_G[‘uid‘] == $attach[‘uid‘])}-->
<br /><a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow(‘setcover{$attach[aid]}‘, this.href)">{lang set_cover}</a>
<!--{/if}-->
<!--{else}-->
<!--{if $attach[‘description‘]}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
<div style="display: none">
<!--{/if}-->
<!--{else}-->
$attach[attachicon]
<span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu({‘ctrlid‘:this.id,‘pos‘:‘12‘})">
<!--{if !$attach[‘price‘] || $attach[‘payed‘]}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)">$attach[filename]</a>
<!--{/if}-->
<em class="xg1">($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>
</span>
<div class="tip tip_4" id="attach_$attach[aid]_menu" style="position: absolute; display: none">
<div class="tip_c xs0">
<div class="y">$attach[dateline] {lang upload}</div>
{lang downloads}: $attach[downloads]
<!--{if $attach[‘description‘]}--><br />$attach[description]<!--{/if}-->
<!--{if $attach[‘readperm‘]}--><br />{lang readperm}: $attach[readperm]<!--{/if}-->
<!--{/if}-->
<!--{if $attach[‘price‘]}-->
<br />{lang price}: $attach[price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]} <a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">[{lang pay_view}]</a>
<!--{if !$attach[‘payed‘]}-->
[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow(‘attachpay‘, this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
<!--{if !$attach[‘attachimg‘] && $_G[‘getattachcredits‘]}--><br />{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
</ignore_js_op>
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}
}-->