I want to add an include into the header and footer of the site using the default template. Which files do I need to edit?
Thanks.
I want to add an include into the header and footer of the site using the default template. Which files do I need to edit?
Thanks.
I didn't make it in time to edit my post, so I want to also ask:
Is it as simple as adding the following to the tpl_header.php and tpl_footer.php files my includes like:
<?php
include(path"/file.php");
?>
I don't think it is because this doen't work...
Thanks for the help.
You are asking your question as a programatic item...and there are many that ask things to alter files that are not necessary as there are other builtin methods to acheive the desired result. This may or may not be the case for you.
Can you provide the detail of what you want to acheive from a display point?
Zen-Venom Get Bitten
I have a website that is made with XOOPS and I want to incorporate Zen-Cart. But, as everyone know, they can't integrate. So, what I want to do is try to "wrap" the Zen-Cart with the theme of the XOOPS.
If I have a html page that I want to wrap with the XOOPS theme, I would put the following before the <html>
<?php
include("./mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
and the following after the </html>
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
My thought was that if I were to put
<?php
include("./mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
into the tpl_header.php file and put
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
into the tpl_footer.php file it might work. But, no luck.
Any thoughts?
Bookmarks