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



/*
        (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 '';
                }

        }

}


?>



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

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 ปิดปลั๊กอินซะ sm913dz

12141214 โพสต์ 2011-5-4 20:17:17

ปิดแล้วหายครับ
หน้า: [1]
ดูในรูปแบบกติ: ตั้งกระทู้แล้วขึ้นแบบนี้