xoops forums

tatane

Just can't stay away
Posted on: 2013/6/7 9:49
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#1

Problem system_redirect.html

Currently the new themes that I develop are based on bootstrap. Finally use the maximum capacity of this Framework, I am trying to change the file system_redirect.html to make much prettier than the jgrowl system.

I only encountered a problem and I think it's a beug Xoops, let me explain:

If outright removes the default theme called Xoops and is replaced by another, then jgrowl system is deactivated when it goes into administration / Preferences / General settings and parameters are valid, the overload of redirect.html is not taken into account!


A module or other page does it work only in Administration / Settings / General settings it does not take into account

Administration / preferences / general settings

Resized Image

Other links
Resized Image

Do you understand my problem?

tatane

Just can't stay away
Posted on: 2013/6/8 10:38
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#2

Re: Problem system_redirect.html

no reponse ?

Mamba

Moderator
Posted on: 2013/6/8 12:40
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#3

Re: Problem system_redirect.html

I don't understand your problem.

I've installed your XD-Blogging theme, and when I set jGrowl to on/off, it is correctly using your your theme's redirect, when jGrowl is off:

Resized Image
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

tatane

Just can't stay away
Posted on: 2013/6/8 12:50
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#4

Re: Problem system_redirect.html

Ok

1 - Delete the theme named "default" in root / themes
2 - Disable jgrow
3 - Choose a theme preference / general / settings Default theme (example zetagenesis)
4 - Disconnect and then connect
5 - Go to preference / general settings and click ok

You will see that it does not work

Mamba

Moderator
Posted on: 2013/6/8 13:18
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#5

Re: Problem system_redirect.html

OK, I see what you mean.

Hmm, I am wondering if this is related to this DB call, where XOOPS is looking for the "default" tpl_tplset:

Quote:
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_redirect.html') ORDER BY tpl_refid

Maybe somebody from the Core team can take a look into it....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

tatane

Just can't stay away
Posted on: 2013/6/8 13:24
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#6

Re: Problem system_redirect.html

in the template "default" the are in root/theme/default/system/system_redirect.html this

Quote:
<{if $isMsie}> <noscript> <meta http-equiv="refresh" content="0; url=<{xoAppUrl . xoops_theme_select=default}>" /> </noscript> <{/if}>


What is it <{if $isMsie}>?

Mamba

Moderator
Posted on: 2013/6/8 13:34
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#7

Re: Problem system_redirect.html

I guess, it is for "Microsoft Internet Explorer"
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

iHackCode

Module Developer
Posted on: 2013/6/8 17:26
iHackCode
iHackCode (Show more)
Module Developer
Posts: 1036
Since: 2004/6/29
#8

Re: Problem system_redirect.html

So I think the issue that Tatane is explaining is that if you delete the default theme from XOOPS. That the issue is that the system_redirect function is not showing the redirect correctly in the system administration but shows up okay everywhere else.

It is probably related to this http://sourceforge.net/p/xoops/svn/HE ... nclude/functions.php#l577

It looks like its looking for that system_redirect.html template in the default theme.

tatane

Just can't stay away
Posted on: 2013/6/8 17:52
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#9

Re: Problem system_redirect.html

It actually comes from. So without changing the essential core ?

Mamba

Moderator
Posted on: 2013/6/9 10:43
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#10

Re: Problem system_redirect.html

Quote:
It seems that you're spot on. When I reverse it to this:

if (defined('XOOPS_CPFUNC_LOADED')) {
        
$theme $xoopsConfig['theme_set'];
    } else {
        
$theme 'default';
    }


it seems to be working as Tatane wanted it, but I don't know if there any side effects of this change. Maybe the Core Team can look into it...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs