1
tatane
Problem system_redirect.html
  • 2013/6/7 9:49

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


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?

2
tatane
Re: Problem system_redirect.html
  • 2013/6/8 10:38

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


no reponse ?

3
Mamba
Re: Problem system_redirect.html
  • 2013/6/8 12:40

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

4
tatane
Re: Problem system_redirect.html
  • 2013/6/8 12:50

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


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

5
Mamba
Re: Problem system_redirect.html
  • 2013/6/8 13:18

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

6
tatane
Re: Problem system_redirect.html
  • 2013/6/8 13:24

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


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}>?


7
Mamba
Re: Problem system_redirect.html
  • 2013/6/8 13:34

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

8
iHackCode
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 thishttp://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsCore/releases/2.5.6/htdocs/include/functions.php#l577

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

9
tatane
Re: Problem system_redirect.html
  • 2013/6/8 17:52

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


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

10
Mamba
Re: Problem system_redirect.html
  • 2013/6/9 10:43

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

Login

Who's Online

231 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits