Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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 ?

Who's Online

211 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

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

Latest GitHub Commits