Discuz论坛判断帖子是否有图
Oct102014
Discuz 打印时加入了论坛网址,当有图片时不想加入论坛网址,以下代码可以实现。
<!–{if $thread[‘attachment’] != 2}–>
<hr noshade size=”2″ width=”100%” color=”{BORDERCOLOR}”>
<table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”95%” align=”center” style=”font-size: {SMFONTSIZE}; font-family: {SMFONT}”>
<tr><td>{lang welcometo} $_G[‘setting’][‘bbname’] ($_G[siteurl])</td>
<td align=”right”>资源共享论坛</td>
</tr></table>
<!–{/if}–>
本文固定链接: https://cyq.me/1641 | 春与秋