1
dantom
system_redirect.html
  • 2004/8/3 10:07

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


Hello there!

I have a little problem with this template. I would like to have e redirect template integrate on xoops's theme.
In all site, when there is a redirect page i want to see the same page BUT with theme include.

I try to edit function redirect_header() in /include/functions.php like this:

=================================================

line 393
include XOOPS_ROOT_PATH.'/header.php'
$xoopsTpl->display('db:system_redirect.html');
include XOOPS_ROOT_PATH.'/footer.php'
exit();

==================================================

..but blank page :(

I try only include only XOOPS_ROOT_PATH.'/footer.php' because i supposed that header.php is just working

I try with include_once
i try including mainfile.php

nothing...

where i wrong?

Thank!

Dantom

2
Stewdio
Re: system_redirect.html
  • 2004/8/3 10:17

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


At the moment, I'm not sure if you 'can' wrap the redirect pages within xoops. I've also tried with limited success. You may want to edit the redirect to:

$xoopsTpl->display('db:system_redirect.php');

then make a copy of your system_template.html as a .php file, dumping it in your templates directory and then generating it as usual. IT might take some trial and error, if it works at all.

Again, I have no idea if this will work, but I would try it based what you found so far. I would do it myself and test, but I'm running out the door as we speak.

Others of course may have a better alternative. Personally, I like the redirect the way they are, because they are not affected by the theme.css used, therefor allowing me customize the same consistant look, no matter how often I change my theme. For instance, I use my site logo on my redirect, it's been that way for over a year, no matter what flavour theme my site has used.

3
agf8623
Re: system_redirect.html
  • 2004/8/4 17:17

  • agf8623

  • Just popping in

  • Posts: 59

  • Since: 2004/5/15


out of curiosity, is it possible to not use the redirect page?

4
dantom
Re: system_redirect.html
  • 2004/8/5 23:51

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21



I think yes. Don't use redirect_header functions , but header function of php.

Dantom

Login

Who's Online

184 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 184


more...

Donat-O-Meter

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

Latest GitHub Commits