osCmax v2.5 User Manual
Results 1 to 4 of 4

Contributions that require header.php?

This is a discussion on Contributions that require header.php? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I know oscMax doesn't have a catalog/includes/header.php file. I am trying to install a couple of contributions that need the ...

      
  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    11
    Rep Power
    0


    Default Contributions that require header.php?

    I know oscMax doesn't have a catalog/includes/header.php file. I am trying to install a couple of contributions that need the header.php file

    Code:
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    How do you get around this? I've read a little bit about that templates/main_page_tpl.php being it substitute?

    I need to know how to adjust the scripts so I don't get header.php syntax errors.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Contributions that require header.php?

    Just remove any header includes as it is not there. Then, any new code that the mod instructions tell you to put in header.php, put in main_page.tpl.php

    Also, if the mods are adding new pages to the catalog, you must convert those pages to BTS format... There are a few posts about it here, do a search on adding new pages or BTS.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    11
    Rep Power
    0


    Default

    Thanks for the helpful reply

    So I would put

    <!-- header //-->
    <?php require('templates/fallback/main_page.tpl.php'); ?>
    <!-- header_eof //-->
    instead of header.php? Then modify any new pages the contribution 'adds' to BTS fomat.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    No, you would remove any and all reference calls to header.php in any files of your mod.

    I am assuming that the header code that you are referring to is in several new pages that your mod adds. BTS has no use for it, as all the header.php info is now lumped into main_page.tpl.php.

    Then, you would need to convert that new page to BTS format. This includes removing the header.php and footer.php includes. See this thread:

    http://oscdox.com/PNphpBB2-viewtopic-t-4842.html

    It is for osCMax v1.7, but the process is the same...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. looking for two contributions
    By usmanaa in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 06-10-2005, 02:32 PM
  2. BTS and other contributions
    By tarynyoung in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-27-2005, 12:23 PM
  3. header / header.php top logo problem
    By the_error_king in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-05-2004, 05:02 PM
  4. CONTRIBUTIONS
    By case510 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-19-2003, 01:12 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
  •