BackLinks的安装方法 For PBDIGG 2.0

首先感谢Pbdigg得admin得帮忙。

相比BackLinks大家都很熟悉了,就不多说了,但是安装方法多半都说关于ASP或者WP博客得,对于PHP得是在说少得可怜,我就看见我都博友傻猫写过一个关于 Sablog2.0得,其他基本都是一笔带过,今天解决了PBDIGG下安装BackLinks得安装问题,特来共享一下,没注册得也可以通过http://www.backlinks.com/aff/26958注册,反正你也不损失什么,下面开始内容。

打开templates\模板目录\index.html(如果想放在首页的话),将密钥代码换成你的密钥,在BlackLink网站上获取代码的地方可以看到密钥。

将下列代码复制:

//BlackLink链接代码
// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow = "1";
// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************
$BLKey = "密钥代码";
$BLQueryString  = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$BLQueryString .= "&Key=" .urlencode($BLKey);
$BLQueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);

if(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if($BLcontent = @file("http://www.backlinks.com/engine.php?".$BLQueryString))
        $BLcode = @join('', $BLcontent);
}
else {
    $BLcode = "It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}

echo "$BLcode";

现在链接代码已经生成了,现在定位到你想放置代码都位置粘贴成下列形式:

{#php#}
此处替换成上述代码
{#/php#}

我使用得说官方默认模板三列得那个,我代码放置在合作伙伴位置,代码示例如下:
<!--4-->
<div class="list bd-r">
    <div class="list_title bg-r">BackLinks</div>
    <div class="cooperate">
    {#php#}
此处替换成上述代码
                {#/php#}
                </div><div class="clear"></div>
</div>
<!-- end --->

我觉得我这里说得不说很清楚,如果有问题可以留言或者QQ我。

BackLinks注册教程:http://www.piaoyis.com.cn/article/94.htm



[本日志由 piaoyis 于 2009-01-06 11:19 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: BackLinks安装
评论: 2 | 引用: 0 | 查看次数: -
回复回复xiaoshuo[2009-05-30 02:18 PM | del]
www.cmd8.cn .net的怎么安装呢
回复回复maozai[2009-03-01 01:10 PM | del]
www.ok16838.cn
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.