Linux0911 2007-12-2 04:42 PM
論壇統計 及 投票 改為動態圖
from: [url]http://www.alan888.com/Discuz/viewthread.php?tid=126884[/url]
插件名稱: 論壇統計 及 投票 改為動態圖
適用版本: Discuz! 6.0.0 RC1及正式版
舊版作者: KaijuanStudio、別問我是誰
原 帖: [url]http://www.alan888.com/Discuz/thread-85568-1-1.html[/url]
Dz6 修改: hamu278
[attach]5976[/attach]
[font=微軟正黑體][size=5][color=Blue]開始安裝[/color][/size][/font]
1. 打開 stats.php
1a. 找[code] $count = '<div class="optionbar"><div style="width: '.$width.'px"> </div></div> <strong>'.$count.'</strong> ('.$percent.'%)';[/code]改為[code]/* 論壇統計 及 投票 改為動態圖 - START
$count = '<div class="optionbar"><div style="width: '.$width.'px"> </div></div> <strong>'.$count.'</strong> ('.$percent.'%)';
*/
$count = '<img src="images/common/bar/a_bar'.($barno % 10).'.gif" height="8" border="0" alt="" /><img src="images/common/bar/b_bar'.($barno % 10).'.gif" width="'.$width.'" height="8" border="0" alt="" /><img src="images/common/bar/c_bar'.($barno % 10).'.gif" height="8" border="0" alt="" /> <span class="bold">'.$count.'</span> ('.$percent.'%)';
// 論壇統計 及 投票 改為動態圖 - END[/code]2. 打開 viewthread_poll.htm
2a.找[code] <div class="optionbar">
<div style="width: $option[width]px;"> </div>
</div>[/code]改為[code]<!--// 論壇統計 及 投票 改為動態圖 - START -->
<!--
<div class="optionbar">
<div style="width: $option[width]px;"> </div>
</div>
-->
<img src="images/common/bar/a_bar{echo $key % 10}.gif" height="8" border="0" alt="" /><img src="images/common/bar/b_bar{echo $key % 10}.gif" width="$option[width]" height="8" alt="" /><img src="images/common/bar/c_bar{echo $key % 10}.gif" height="8" border="0" alt="" /> $option[votes] ($option[percent]%)
<!--// 論壇統計 及 投票 改為動態圖 - END -->[/code]3. 下載附件解壓縮後一結構上傳
完成
e0925597266 2007-12-2 08:44 PM
剛剛安裝後感覺 蠻不錯的 很讚!!~
有令一種風格 謝謝大大分享這麼多插鍵 :handshake
hodielee 2008-11-13 08:26 AM
感謝分享安裝起來便美觀了