- 資訊首頁(yè) > 互聯(lián)網(wǎng) >
- PhpWind安裝分享百度插件
獲取百度分享按鈕PhpWind插件
更新日期:2011.09.21
1、從百度分享官方網(wǎng)站下載百度分享插件的PhpWind版本即bdshare_phpwind.zip文件。
2、到PhpWind后臺的插件中心安裝"百度分享按鈕"。
3、安裝完成后,您需要首先對百度分享工具進(jìn)行設置,復制您自己的百度分享代碼,并選擇按鈕位置。
修改根目錄下的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
找到根目錄下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。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站