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

[Talk] ตั้งกระทู้แล้วขึ้นแบบนี้

  [คัดลอกลิงก์]
12141214 โพสต์ 2011-5-4 20:04:11 |โหมดอ่าน
แก้ไขครั้งสุดท้ายโดย 12141214 เมื่อ 2011-5-4 20:09

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

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










จาแก้ยังไงครับ



นี่ครับ โคด ในที่มันบอก

<?php



/*
        [facebookfan] (C)2009-2010 xileguo.
        $Id: fbfan.inc.php 2010-06-20 $
*/

if(!defined('IN_DISCUZ')) {
                exit('Access Denied');
}

class plugin_xlg_fbfan {
        function plugin_xlg_fbfan() {
                global $_G;
                $this->tidopen = $_G['cache']['plugin']['xlg_fbfan']['tidopen'];
                $this->indopen = $_G['cache']['plugin']['xlg_fbfan']['indopen'];
                $this->fsid = $_G['cache']['plugin']['xlg_fbfan']['fsid'];
                $this->fhnb = $_G['cache']['plugin']['xlg_fbfan']['fhnb'];
                $this->fhheight = $_G['cache']['plugin']['xlg_fbfan']['fhheight'];
                $this->fhwidth = $_G['cache']['plugin']['xlg_fbfan']['fhwidth'];
        }
}


class plugin_xlg_fbfan_forum extends plugin_xlg_fbfan {
        function viewthread_postbottom_output(){
                global $_G,$postlist,$tglink;
                if(empty($postlist) || !is_array($postlist)) return;
                foreach($postlist as $posts) {
                        $pids[] = $posts['pid'];
                        $return[$posts['pid']] = '';
                }
                $query = DB::query("SELECT * FROM ".DB::table('forum_post')." WHERE pid in(".implodeids($pids).") AND first=1");
                while($table= DB::fetch($query)) {

                if($this->tidopen == 1){   
                   $return[$table['pid']] = '<center><br>
<!-- AddThis Button BEGIN -->
<style type="text/css">
<!--
.addthis_toolbox .hover_effect
{
    width: 270px;
    padding: 10px 0 6px 10px;
    border: 3px solid #eee;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.addthis_toolbox .hover_effect div
{
    float: left;
}

.addthis_toolbox .hover_effect a
{
    border: 2px solid #fff;
    padding: 2px 2px 2px 16px;
    position: relative;
    text-decoration: none;
}

.addthis_toolbox .hover_effect a:hover
{
    border: 2px solid #105CB6;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background: #B4D3F8;
    color: #105CB6;
    text-decoration: none;
}

.addthis_toolbox .hover_effect span
{
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    left: 1px;
}
-->
</style>
   
<script type="text/javascript">
var addthis_brand = "FBFAN V2.5";
var addthis_language = "zh";
</script>

<div class="addthis_toolbox" align="center">
    <div class="hover_effect">

    <div style="float: left;">ทึฯํตฝ&nbsp;&nbsp;</div>
        <div><a title="Send to Facebook" target="_blank" class="addthis_button_facebook at300b"><span class="at300bs at15t_facebook"></span>&nbsp;</a></div>
        <div><a title="Send to Blogger" target="_blank" class="addthis_button_blogger at300b"><span class="at300bs at15t_blogger"></span>&nbsp;</a></div>
        <div><a title="Send to Live" target="_blank" class="addthis_button_live at300b"><span class="at300bs at15t_live"></span>&nbsp;</a></div>
        <div><a title="Tweet This" target="_blank" class="addthis_button_twitter at300b"><span class="at300bs at15t_twitter"></span>&nbsp;</a></div>
        <div><a title="Email" class="addthis_button_email at300b"><span class="at300bs at15t_email"></span>&nbsp;</a></div>
        <div>&nbsp;<a class="addthis_button_expanded at300m"><span class="at300bs at15t_expanded"></span>&nbsp;ธถเ...</a></div>
        <div style="clear: both; float: none;"></div>
    </div>

<div class="atclear"></div></div>
<script src="source/plugin/xlg_fbfan/js/widget.js" type="text/javascript"></script>
<!-- ADDTHIS BUTTON END -->
</center>';
                }else{
                   $return[$table['pid']] = '';
                }
               
                        return array_values($return);
                }        
        }

        function index_top(){
                require DISCUZ_ROOT.'./data/plugindata/xlg_fbfan.lang.php';
                global $_G;         
                $fanindex = '<center><iframe src="http://www.facebook.com/plugins/likebox.php?id='.$this->fsid.'&amp;width='.$this->fhwidth.'&amp;connections='.$this->fhnb.'&amp;stream=false&amp;header=false&amp;height='.$this->fhheight.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$this->fhwidth.'px; height:'.$this->fhheight.'px;" allowTransparency="true"></iframe></center><br>';              
                if($this->indopen == 1){  
                        return $fanindex;  
                }else{
                        return '';
                }

        }

}


?>



ไม่รู้เลยว่าจะแก้ตรงไหนอะครับ

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

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

x

คะแนน

จำนวนผู้เข้าร่วม 2จิตพิศัย +2 ย่อ เหตุผล
pakalama1 + 1
pakalama + 1 เยี่ยมมาก ขอบคุณครับ.

ดูบันทึกคะแนน

 เจ้าของ| 12141214 โพสต์ 2011-5-4 20:11:00
อันนี้    เปิดใน    ie8 ครับ ขึ้นแบบนี้



Fatal error: Call to undefined function implodeids() in /home/boardclubn/domains/boardclub.net/public_html/source/plugin/xlg_fbfan/fbfan.class.php on line 33
arafarn12 โพสต์ 2011-5-4 20:12:59
น่าจะเป็นปลั๊กอินครับ
เข้าไปที่ AdminCP - ปลั๊กอิน - ปลั๊กอินแฟนเพจ xlg_fbfan ปิดปลั๊กอินซะ
 เจ้าของ| 12141214 โพสต์ 2011-5-4 20:17:17
ปิดแล้วหายครับ
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

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

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

GMT+7, 2024-5-1 00:30

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

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