POST TIME:2018-10-30 21:36
方法:
找到網站的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"]."/";