织梦dedecms整合phpwind7.X后的页面跳转问题方法:找到网站的api文件夹,找到里面的client.php文件点编辑。然后找到
//登录动作function login($userId,$pwd,$type=1,$gourl=”){global $forward,$gourl;$this->action = ‘login’;if(isset($forward)){$this->forward = rawurldecode($forward);}elseif(isset($gourl)){$gourl = str_replace("../","/",$gourl);$gourl = str_replace("//","/",$gourl);$this->forward = "";//$this->forward = $GLOBALS["cfg_basehost"]."/".$gourl;}else{$this->forward = $GLOBALS["cfg_basehost"]."/member/index.php";}
红色的字体就是大家要找到的地方,我在前面加了//,大家找到这一行替换成上面兰色字体的那段。大家只要把网址改一下就行了,把改成你需要跳转的论坛网址。如果大家觉得在CMS网站登陆的会员都是跳转到会员首页想跳转到网站首页又要怎么弄呢,同理,只要把上面紫色的代码替换如下:$this->forward = $GLOBALS["cfg_basehost"]."/";