osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

coverting ms2 .php to run in max1.5

This is a discussion on coverting ms2 .php to run in max1.5 within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hello, I'm using osc 2.2 max 1.5 after playing around with 2.2 for a while. It'...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-12-2004, 07:59 AM
New Member
 
Join Date: Oct 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wildtypitch
Default coverting ms2 .php to run in max1.5

Hello,

I'm using osc 2.2 max 1.5 after playing around with 2.2 for a while. It's great even for a beginer like me it's very easy to get into. I need to change the style easily. The problem is that many of the contributions I impliment are not max friendly. I've installed a sitemap to my max site and redirected all of the DIR_WS links and its working fine. The only problem is the template is not showing correctly. Here's a link minibikeuk to see what I mean. I've played around by adding <?php require(TEMPLATE_STYLE); ?> in the sitemap.php file and it seems to address the problem but creates errore with the sitemap.php that means the map itself does not show.
If someone could tell me how to convert a osc 2.2 milestone php to a max 1.5 frienly php I would be very greatfull. Here is a copy of the .php in question.

Thanks

Nathaniel

<?php
/*
$Id: sitemap.php,v1.0 2004/05/25 devosc Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SITEMAP));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(TEMPLATE_STYLE); ?>
<?php require(DIR_WS_ORIGINAL_OSC . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_TEMPLATE . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2">
<tr>
<td width="50%" class="main" valign="top"><?php require DIR_WS_CLASSES . 'category_tree.php'; $osC_CategoryTree = new osC_CategoryTree; echo $osC_CategoryTree->buildTree(); ?></td>
<td width="50%" class="main" valign="top">
<ul>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . PAGE_ACCOUNT . '</a>'; ?></li>
<ul>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . PAGE_ACCOUNT_EDIT . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . PAGE_ADDRESS_BOOK . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . PAGE_ACCOUNT_HISTORY . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . PAGE_ACCOUNT_NOTIFICATIONS . '</a>'; ?></li>
</ul>
<li><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . PAGE_SHOPPING_CART . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . PAGE_CHECKOUT_SHIPPING . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . PAGE_ADVANCED_SEARCH . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . PAGE_PRODUCTS_NEW . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . PAGE_SPECIALS . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>
<li><?php echo BOX_HEADING_INFORMATION; ?></li>
<ul>
<li><?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_PAYMENT_METHODS) . '">' . BOX_INFORMATION_PAYMENT_METHODS . '</a>'; ?></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_MINIMOTO_SAFETY) . '">' . BOX_INFORMATION_MINIMOTO_SAFETY . '</a>'; ?></li>
</ul>
</ul>
</td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_TEMPLATE . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_ORIGINAL_OSC . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-24-2004, 02:01 PM
New Member
 
Join Date: Oct 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wildtypitch
Default

Could someone please shine some light on the subject. I've been trying to get somewhere with it for over a week. or does anyone know of a sitemap conribution for osc max 1.5?

i thought that adding <?php require(TEMPLATE_STYLE)?> would help but i get an error

Warning: main(includes/body/PAGE_NAME): failed to open stream: No such file or directory in /home/minibik/public_html/includes/template/original_osc/catalog.php on line 53
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
paypal udates for MAX1.7 ? evileddie osCMax v1.7 General Mods Discussion 5 07-22-2005 01:08 PM
moneybookers and max1.5.5 battleaxe osCMax v1.7 Discussion 3 01-29-2005 06:37 AM
new max1.7 error danieln osCMax v1.7 Installation 4 10-05-2004 05:13 AM
How do i install..i download max1.5 Anonymous osCMax v1.7 Installation 2 01-03-2004 12:22 PM
coolmenu for MS2 MAX1.5 amilo osCMax v1.7 Installation 0 12-29-2003 05:28 AM


All times are GMT -8. The time now is 08:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax