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
ดู: 4205|ตอบกลับ: 9

[Plugin6.1] firewolf toplist 6.1 (beta)

[คัดลอกลิงก์]
buachompoox โพสต์ 2008-4-23 16:45:57 |โหมดอ่าน
เป็นทอปลิสจากค่ายเดียวกันคือ firewolf ครับแต่เป็นของ 6.1 ยังมีบัคตรงยังไม่แสดงรูป avatar



การติดตั้ง อัพโหลดไฟล์ ไว้ตามที่อยู่ทำการแก้ไขไฟล์ดังต่อไปนี้

index.php หาโค้ด
  1. include template('discuz');
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค้ดนี้ไว้ด้านบน
  1. eval($hooks['firewolf_indextoplist_require_index']);
คัดลอกไปที่คลิปบอร์ด
จากนั้นไปที่ไฟล์ templates/default/discuz.htm หาโค้ด
  1. <table summary="HeadBox" class="portalbox" cellpadding="0" cellspacing="1">
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค้ดต่อไปนี้ไว้ด้านบน
  1. <!--{eval eval($hooks['firewolf_indextoplist_include_template']);}-->
คัดลอกไปที่คลิปบอร์ด
จากนั้นทำการติดตั้งปลั้กอินตามรูปโดยการ import ไฟล์ txt เลยไม่ต้องคัดลอกมาวางเหมือน 6.0



จากนั้นอัพเดทแคชแล้วใช้งานดูครับ


เพิ่มเติมการแก้ปัญหาตัวหนังสือฟอรั่มใหญ่ หรือ เทมเพลทบิดเบี้ยว กรอบแสดงรายละเอียดกระโดดขึ้นไปข้างบนเกิดจากตังเร่ง alt 2ตัวมานทะเลาะกันทำให้แสดงผลผิดพลาด

วิธีแก้ปัญหาให้เข้าไปลบไฟล์  plugins/firewolf_indextoplist/template/altitle.js  ออกไป
แล้วทำการแก้ไขไฟล์ include/javascript/common.js โดยการเพิ่มโค้ดนี้ไว้ที่บรรทัดสุดท้ายครับ

  1. //www.chenhailm.comALT
  2. var sPop = null;
  3. var postSubmited = false;
  4. document.write("<style type='text/css'id='defaultPopStyle'>");
  5. document.write(".cPopText { font-family: Verdana, Tahoma; background-color: #DDEEFF; border: 1px #8899AA dashed; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}");

  6. document.write("</style>");
  7. document.write("<div id='popLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");



  8. function showPopupText(event) {
  9.         if(event.srcElement) o = event.srcElement; else o = event.target;
  10.         if(!o) {
  11.                 return;
  12.         }
  13.         MouseX = event.clientX;
  14.         MouseY = event.clientY;
  15.         if(o.alt != null && o.alt != '') {
  16.                 o.pop = o.alt;
  17.                 o.alt = '';
  18.         }
  19.         if(o.title != null && o.title != '') {
  20.                 o.pop = o.title;
  21.                 o.title = '';
  22.         }
  23.         if(o.pop != sPop) {
  24.                 sPop = o.pop;
  25.                 if(sPop == null || sPop == '') {
  26.                         $('popLayer').style.visibility = "hidden";
  27.                 } else {
  28.                         popStyle = o.dyclass != null ? o.dyclass : 'popupmenu_popup';
  29.                         $('popLayer').style.visibility = "visible";
  30.                         showIt();
  31.                 }
  32.         }
  33. }

  34. function showIt() {
  35.         $('popLayer').className = popStyle;
  36.         $('popLayer').innerHTML = sPop.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");
  37.                
  38.         var bodySL, bodyST;
  39.         if(window.pageXOffset){
  40.                 bodySL=window.pageXOffset;
  41.         }else if(document.documentElement&&document.documentElement.scrollLeft){
  42.                 bodySL=document.documentElement.scrollLeft;
  43.         }else if(document.body){
  44.                 bodySL=document.body.scrollLeft; //author: meizz
  45.         }
  46.         
  47.         if(window.pageYOffset){
  48.                 bodyST=window.pageYOffset;
  49.         }else if(document.documentElement&&document.documentElement.scrollTop){
  50.                 bodyST=document.documentElement.scrollTop;
  51.         }else if(document.body){
  52.                 bodyST=document.body.scrollTop;
  53.         }
  54.         
  55.         var bodyCW, bodyCH;
  56.         if(window.innerWidth){
  57.                 bodyCW=window.innerWidth;
  58.         }else if(document.documentElement&&document.documentElement.clientWidth){
  59.                 bodyCW=document.documentElement.clientWidth;
  60.         }else if(document.body){
  61.                 bodyCW=document.body.clientWidth; //author: meizz
  62.         }
  63.         
  64.         if(window.innerHeight){
  65.                 bodyCH=window.innerHeight;
  66.         }else if(document.documentElement&&document.documentElement.clientHeight){
  67.                 bodyCH=document.documentElement.clientHeight;
  68.         }else if(document.body){
  69.                 bodyCH=document.body.clientHeight;
  70.         }

  71.         if($('popLayer').clientWidth>300){
  72.                 var popWidth = 300;
  73.         }else{
  74.                 var popWidth = $('popLayer').clientWidth;
  75.         }
  76.         
  77.         var popWidth = $('popLayer').clientWidth;
  78.         var popHeight = $('popLayer').clientHeight;
  79.         var popLeftAdjust = MouseX + 12 + popWidth > bodyCW ? -popWidth - 24 : 0;
  80.         var popTopAdjust = MouseY + 12 + popHeight > bodyCH ? -popHeight - 24 : 0;
  81.         $('popLayer').style.left = (MouseX + 12 + bodySL + popLeftAdjust) + 'px';
  82.         $('popLayer').style.top = (MouseY + 12 + bodyST + popTopAdjust) + 'px';
  83. }

  84. if(!document.onmouseover) {
  85.         document.onmouseover = function(e) {
  86.                 var event = e ? e : window.event;
  87.                 showPopupText(event);
  88.         };
  89. }
  90. //www.chenhailm.comALT
