Adding a new page template inside amember

Discussion in 'Customization & add-ons' started by abgcompu, Jan 21, 2008.

  1. abgcompu

    abgcompu New Member

    Joined:
    Jan 1, 2008
    Messages:
    8
    Please,
    I need one page template that I can use to create other pages for anything I want to add.
    For example, I was able to use the index templade to create my frontpage and it works great.
    Now I I need to create some additional pages, but there is no way to do this.
    In the PHP page, I cannot find the location to insert the URL for the pape that I want to include when the page is called.
    Some PHP script has it like this:

    <?php

    include_once "include/header.html";
    include_once "include/index_t.html";
    include_once "main/footer.html";

    ?>

    Therefore I can easily change the middle link and I would be fine.
    Please let me know if you can help me.
    Thanks
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  3. abgcompu

    abgcompu New Member

    Joined:
    Jan 1, 2008
    Messages:
    8
    Thank you for your quick response, but no. This is not what I need.
    All I want is to be able to add another page on my website that pull the header and footer that is locate inside the amember template area.
    I have manage to create this using the code seen above, but this cannot be placed inside the secure area of amember.
    The way I did it was to place another header outside amember folder. This defeated to purpose of having a secure area and I have to edit 2 templates.

    If only I can make a copy of a template and change what page the script call.
    For example the template would work like this: instead of calling page A+ header + Footer, I want to call page B + header + footer. All I have to do is change the URL for the page I want to call in the script.

    Make another page and have it call: page C + header + footer and so on...
    Hope this clarify this a little.
    Thanks
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    There may be a simpler way, but this is waht I've done in the past:

    Copy profile.php to newpage.php, and /template/profile.html to/template/newpage.html.

    Then in newpage.php change instances of profile.html to newpage.html

    You now have another copy of an amember page you can use.

    David

Share This Page