[mod] ใส่กล่องให้ที่ + เครดิตกันเถอะ ^_^
แก้ไขครั้งสุดท้ายโดย MasterTGZ เมื่อ 2011-5-4 14:26http://www.discuz.net/data/attachment/forum/201010/29/084142bmh5b6b86sq44tbb.jpg.thumb.jpg
ไฟล์ template/default/forum/viewthread_node_body.htm
ค้นหาโค้ด<table class="ratl">
<tr>
<th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G&pid=$post" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}">{lang have} <span class="xi1"><!--{echo count($postlist[$post]);}--></span> {lang people_score}</a></th>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<th width="50"><i>{$_G['setting']['extcredits'][$id]}</i></th>
<!--{/loop}-->
<th>
<a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post', this);" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
<i>{lang reason}</i>
</th>
</tr>
<tbody class="ratl_l">
<!--{loop $post['ratelog'] $uid $ratelog}-->
<tr id="rate_{$post}_{$uid}">
<td>
<a href="home.php?mod=space&uid=$uid" target="_blank" c="1"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog</a>
</td>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $ratelog['score'][$id] > 0}-->
<td class="xi1"> + $ratelog[$id]</td>
<!--{else}-->
<td class="xg1">$ratelog[$id]</td>
<!--{/if}-->
<!--{/loop}-->
<td class="xg1">$ratelog</td>
</tr>
<!--{/loop}-->
</tbody>
</table>
<p class="ratc">
{lang rate_total}:
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $score > 0}-->
<span class="xi1">{$_G['setting']['extcredits'][$id]} + $score</span>
<!--{else}-->
<span class="xg1">{$_G['setting']['extcredits'][$id]} $score</span>
<!--{/if}-->
<!--{/loop}-->
<a href="forum.php?mod=misc&action=viewratings&tid=$_G&pid=$post" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}" class="xi2">{lang rate_view}</a>
</p>แทนที่ด้วย<style type="text/css">
<!--
.ratl img { border:1px solid #CCCCCC; height:20px; padding:2px; width:20px; }
-->
</style>
<table class="ratl" style="border:1px solid #CCCCCC;">
<tr bgcolor="#efeeee">
<th width="3"></th>
<th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G&pid=$post" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}">{lang have} <span class="xi1"><!--{echo count($postlist[$post]);}--></span> {lang people_score}</a></th>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<th width="50"><i>{$_G['setting']['extcredits'][$id]}</i></th>
<!--{/loop}-->
<th>
<a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post', this);" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
<i>{lang reason}</i>
</th>
</tr>
<tbody class="ratl_l">
<!--{loop $post['ratelog'] $uid $ratelog}-->
<tr id="rate_{$post}_{$uid}">
<td width="3"></td>
<td>
<a href="home.php?mod=space&uid=$uid" target="_blank" c="1"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog</a>
</td>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $ratelog['score'][$id] > 0}-->
<td class="xi1"> + $ratelog[$id]</td>
<!--{else}-->
<td class="xg1">$ratelog[$id]</td>
<!--{/if}-->
<!--{/loop}-->
<td class="xg1">$ratelog</td>
</tr>
<!--{/loop}-->
</tbody>
</table>
<p class="ratc" style="border: 1px solid #cccccc; border-top:none;background-color:#efeeee;padding-left:5px;">
{lang rate_total}:
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $score > 0}-->
<span class="xi1">{$_G['setting']['extcredits'][$id]} + $score</span>
<!--{else}-->
<span class="xg1">{$_G['setting']['extcredits'][$id]} $score</span>
<!--{/if}-->
<!--{/loop}-->
<a href="forum.php?mod=misc&action=viewratings&tid=$_G&pid=$post" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}" class="xi2">{lang rate_view}</a>
</p>เครดิตhttp://www.discuz.net/thread-1947302-1-9.html sm952dz ขอบคุณมากครับ มีวิธีทำเหมือนดิสคัสไทยไหมครับ
ขอบคุณครับ ขอบบบมากกมาย:) ไส่ไปแล้วมันก็ไม่ขึ้นไรเลยอ่าครับ ?? ทำไงดี ? ขอบใจคราบบบบบบบบ sm900dz เอาไปลอง ขอบใจมาก ต้นฉบับโพสต์โดย popiazaza เมื่อ 2011-5-9 08:58 static/image/common/back.gif
ตั้งค่าใน admincp ได้่เลยครับ
มีภาพไหมครับ
ผมหาไม่เจออ่ะครับ
ชี้แนะด้วยครับsm922dz
หน้า:
[1]