Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorMoonworks
    • CommentTimeJun 30th 2009
     

    I'm just sorting out the templates, and I want to use the header on the main purchase pages, but I don't want to use either the header or footer on the affiliates pages.

    How do I sort that out?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeJun 30th 2009 edited
     
    Project Admin

    I've quickly modified the "templates/core/main.tpl" file (you'll need to re-download to grab it) so that if you define 'NO_HEADER' or 'NO_FOOTER' it won't include those files when rendering the page.

    So, in the "modules/affiliates/account.php" file, find:

    //load template
    include_once($oiopub_set->folder_dir . "/templates/core/main.tpl");

    Add above it:

    define('NO_HEADER', true);
    define('NO_FOOTER', true);

    It will look a bit odd without a css file in place (since it's contained within the header),but you could always further modify the main.tpl file to include custom code if those definitions are set to true.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorMoonworks
    • CommentTimeJun 30th 2009
     

    Thanks, that works great.

    Not added my own footer yet, but as you can see, works fine:

    http://www.residentialtraining.co.uk/oiopub-direct/modules/affiliates/account.php

    Need help?  Quick start guide | Troubleshooting | All help topics