คัดลอกไปที่คลิปบอร์ด

[ แก้ไขล่าสุด buachompoox เมื่อ 2008-5-2 09:03 ]

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

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

x
thaiga โพสต์ 2008-4-23 16:48:11
โอว ขอบคุณครับ
berrykiss โพสต์ 2008-4-23 18:41:36
เหอะๆ ~[1170924359]~  ของใหม่อีกแล้วพี่น้อง ฮ่าๆ ~[1170938770]~

ขยันหาของใหม่ๆมาให้ลองยา เอ๊ยๆ ลองใช้ ฮ่าๆ~[1179909027]~
kirayamato00 โพสต์ 2008-4-24 02:08:05
โอ๊ะ ขอบคุณมากครับ ของใหม่มาแย้ว
dreamwork2008 โพสต์ 2008-4-27 01:23:06
แหล่มจิงๆครับ
j2547 โพสต์ 2008-6-23 08:58:59
ขอบคุณครับ   ~:2:~   แต่ว่า มือใหม่อย่างผม เจอไฟล์ 3 ตัว งง ไม่รู้จะเอาไปวางไว้ตรงไหน  

คูมือก็เป็นภาษาจีนอีก  คง เครียด  ไม่มีรายละเอียดสำหรับมือใหม่เลย


~:4:~
taroman โพสต์ 2008-6-23 09:53:19
ขอบคุณครับผม
UnixMan โพสต์ 2008-6-23 21:07:34
เดี๋ยวต้องลองใช้ดูซะแล้ว  ขอบคุณมาก ๆ ครับ
seasonthree โพสต์ 2008-9-25 17:45:39
http://www.discuzthai.com/thread-1774-1-1.html
มะแสดงผลงับ ช่วยดูให้หน่อย
kanumtan โพสต์ 2008-9-25 19:31:37
ขอบคุณค่ะ
สวยๆตลอดเลย
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

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

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

GMT+7, 2024-5-21 18:31

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

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