11
phppp
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 18:23

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


where do you put ?

12
marcan
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 18:26

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


in modules/news/print.php, at the end :
Quote:
$TheFooter = $xoopsTpl->get_template_vars('xoops_footer');
echo "ello";
echo'</body>
</html>';
}
PrintPage($storyid);
?>

13
phppp
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 18:38

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


I guess you have to fetch $CONFIG OR define $XOOPSTPL by hacking include/common.php

In this case, to fetch config might be simpler

14
Mithrandir
Re: XoopsConfigMetaFooter['footer']

Any errors? php debug?

15
marcan
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 19:08

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


No errors at all.

16
phppp
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 19:10

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


include/common.php

AFTER:
Quote:

// ################# Load Config Settings ##############
$config_handler =& xoops_gethandler('config');
$xoopsConfig =& $config_handler->getConfigsByCat(XOOPS_CONF);


ADD
Quote:

$xoopsConfigFooter =& $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER);


USE:
in any file that has "include mainfile.php"
$FOOTER=$xoopsConfigFooter["footer"];

17
phppp
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 19:13

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Mith: for this specific case, print.php only includes mainfile.php and both $tpl and $config not defined

Marcn: I think you have closed your php debug

18
marcan
Re: XoopsConfigMetaFooter['footer']
  • 2004/4/6 19:25

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Thanks phppp !

And no, my phpDebug WAS turned on !

I'll test your code !

Thanks again !

Login

Who's Online

125 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 125


more...

Donat-O-Meter

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

Latest GitHub Commits