Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2004
    Posts
    14
    Plugin Contributions
    0

    need to override pages/account-*/ - how to?

    I need to overwrite three header_php.php files in pages/account, account_history and account_history_info.
    The manual says, there is currently no way to do that.

    Is there any safe solution to the problem which will not complicate any future upgrades?

    I also need to put some extra define statements for my class which define extra tables. I have also others which are language dependent. Where shall I put them?

    Thanks for any advice,
    wdrwc

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: need to override pages/account-*/ - how to?

    You're right, everything in includes/modules/pages is not overrideable (is that a real word? ) at this time. The best bet is to create a backup copy of the original file (e.g. name it "header.php.bak") for safe keeping. Then, clearly comment everywhere that you make changes in the file.

    Here's a real-world example from my own website. This is from the header file for checkout_success. I needed some extra checks certain products:
    Code:
    // START Modified 5/10/2006
    // Frank Koehl
    // Membership processing needs to see this data on each order
    //if ($flag_global_notifications != '1') {
    if (true) {
      ...
    }  // END if (true)
    // END Modified 5/10/2006
    This way, whenever I compare files for updates, the changes appear along with a clear explanation about what I did.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    Sep 2004
    Posts
    14
    Plugin Contributions
    0

    Default Re: need to override pages/account-*/ - how to?

    Simple but great idea. Changes easy to find.
    Thanks,
    wdrwc

 

 

Similar Threads

  1. Customising defined pages - override
    By paulcreedy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Sep 2010, 10:15 AM
  2. Override of includes/modules/pages
    By sfatula in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 6 Apr 2010, 05:21 PM
  3. how to override includes > modules > pages > page_folder > header_php.php
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 05:45 PM
  4. How to override files under pages
    By ericpeng in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 May 2006, 12:45 AM

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