Dedecms4.0RC1整合phpwind 5.3完全攻略
 

安装目录如下:
1.dede安装在首页目录,即可用 127.0.0.1访问
2.phpwind 5.3(以下简称pw)安装bbs目录,127.0.0.1/bbs访问
3.都安装在同一数据库里,dede_,PW_为前缀,以方便区分

安装过程,
1.安装dede,得到cookie密码,如果不记得,也可以在通行证下看到,如我的:RfGZu6711L

2.安装pw,通行证不需要任何设置
3.进入dede后台,启用通行证,配置如图,(注,我的机子名称为ma1,你可把它改为你的域名或者本机用127.0.0.1)
cookie

通行证

4.修改pp_dederemote_interface.php,在下载安装包中,

1)cookie密码

CODE:
$cfg_cookie_encode = "RfGZu6711L";
        //这里请填写DedeCms系统的cookie加密码
[Copy to clipboard]

2)域标识

CODE:
$domain = "";
[Copy to clipboard]

  注:如果本地机为空,否则放域名,不带www,如:fs119.net
3)

CODE:
$DedeAPI_Url = "http://你的域名/member/passport/pp_dederemote.php";
[Copy to clipboard]

  注:一定要修改这个,安装包里是http://localhost/,如果不修改,则出现远程通信错误,如为本机,则可以不动
4.操作后跳转地址


CODE:
$cfg_loginJumpUrl = "/member/index.php"; //登录成功后跳转的网址   (空按第三方系统默认)

$cfg_regJumpUrl = "/member/index.php";   //注册成功后跳转的网址   (空按第三方系统默认)
[Copy to clipboard]

看需要设置,没关系的

5.将api的四个文件上传到bbs目录下,一定要上传,老柏加了代码进去了,具体大家打开比较

6.修改首页登陆模板代码,替换成以下:


CODE:

<form name='form1' method='POST' action='/bbs/login.php'>
<input type='hidden' name='jumpurl' value='/?n'>
<input type='hidden' name='step' value=2>
<input type='hidden' name='cktime' value='31536000'>
<tr>
<td height="28"> </td>
<td width="30%">用户名:</td>
<td width="63%"><input name="pwuser" type="text" id="userid" style="width:120px;height:20px;border:1px solid #cccccc"></td>
</tr>
<tr>
<td height="28"></td>
<td>密 码:</td>
<td><input type="password" name="pwpwd" style="width:120px;height:20px;border:1px solid #cccccc"></td>
</tr>
<tr>
<td height="28"> </td>
<td>验证码:</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%"><input name="gdcode" type="text" id="vdcode" style="width:50px;height:20px;border:1px solid #cccccc"></td>
<td><img src="/bbs/ck.php?windid="></td>
</tr>
</table></td>
</tr>
<tr>
<td width="4%" height="57"> </td>
<td height="57" colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" align="center">
<input name="imageField" type="image" src="/templets/img/loginbt.gif" width="75" height="28" border="0">
</td>
<td> <a href="/member/index_do.php?fmdo=user&dopost=regnew"><img src="/templets/img/regbt.gif" width="75" height="28" border="0"></a>
</td>
</tr>
</table></td>
</tr>
</form>


[Copy to clipboard]


最后,按图将原论坛用户导入dede


完成后,慢慢享受dede,pw带来的方便,成功后,别忘了带个IP给我
用户导入设置



dedecms4.0rc1+discuz 5.5 完美整合教程

演示地址目前不公开,我的新站还在调试中,目前不想有太多没用的账号,所以想测试的朋友自己改成功了测试啊,我的站6月1日上线,敬请期待!(图片已修复,最新版本不需要导入数据库,其他操作一样)
整合程序:dedecms4.0rc1+discuz 5.5 注:是你的域名。
安装目录如下:
1.dede安装在首页目录,即可用
www.访问
2.discuz 5.5(以下简称dz)安装bbs目录,bbs.访问
3.都安装在同一数据库里,dede_,cdb_为前缀,以方便区分,安装过程:
1.安装dede,得到cookie密码,如果不记得,也可以在通行证下看到,如我的:TsGZw3517K
2.安装dz,通行证设置如下:
启用通行证: 选

通行证私有密匙:
TsGZw3517K
验证字串有效期(秒):
3600
应用程序 URL 地址:
www.
应用程序注册地址: member/index_do.php?fmdo=user&dopost=regnew
应用程序登录地址: member/login.php
应用程序退出地址: member/index_do.php?fmdo=login&dopost=exit
积分同步选项: 不同步积分

3.进入dede后台,启用通行证,配置如图:

4.修改pp_dederemote_interface.php,在下载安装包中:
1)cookie密码:

CODE:
$cfg_cookie_encode = "TsGZw3517K";
    //这里请填写DedeCms系统的cookie加密码
[Copy to clipboard]

2)域标识
$domain = "";
3)DedeCms通行证接口网址

CODE:
$DedeAPI_Url = "
http://www./member/passport/pp_dederemote.php";
[Copy to clipboard]

4)跳转网址,我是想叫跳到论坛,所以都是空,请根据自己情况设置。

CODE:
$cfg_loginJumpUrl = ""; //登录成功后跳转的网址   (空按第三方系统默认)

$cfg_regJumpUrl = "";   //注册成功后跳转的网址   (空按第三方系统默认)

$cfg_editJump = "";     //更改资料成功后跳转的网址 (空按第三方系统默认)

$cfg_exitJump = "";     //退出后跳转到的网址     (空按第三方系统默认)
[Copy to clipboard]

5)将api的四个文件上传到bbs目录下,一定要上传,老柏加了代码进去了,具体大家打开比较

6)修改首页登陆模板代码,替换成以下:只需要替换这段就可以,具体美化请根据情况。


CODE:
<form name='form1' method='POST' action='http://bbs./logging.php?action=login'>
<input type='hidden' name='jumpurl' value='/'>
<input type='hidden' name='step' value=2>
<input type='hidden' name=cookietime value='31536000'>
<tr>
<td height="28"> </td>
<td width="30%">用户名:</td>
<td width="63%"><input type="text" name="username" style="width:120px;height:20px;border:1px solid #cccccc"></td>
</tr>
<tr>
<td height="28"></td>
<td>密 码:</td>
<td><input type="password" name="password" style="width:120px;height:20px;border:1px solid #cccccc"></td>
</tr>
<tr>
<td width="4%" height="57"> </td>
<td height="57" colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<input type="submit" name="loginsubmit" value="登录">
    <input type="reset" name="reset" value="重置">
    <input type="button" value="注册" >
    <input type="button" value="游客" >

</td>
<td></td>
</tr>
</table></td>
</tr>
</form>
[Copy to clipboard]


最后,按图将原论坛用户导入dede,否则会出现用户名不存在的现象。