Custom Code - Your Subscriptions Pages in the Menu

Discussion in 'Customization & add-ons' started by rbengson, Dec 9, 2010.

  1. rbengson

    rbengson New Member

    Joined:
    Dec 8, 2010
    Messages:
    2
    First off thank you for a wonderful product. This product has been running smoothly while I've been setting the software up.

    So let me break it down what I've been doing and my question at the end.

    My goal (almost achieved) - When the guest signs up for either the Free or Pro accounts. They will see a new menu system in the main navigation. So the Free account will have 3 pages (a.html b.html c.html) in main navigation and the Pro account will have 4 pages (e.html f.html g.html h.html).

    What I did:
    Change the header code so it displays Subscriptions Pages
    Create a pages to link up to Subscriptions Pages(e.html f.html g.html) This is where I am having problems.

    I changed the code in the header with (it works):

    This code is in my Header to work with Product
    <ol id="tabs">
    <li><a href="http://www.mikedev.searchbulkreos.com/amember/member.php">Home</a></li>
    {foreach from=$member_products item=p}
    <li>
    {if $p.url gt "" }
    <a href="{$p.url}">{$p.title}</a>
    {else}
    <b><a href="http://searchbulkreos.tumblr.com" target="_new">Blog</a></b>
    {/if}
    </li>
    {foreach from=$p.add_urls item=t key=url}
    <li><a href="{$url}">{$t}</a></li>
    {/foreach}
    {/foreach}

    </ol>

    How it works/Problem - When I go and create a product > Product URLs > Additional URLs > Add what pages I want. It works and the pages are displayed as needed This is where I am having problems.

    Problem - When I create pages and you CLICK on them on the main navigation (a.html b.html c.html). Everything breaks. It is not loading the custom code in. I know my files paths are correct and making sure that it is not in the directory that is protected for the {include file="../templates/footer.html"} or {include file=".footer.html"}.

    My question is how do I create a simple page making sure that the {include footer and header} works correctly? The code keeps breaking. Do you guys have a controller file (file that allows other files to show)?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    If you want to use {include footer and header} inside your pages you should create pages in php and use smarty to display these pages.
    Or as simplest solution just display your pages in iframe.
  3. rbengson

    rbengson New Member

    Joined:
    Dec 8, 2010
    Messages:
    2
    How does one use smarty to display the pages. If I find a solution I will post it.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279

Share This Page