PHP程序员站--PHP编程开发平台
 当前位置:主页 >> PHP开源 >> 开源CMS >> 

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

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

来源:财软联盟  作者:救火  发布时间:2007-12-25
看到还有很多同学和我一样,说配置不成功,经测试及
看到还有很多同学和我一样,说配置不成功,经测试及同学们的指点,我整合成功了,以下是配置过程,供大家参考

演示:
www.fs119.net(暂未升级)


安装目录如下:
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加密码

2)域标识
CODE:
$domain = "";

  注:如果本地机为空,否则放域名,不带www,如:fs119.net
3)
CODE:
$DedeAPI_Url = "http://你的域名/member/passport/pp_dederemote.php";


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

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

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

看需要设置,没关系的

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">
Tags: 安装   php   dedecms   dede   C   CMS   phpwind   ECMS  
最新文章
推荐阅读
月点击排行榜