HighHobbies.com Posted January 24, 2004 Share Posted January 24, 2004 This has to be all over the forums and in the wiki docs but i cant find it... I need to add html into a php document with the header, both columns, and the footer on the same page. Can someone remind me of what the code is to do this? THANKS! Link to comment Share on other sites More sharing options...
Urbluffingme Posted January 24, 2004 Share Posted January 24, 2004 Can you be a little more specific? Link to comment Share on other sites More sharing options...
HighHobbies.com Posted January 24, 2004 Author Share Posted January 24, 2004 <?php define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); // Start session management $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // // // Start output of page // $page_title = "Forum"; include($phpbb_root_path . 'includes/page_header.'.$phpEx); ?> HTML GOES HERE <?php include('includes/page_tail.'.$phpEx); ?> In phpbb fourms you can use the above code and type whatever you want into html and insert the html to where it says to in the code. This way you have the page header, the right and left columns (menu bars), and the page footer that says oscommerce. And in the middle instead of products you would have your html. This code wount work for oscommerce. I need one that will. Thanks to all that care to help someone in need. Link to comment Share on other sites More sharing options...
Urbluffingme Posted January 24, 2004 Share Posted January 24, 2004 You can just go into includes/index.php. If you look at the code for the layout, you can see that the center of the page, between the header and the footer, consists of a main table with 3 cells. the left cell holds column left, the middle cell holds the greeting, background image, new_products module, and the php code for the database commands, and the right cell holds column right. I think you can replace the stuff in that middle cell with your html. Link to comment Share on other sites More sharing options...
♥ecartz Posted January 24, 2004 Share Posted January 24, 2004 There is a contribution for this. Alternately, you could copy a page like conditions.php, which is essentially the osCommerce frame with HTML text in the middle. Hth, Matt Always back up before making changes. Link to comment Share on other sites More sharing options...
HighHobbies.com Posted January 24, 2004 Author Share Posted January 24, 2004 thanks very much Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.