osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-09-2005, 03:41 PM
New Member
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamerigs
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 10-10-2005, 08:06 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,334
Thanks: 68
Thanked 324 Times in 307 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-10-2005, 10:57 PM
New Member
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamerigs
Default

Thanks for the helpful reply

So I would put

Quote:
<!-- 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-11-2005, 09:18 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,334
Thanks: 68
Thanked 324 Times in 307 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
looking for two contributions usmanaa osCMax v1.7 Discussion 1 06-10-2005 02:32 PM
BTS and other contributions tarynyoung osCommerce 2.2 Modification Help 2 03-27-2005 01:23 PM
header / header.php top logo problem the_error_king osCommerce 2.2 Modification Help 0 04-05-2004 05:02 PM
CONTRIBUTIONS case510 osCMax v1.7 Discussion 2 12-19-2003 02:12 PM


All times are GMT -8. The time now is 10:42 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax