国产成人精品18p,天天干成人网,无码专区狠狠躁天天躁,美女脱精光隐私扒开免费观看

PhpWind安裝分享百度插件

發(fā)布時(shí)間:2021-07-27 11:40 來(lái)源: 閱讀:0 作者: 欄目: 互聯(lián)網(wǎng)

PhpWind安裝分享插件

獲取百度分享按鈕PhpWind插件

更新日期:2011.09.21

  • 1、從百度分享官方網(wǎng)站下載百度分享插件的PhpWind版本即bdshare_phpwind.zip文件。

    2、到PhpWind后臺的插件中心安裝"百度分享按鈕"。

  • 3、安裝完成后,您需要首先對百度分享工具進(jìn)行設置,復制您自己的百度分享代碼,并選擇按鈕位置。

  • 一、修改帖子查看頁(yè)面:

    修改根目錄下的read.php,加入下面的一行代碼,位置如下:

    <?php
    define('SCR','read');
    require_once('global.php');
    L::loadClass('forum', 'forum', false);
    require_once(R_P.'require/bbscode.php');
    //* include_once pwCache::getPath(D_P.'data/bbscache/cache_read.php',true);
    pwCache::getData(D_P.'data/bbscache/cache_read.php');
    pwCache::getData(D_P.'data/bbscache/bdshare_config.php');
    S::gp(array('fpage','toread'), 'GP', 2);
    S::gp(array('uid','displayMode'));

    修改根目錄下template/win/read.htm,在$read[content]標簽的上面和下面分別加入下面的代碼,之后更改設置后無(wú)需修改此代碼。(加在$read[content]的上面)

    <!--
    EOT;
    if ($db_sharesite == 1 && $read[pid] == 'tpc'){
    if(isset($db_hackdb['bdshare'])){
    print <<<EOT
    -->
    {$bdshare_code_tieTop}
    <!--
    EOT;
    }
    }
    print <<<EOT
    -->

    (加在$read[content]的下面)

    <!--
    EOT;
    if ($db_sharesite == 1 && $read[pid] == 'tpc'){
    if(isset($db_hackdb['bdshare'])){
    print <<<EOT
    -->
    {$bdshare_code_tieBottom}
    <!--
    EOT;
    }
    }
    print <<<EOT
  • 二、修改日志查看頁(yè)面

    找到根目錄下apps/diary/index.php加入下面的一行代碼,位置如下所示:

    <?php
    !defined('A_P') && exit('Forbidden');
    !$db_dopen && Showmsg('dairy_close');
    $USCR = 'user_diary';
    //* include pwCache::getPath(R_P. 'data/bbscache/o_config.php');
    pwCache::getData(R_P. 'data/bbscache/o_config.php');
    //* require_once pwCache::getPath(D_P."data/bbscache/forum_cache.php");
    pwCache::getData(D_P."data/bbscache/forum_cache.php");
    pwCache::getData(D_P.'data/bbscache/bdshare_config.php');
    require_once(R_P.'require/showimg.php');

    在如下模板文件:

    apps/diary/templates/m_diary.htm
    apps/diary/templates/m_space_diary.htm

    中找到: {$diary[content]},在這個(gè)標簽的上面和下面分享加上如下代碼,同樣修改設置后無(wú)需更改代碼(加在 {$diary[content]} 的上面)

    <!--
    EOT;
    if(isset($db_hackdb['bdshare'])){
    print <<<EOT
    -->
    {$bdshare_code_diaryTop}
    <!--
    EOT;
    }
    print <<<EOT
    -->

    ====加在 {$diary[content]} 的下面====

    <!--
    EOT;
    if(isset($db_hackdb['bdshare'])){
    print <<<EOT
    -->
    {$bdshare_code_diaryBottom}
    <!--
    EOT;
    }
    print <<<EOT
    -->



免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系QQ:712375056。

一本一道波多野结衣AV一区| AV怡红院一区二区三区| 国产日产欧产精品精品APP| 青青河边草直播免费观看| 精选国产AV精选一区二区三区| 开心久久婷婷综合中文字幕|