MasterTGZ โพสต์ 2011-7-18 10:14:12

[mod] ใส่กล่องให้ที่ + เครดิตกันเถอะ ^_^ (สำหรับ x2)

แก้ไขครั้งสุดท้ายโดย MasterTGZ เมื่อ 2011-5-4 14:26

http://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}:&nbsp;
                                                <!--{loop $post['ratelogextcredits'] $id $score}-->
                                                      <!--{if $score > 0}-->
                                                                <span class="xi1">{$_G['setting']['extcredits'][$id]} + $score</span>&nbsp;
                                                      <!--{else}-->
                                                                <span class="xg1">{$_G['setting']['extcredits'][$id]} $score</span>&nbsp;
                                                      <!--{/if}-->
                                                <!--{/loop}-->
                                                &nbsp;<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}:&nbsp;
                                                <!--{loop $post['ratelogextcredits'] $id $score}-->
                                                      <!--{if $score > 0}-->
                                                                <span class="xi1">{$_G['setting']['extcredits'][$id]} + $score</span>&nbsp;
                                                      <!--{else}-->
                                                                <span class="xg1">{$_G['setting']['extcredits'][$id]} $score</span>&nbsp;
                                                      <!--{/if}-->
                                                <!--{/loop}-->
                                                &nbsp;<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ที่ผมเคยไปตั้งที่ x1.5 ผมไม่มั่นใจนะ แต่ผมลองกับ x1.5 มันไม่ติด แต่ลองกับ x2 มันติด เอ๊ะงง ไม่รู้ยังไง เลยมาตั้งให้ที่ x2 อีกรอบ เพราะกลัวได้เฉพาะ x2 x1.5 ไม่ได้ เอ๊ะงง ไม่รู้ละ ใครทำเป็นอะไรยังไงมาไขให้กระจ่างที x1.5 ผมทำไม่ติด x2 ผมทำติด หรือผมมึนๆเอง - -

Acer_Aspire โพสต์ 2011-7-18 10:53:34

ขอบคุณครับ

joeyman001 โพสต์ 2011-7-18 11:12:35

ภาษาไทย หรือ เปล่าครับ ?

MasterTGZ โพสต์ 2011-7-18 13:42:15

ต้นฉบับโพสต์โดย joeyman001 เมื่อ 2011-7-18 11:12 static/image/common/back.gif
ภาษาไทย หรือ เปล่าครับ ?

ผมลองใช้แล้ว มีจีนปนไปตัวนึง 555
แปลเอาเองก็ได้ครับ ตัวเดียวเอง sm946dz

nanglovepoy โพสต์ 2011-9-27 15:31:15



บอกหน่อยนะคับ ขอบคุณ คับ

beautiful โพสต์ 2012-1-12 06:09:57

ใช้ได้ครับขอบคุณครับ

jbservice โพสต์ 2012-1-12 19:10:44

มันจะโชว์ตรงไหนครับ หาไม่เจอหรือต้องกำหนดค่าอะไรไหม
ขอบคุณครับ

nuzazaja โพสต์ 2012-1-12 19:16:31

+1   ขอบคุณครับ

kaknoi โพสต์ 2012-1-25 14:27:20

หาโค้ดไม่เจอ
หน้า: [1]
ดูในรูปแบบกติ: [mod] ใส่กล่องให้ที่ + เครดิตกันเถอะ ^_^ (สำหรับ x2)