Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 14450|ตอบกลับ: 4

[EN-Discuz X2.5] Mod New Displaying Add Score

  [คัดลอกลิงก์]
binknon โพสต์ 2012-5-22 14:36:14 |โหมดอ่าน
แก้ไขครั้งสุดท้าย 2012-5-23 16:03 โดย binknon

แก้ไขครั้งสุดท้าย 2012-5-22 14:41 โดย binknon



Example from default skin. If you use other skin just go to the directory those skin.

Open file \template\default\forum\viewthread_node_body.htm

Find:
  1.                     <table class="ratl">

  2.                         <tr>

  3.                             <th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}">{lang have} <span class="xi1"><!--{echo count($postlist[$post[pid]][totalrate]);}--></span> {lang people_score}</a></th>

  4.                             <!--{loop $post['ratelogextcredits'] $id $score}-->

  5.                             <th width="50"><i>{$_G['setting']['extcredits'][$id][title]}</i></th>

  6.                             <!--{/loop}-->

  7.                             <th>

  8.                                 <a href="javascript:;" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>

  9.                                 <i>{lang reason}</i>

  10.                             </th>

  11.                         </tr>

  12.                         <tbody class="ratl_l">

  13.                             <!--{loop $post['ratelog'] $uid $ratelog}-->

  14.                             <tr id="rate_{$post[pid]}_{$uid}">

  15.                                 <td>

  16.                                     <a href="home.php?mod=space&uid=$uid" target="_blank"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a>

  17.                                 </td>

  18.                                 <!--{loop $post['ratelogextcredits'] $id $score}-->

  19.                                     <!--{if $ratelog['score'][$id] > 0}-->

  20.                                         <td class="xi1"> + $ratelog[score][$id]</td>

  21.                                     <!--{else}-->

  22.                                         <td class="xg1">$ratelog[score][$id]</td>

  23.                                     <!--{/if}-->

  24.                                 <!--{/loop}-->

  25.                                 <td class="xg1">$ratelog[reason]</td>

  26.                             </tr>

  27.                             <!--{/loop}-->

  28.                         </tbody>

  29.                     </table>

  30.                     <p class="ratc">

  31.                         {lang rate_total}:
  32.                         <!--{loop $post['ratelogextcredits'] $id $score}-->

  33.                             <!--{if $score > 0}-->

  34.                                 <span class="xi1">{$_G['setting']['extcredits'][$id][title]} + $score</span>
  35.                             <!--{else}-->

  36.                                 <span class="xg1">{$_G['setting']['extcredits'][$id][title]} $score</span>
  37.                             <!--{/if}-->

  38.                         <!--{/loop}-->

  39.                          <a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}" class="xi2">{lang rate_view}</a>

  40.                     </p>
คัดลอกไปที่คลิปบอร์ด
Replace with
  1. <div class="archy_rate cl">

  2.                         <div class="ratetotal">

  3.                             <ul class="rateinfo">

  4.                                 <li><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}"><span><strong><!--{echo count($postlist[$post[pid]][totalrate]);}--></strong>Total Joined</span></a></li>

  5.                                 <!--{loop $post['ratelogextcredits'] $id $score}-->

  6.                                 <li><span><strong>$score</strong>{$_G['setting']['extcredits'][$id][title]}</span></li>

  7.                                 <!--{/loop}-->

  8.                             </ul>

  9.                             <ul class="rateoption">

  10.                                 <li><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}" class="xi2">{lang rate_view}</a></li>

  11.                              </ul>

  12.                          </div>

  13.                          <div class="archy_scorelist">

  14.                              <ul>

  15.                                 <!--{loop $post['ratelog'] $uid $ratelog}-->

  16.                                     <li>

  17.                                         <div class="archy_ratel z"><a href="home.php?mod=space&uid=$uid" c="1" target="_blank"><!--{echo avatar($uid, 'small');}--></a></div>

  18.                                         <dl class="archy_rater z">

  19.                                             <p class="archy_rates">$ratelog[reason]</p>

  20.                                             <p>

  21.                                                 <a href="home.php?mod=space&uid=$uid" class="xw1" target="_blank">$ratelog[username]</a>

  22.                                                 <!--{loop $post['ratelogextcredits'] $id $score}-->

  23.                                                     <!--{if $ratelog['score'][$id] > 0}-->

  24.                                                         <span class="xi1">{$_G['setting']['extcredits'][$id][title]} +$ratelog[score][$id]</span>

  25.                                                     <!--{else}-->

  26.                                                         <span class="xi1">$ratelog[score][$id]</span>

  27.                                                     <!--{/if}-->

  28.                                                 <!--{/loop}-->

  29.                                             </p>

  30.                                         </dl>

  31.                                     </li>

  32.                                 <!--{/loop}-->

  33.                             </ul>                             

  34.                          </div>

  35.                     </div>
