Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    51
    Plugin Contributions
    0

    Default header and footer files

    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.

  2. #2
    Join Date
    May 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: header and footer files

    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.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: header and footer files

    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

  4. #4
    Join Date
    May 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: header and footer files

    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?

 

 

Similar Threads

  1. header and footer
    By dmagic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Mar 2011, 09:52 PM
  2. Header and Footer
    By shiningfaery in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Nov 2010, 09:26 PM
  3. Header & footer tpl files
    By heimskr75 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2008, 03:02 PM
  4. Help with header and footer font and color size
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Nov 2007, 06:35 PM
  5. Creating Header and Footer per Category and Product
    By gardengate in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Aug 2006, 08:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR