| Re: xoops preferences "site close" override |
| by liomj on 2020/10/12 21:37:07 Thank you Mamba |
| Re: xoops preferences "site close" override |
| by Mamba on 2020/10/12 3:43:10 So I looked into it, and the issue is that when the Website is closed, XOOPS goes to le="color: #000000"><?php /site_closed.php and from there it calls the le="color: #000000"><?php system_siteclosed.tpl that is located in the current theme, e.g.: /themes/xswatch/modules/system/ So there would be a lot of hacking involved, starting in le="color: #000000"><?php /include/common.php in line 325: le="color: #000000"><?php if ($xoopsConfig['closesite'] == 1) { include_once $xoops->path('include/site-closed.php'); } to redirect to your "site_closed.php", or you can changed the "site_closed.php" file itself. Because of the constant hacking that you would have to do for each new version of XOOPS, it might be easier to simply create a new "mobile" theme, and use that? |
| Re: xoops preferences "site close" override |
| by liomj on 2020/10/9 12:10:05 Thank you Mamba, its not working, ill try and look again i uploaded it here on what im trying to do..so far what i did https://github.com/liomj/mobile/ it is working fine if the site is opened but not if it is close |
| Re: xoops preferences "site close" override |
| by Mamba on 2020/10/9 9:54:23 You will need to hack XOOPS, and every time you update XOOPS to a new version, you'll have to do it again. In /include/checklogin.php in line 55-57 you have: le="color: #000000"><?php if (!$allowed) { redirect_header(XOOPS_URL . '/index.php', 1, _NOPERM); } You probably would need to change the redirect there to: le="color: #000000"><?php redirect_header(XOOPS_URL . '/mobileapp/index.php', 1, _NOPERM); This is not tested, so test it and use it at your own risk. |
| Re: xoops preferences "site close" override |
| by liomj on 2020/10/9 1:49:30 Hi i made a proof of concept mobile page with login but when the site is close it is redirect to xoopssite.com/index.php instead of xoopsite.com/mobileapp/index.php how do i override when a xoops site is closed it will redirect to a custom login page and not the default login in index.php ? |