คัดลอกไปที่คลิปบอร์ด
Open \template\default\common\common.css past the following code at the bottom:
  1. /*Total Joining

  2.     .rateinfo li, .rateinfo span { height: 50px; background: url("{IMGDIR}/rate_bg.png") no-repeat; }

  3.     .archy_rate { margin-top: 60px; border-radius: 5px; border: 1px solid {COMMONBORDER}; }

  4.         .archy_rate .ratetotal { position: relative; height: 35px; }

  5.             .archy_rate .rateinfo { position: absolute; top: -25px; left: 10px; }

  6.                 .rate .rateinfo li { float: left; padding-left: 10px; margin-right: 15px; width: auto; height: 50px; }

  7.                     .rateinfo span { float: left; padding-right: 10px; text-align: center; color: #999; background-position: right 0; }

  8.                     .rateinfo strong { display: block; margin-top: 5px; font: 22px/25px "Arial"; color:#6EA804; }

  9.                     .xi1, .onerror{color:#6EA804;}

  10.             .ratetotal .rateoption { float: right; margin-right: 3px; height: 35px; overflow: hidden; }

  11.                 .rateoption li { float: left; margin-left: -2px; padding: 0 7px; height: 35px; line-height: 35px; overflow: hidden; }

  12.                
  13.     .rate .archy_scorelist li { width: 49%; float: left; margin: 0 0 4px 4px; border: 1px dotted {COMMONBORDER}; height:auto; text-align:left; }

  14.     .archy_ratel img { width: 34px; height: 34px; padding: 2px; }

  15.     .archy_rater { padding-left: 6px; }

  16.     .archy_rates { color: #999; }
คัดลอกไปที่คลิปบอร์ด
Download the picture and past it in static\image\common





ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก

x
jaideejung007 โพสต์ 2012-5-22 16:53:10
Thanks for subtitle




แสดงความคิดเห็น

thanks for reply ><  โพสต์ 2012-5-23 04:39
thanks for reply ><  โพสต์ 2012-5-23 04:39
thanks for reply ><  โพสต์ 2012-5-23 04:39
thanks for reply ><  โพสต์ 2012-5-23 04:39
thanks for reply ><  โพสต์ 2012-5-23 04:39
vitaminzee โพสต์ 2012-5-23 12:56:40
มันเป็นยังไงแตกต่างกันหรือครับหรือ http://forum.discuzthai.com/thread-33887-1-1.html

แสดงความคิดเห็น

บอร์ดนี้ผมจะเอาของไทยมาแปลเป็นอังกิดเพื่อชาวต่างชาติครับ  โพสต์ 2012-5-23 14:26
vitaminzee โพสต์ 2012-5-23 16:00:46
บรรทัดที่ 7ในส่วน Replace  ยังเป็นภาษาไทยอยู่ครับน่าจะแก้เป็นภาษาอังกฤษด้วยนะครับ(จำนวนผู้เข้าร่วม)

แสดงความคิดเห็น

คนแปลเบลอ  โพสต์ 2012-5-28 17:46
ขอบคุณมากครับที่เตือน  โพสต์ 2012-5-23 16:01
hen โพสต์ 2012-5-23 18:06:22
ในรูปตัวอย่างเปลี่ยนเป็นภาษาอังกฤษด้วยก็ดีนะครับ

แสดงความคิดเห็น

รับทราบจร้าๆ  โพสต์ 2012-5-24 05:56
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-23 16:25

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้