餅乾工坊
[PHPWind]精華蓋章[Discuz] - 可列印版本

+- 餅乾工坊 (http://ninja.s12.xrea.com/mybb)
+-- 版面: 電腦網路 (http://ninja.s12.xrea.com/mybb/forumdisplay.php?fid=2)
+--- 版面: 網頁相關 (http://ninja.s12.xrea.com/mybb/forumdisplay.php?fid=13)
+--- 主題: [PHPWind]精華蓋章[Discuz] (/showthread.php?tid=206)



[PHPWind]精華蓋章[Discuz] - NINJA - 10-05-2009

For PHPWind
1.修改template/wind/read.htm
找到
引言:id="subject_$read[pid]">$db_union[2]$read[icon]$read[subject]
2.下面一行新增
引言:<br>
<!--
EOT;
if($read[digest]==1) {
print <<<EOT
-->
<div id="jinghua" style="right: 200px; WIDTH: 0px; POSITION: absolute; TOP: 390px; HEIGHT: 0px"><img border="0" src="$imgpath/digest1.gif" width="123" height="104" border="0"></div>
<!--
EOT;
}elseif($read[digest]==2){print <<<EOT
-->
<div id="jinghua" style="right: 200px; WIDTH: 0px; POSITION: absolute; TOP: 390px; HEIGHT: 0px"><img border="0" src="$imgpath/digest2.gif" width="123" height="104" border="0"></div>
<!--
EOT;
}print <<<EOT
-->
<br>



RE: [PHPWind]精華蓋章[Discuz] - NINJA - 10-05-2009

For Discuz 7.1.0
修改 template/default/viewthread.htm
找到
引言:<!--{if $fastpost && $allowpostreply}-->
{subtemplate viewthread_fastpost}
<!--{/if}-->
下面新增
引言:<!--{if $thread['digest']}--><div class="digest" style="right: 25%; WIDTH: 0px; POSITION: absolute; TOP: 420px; HEIGHT: 0px" onmouseOut="this.style.display='';">

<!--{if $thread['digest'] ==1}--><img border="0" src="images/common/digest_t_1.gif" border="0">
<!--{elseif $thread['digest'] ==2}--><img border="0" src="images/common/digest_t_2.gif" border="0">
<!--{elseif $thread['digest'] ==3}--><img border="0" src="images/common/digest_t_3.gif" border="0">
<!--{/if}--></div><!--{/if}-->
right: 25% 為圖示跟右側邊框的距離