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

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's great even for a ...

      
  1. #1
    New Member
    Join Date
    Oct 2004
    Posts
    8
    Rep Power
    0


    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'); ?>

  2. #2
    New Member
    Join Date
    Oct 2004
    Posts
    8
    Rep Power
    0


    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

Similar Threads

  1. paypal udates for MAX1.7 ?
    By evileddie in forum osCMax v1.7 General Mods Discussion
    Replies: 5
    Last Post: 07-22-2005, 01:08 PM
  2. moneybookers and max1.5.5
    By battleaxe in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 01-29-2005, 05:37 AM
  3. new max1.7 error
    By danieln in forum osCMax v1.7 Installation
    Replies: 4
    Last Post: 10-05-2004, 05:13 AM
  4. How do i install..i download max1.5
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 01-03-2004, 11:22 AM
  5. coolmenu for MS2 MAX1.5
    By amilo in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 12-29-2003, 04:28 AM

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
  •