1
xXMaartenXx
Other redirect page non members

When i switch the "downloads" module in Anonymous user group "module access" off. Anonymous users see a redirect page.
(Sorry, you don't have the permission to access this area.
If the page does not automatically reload, please click here)
After that page the anonymous user redirect to ----> ../user.php?xoops_redirect=......

I want to change that redirect url in an other one. Not redirecting to the registration page

I try too change it in user.php but that has no effect



Can i change it?

And how?

(The redirection for the anti-leech page is already fixt)

2
xXMaartenXx
Re: Other redirect page non members

Fixt.


in user.php:



if ($op == 'main') {
if ( !$xoopsUser ) {
$xoopsOption['template_main'] = 'system_userform.html';
include 'header.php';
$xoopsTpl->assign('lang_login', _LOGIN);
$xoopsTpl->assign('lang_username', _USERNAME);
if (isset($HTTP_COOKIE_VARS[$xoopsConfig['usercookie']])) {
$xoopsTpl->assign('usercookie', $HTTP_COOKIE_VARS[$xoopsConfig['usercookie']]);
}
if (isset($HTTP_GET_VARS['xoops_redirect'])) {
$xoopsTpl->assign('redirect_page', htmlspecialchars(trim($HTTP_GET_VARS['xoops_redirect']), ENT_QUOTES));
}
$xoopsTpl->assign('lang_password', _PASSWORD);
$xoopsTpl->assign('lang_notregister', _US_NOTREGISTERED);
$xoopsTpl->assign('lang_lostpassword', _US_LOSTPASSWORD);
$xoopsTpl->assign('lang_noproblem', _US_NOPROBLEM);
$xoopsTpl->assign('lang_youremail', _US_YOUREMAIL);
$xoopsTpl->assign('lang_sendpassword', _US_SENDPASSWORD);
include 'footer.php';
} elseif ( $xoopsUser ) {
header('Location: '.XOOPS_URL.'/userinfo.php?uid='.$xoopsUser->getVar('uid'));
}
exit();


make this:

if ($op == 'main') {
if ( !$xoopsUser ) {
$xoopsOption['template_main'] = 'system_userform.html';
include 'YOUR_REDIRECT_PAGE.php';

} elseif ( $xoopsUser ) {
header('Location: '.XOOPS_URL.'/userinfo.php?uid='.$xoopsUser->getVar('uid'));
}
exit();


I think this is the right way to change it.
It is working fine ;)

Login

Who's Online

475 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 475


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits