Hello all!
I would be grateful for some advice on an installation and integration problems, as follows:
- Modx 0.9.6.2-rc2 (with WinloginPE 1.3.2 Beta 1)
- SMF 1.1.6
- AJAX Chat
https://blueimp.net/ajax/
Some questions:
1. How I get login/logout process without redirection from smf_forum? Redirection with refurl can`t works...
2. How I get login/logout process without redirection from AJAXchat? Default is redirect into smf forum page /smf_forum/index.php?action=login2
Some problems that I have decided (resolved) during the installation (at installation process):
1. assets/modules/smf_forum/smf.base.class.inc.php, All the indexes ’smfpath’ ($e->params) have been replaced by ’smfpth’
2. assets/modules/smf_forum/smf.integrate.inc.php, This line
header("refresh:0;url={$cmsurl}index.php?id=".(isset($params['logoutpg']) && !empty($params['logoutpg']) ? $params['logoutpg'] : $params['loginpg']).'&webloginmode=lo&smflogout=1');
has been replaced by the following line
header("refresh:0;url={$cmsurl}index.php?id=".(isset($params['logoutpg']) && !empty($params['logoutpg']) ? $params['logoutpg'] : $params['loginpg']).'&webloginmode=lo&smflogout=1&service=logout');
3.assets/modules/smf_forum/smf.integrate.inc.php, was added case ’login2’ lines
global $boardurl;
$refurl='&refurl='.urlencode($boardurl); // setup return url
$urlUser = isset($_REQUEST['username']) ? '&username=' . $_REQUEST['username'] : null;
header("refresh:0;url={$cmsurl}index.php?id=".(isset($params['loginpg']) ? $params['loginpg'] : 1).$urlUser . $refurl);
exit;
for AJAXChat login process
4. assets/snippets/webloginpe/weblobinpe.class.php, Into all login/logout events parameters was added ’username’ => $this->Username variable
P.S. I am sorry for my English
Thank you
Nikolaj
New Modx User