elcidd Posted September 7, 2007 Share Posted September 7, 2007 Hello, I've installed the STSv4.5.2 and HTCv2.6.3 bundle contribution on a clean install of oscommerce-2.2rc1. Initially I had problems even finding the admin page, but I maually installed the bundle (using Winmerge for file comparison) and now I can access the admin page as well as other parts of admin. However, when I click on modules, I get the following error: Parse error: parse error, unexpected '}' in /homepages/21/d202393536/htdocs/wii/catalog/admin/modules.php on line 215 Below is the code for admin/modules.php. I am not versed in PHP, so I don't know where to begin to solve this problem (actually I think I should begin at line 215, but I have no clue where to go from there...) Does anyone know what the issue is? Thanks Lionel <?php /* $Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl 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'); $set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : ''); if (tep_not_null($set)) { switch ($set) { // START STS 4.1 case 'sts': $module_type = 'sts'; $module_directory = DIR_FS_CATALOG_MODULES . 'sts/'; $module_key = 'MODULE_STS_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_STS); break; // END STS 4.1 case 'shipping': $module_type = 'shipping'; $module_directory = DIR_FS_CATALOG_MODULES . 'shipping/'; $module_key = 'MODULE_SHIPPING_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_SHIPPING); break; case 'ordertotal': $module_type = 'order_total'; $module_directory = DIR_FS_CATALOG_MODULES . 'order_total/'; $module_key = 'MODULE_ORDER_TOTAL_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_ORDER_TOTAL); break; case 'payment': default: $module_type = 'payment'; $module_directory = DIR_FS_CATALOG_MODULES . 'payment/'; $module_key = 'MODULE_PAYMENT_INSTALLED'; define('HEADING_TITLE', HEADING_TITLE_MODULES_PAYMENT); break; } } $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'insert': case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': case 'remove': $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $class = basename($HTTP_GET_VARS['module']); if (file_exists($module_directory . $class . $file_extension)) { include($module_directory . $class . $file_extension); $module = new $class; if ($action == 'install') { $module->install(); } elseif ($action == 'remove') { $module->remove(); } } else { tep_db_query("update " . TABLE_PRODUCTS . " set manufacturers_id = '' where manufacturers_id = '" . (int)$manufacturers_id . "'"); } if (USE_CACHE == 'true') { tep_reset_cache_block('manufacturers'); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); break; } } ?> <!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> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%"><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_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_MODULES; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SORT_ORDER; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $directory_array = array(); if ($dir = @dir($module_directory)) { while ($file = $dir->read()) { if (!is_dir($module_directory . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $directory_array[] = $file; } } } sort($directory_array); $dir->close(); } $installed_modules = array(); for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) { $file = $directory_array[$i]; include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/' . $module_type . '/' . $file); include($module_directory . $file); $class = substr($file, 0, strrpos($file, '.')); if (tep_class_exists($class)) { $module = new $class; if ($module->check() > 0) { if ($module->sort_order > 0) { $installed_modules[$module->sort_order] = $file; } else { $installed_modules[] = $file; } } if ((!isset($HTTP_GET_VARS['module']) || (isset($HTTP_GET_VARS['module']) && ($HTTP_GET_VARS['module'] == $class))) && !isset($mInfo)) { $module_info = array('code' => $module->code, 'title' => $module->title, 'description' => $module->description, 'status' => $module->check()); $module_keys = $module->keys(); $keys_extra = array(); for ($j=0, $k=sizeof($module_keys); $j<$k; $j++) { $key_value_query = tep_db_query("select configuration_title, configuration_value, configuration_description, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'"); $key_value = tep_db_fetch_array($key_value_query); $keys_extra[$module_keys[$j]]['title'] = $key_value['configuration_title']; $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value']; $keys_extra[$module_keys[$j]]['description'] = $key_value['configuration_description']; $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function']; $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function']; } $module_info['keys'] = $keys_extra; $mInfo = new objectInfo($module_info); } if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { if ($module->check() > 0) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . '\'">' . "\n"; } else { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n"; } } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo $module->title; ?></td> <td class="dataTableContent" align="right"><?php if (is_numeric($module->sort_order)) echo $module->sort_order; ?></td> <td class="dataTableContent" align="right"><?php if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } } ksort($installed_modules); $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); if ($check['configuration_value'] != implode(';', $installed_modules)) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'"); } } else { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', '" . $module_key . "', '" . implode(';', $installed_modules) . "', 'This is automatically updated. No need to edit.', '6', '0', now())"); } ?> <tr> <td colspan="3" class="smallText"><?php echo TEXT_MODULE_DIRECTORY . ' ' . $module_directory; ?></td> </tr> <?php } ?> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'new': $heading[] = array('text' => '<b>' . TEXT_HEADING_NEW_MANUFACTURER . '</b>'); $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'action=insert', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_NEW_INTRO); $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_NAME . '<br>' . tep_draw_input_field('manufacturers_name')); $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_IMAGE . '<br>' . tep_draw_file_field('manufacturers_image')); $manufacturer_inputs_string = ''; $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $manufacturer_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']'); //BOC HTC $manufacturer_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('manufacturers_htc_title_tag[' . $languages[$i]['id'] . ']'); $manufacturer_htc_desc_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('manufacturers_htc_desc_tag[' . $languages[$i]['id'] . ']'); $manufacturer_htc_keywords_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('manufacturers_htc_keywords_tag[' . $languages[$i]['id'] . ']'); $manufacturer_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('manufacturers_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, ''); // EOC HTC } $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string); // HTC BOC $contents[] = array('text' => '<br>' . 'Header Tags Manufacturer Title' . $manufacturer_htc_title_string); $contents[] = array('text' => '<br>' . 'Header Tags Manufacturer Description' . $manufacturer_htc_desc_string); $contents[] = array('text' => '<br>' . 'Header Tags Manufacturer Keywords' . $manufacturer_htc_keywords_string); $contents[] = array('text' => '<br>' . 'Header Tags Manufacturer Description' . $manufacturer_htc_description_string); // HTC EOC $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $HTTP_GET_VARS['mID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $keys = ''; reset($mInfo->keys); while (list($key, $value) = each($mInfo->keys)) { $keys .= '<b>' . $value['title'] . '</b><br>' . $value['description'] . '<br>'; if ($value['set_function']) { eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']); } $keys .= '<br><br>'; } $keys = substr($keys, 0, strrpos($keys, '<br><br>')); $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); $contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save')); $contents[] = array('text' => $keys); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); if ($mInfo->status == '1') { $keys = ''; reset($mInfo->keys); while (list(, $value) = each($mInfo->keys)) { $keys .= '<b>' . $value['title'] . '</b><br>'; if ($value['use_function']) { $use_function = $value['use_function']; if (ereg('->', $use_function)) { $class_method = explode('->', $use_function); if (!is_object(${$class_method[0]})) { include(DIR_WS_CLASSES . $class_method[0] . '.php'); ${$class_method[0]} = new $class_method[0](); } $keys .= tep_call_function($class_method[1], $value['value'], ${$class_method[0]}); } else { $keys .= tep_call_function($use_function, $value['value']); } } else { $keys .= $value['value']; } $keys .= '<br><br>'; } $keys = substr($keys, 0, strrpos($keys, '<br><br>')); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove') . '">' . tep_image_button('button_module_remove.gif', IMAGE_MODULE_REMOVE) . '</a> <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['module']) ? '&module=' . $HTTP_GET_VARS['module'] : '') . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>'); $contents[] = array('text' => '<br>' . $mInfo->description); $contents[] = array('text' => '<br>' . $keys); } else { $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install') . '">' . tep_image_button('button_module_install.gif', IMAGE_MODULE_INSTALL) . '</a>'); $contents[] = array('text' => '<br>' . $mInfo->description); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 7, 2007 Share Posted September 7, 2007 Lionel, I sent you a PM. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
awhitedesigns Posted September 8, 2007 Share Posted September 8, 2007 I would like to now change the way my Categories / search side bar looks, which file would i edit to do so? Here is what i have now http://outlawmotorsportsaz.com/catalog/index.php. Quote Link to comment Share on other sites More sharing options...
duker10 Posted September 8, 2007 Share Posted September 8, 2007 133 pages of posts is a lot to go through manually, and since I have exhausted any search tags I could think of, I'm gonna ask this question. Hope it hasn't been asked too many times. I have installed osCommerce v 2.2 RC1 today, and am trying to "skin" the page to look like the rest of my pages. All seems to have gone well, except on the left column of my page I get the following text, which screws up my column widths. Ican't for the life of me figure out what I need to change, or where I need to change it. The text is: Template file does not exist: [includes/sts_templates/test/boxes/infobox.php.html] My site is http://www.thehogsden.com/catalog Thanks in advance Quote Link to comment Share on other sites More sharing options...
duker10 Posted September 8, 2007 Share Posted September 8, 2007 133 pages of posts is a lot to go through manually, and since I have exhausted any search tags I could think of, I'm gonna ask this question. Hope it hasn't been asked too many times. I have installed osCommerce v 2.2 RC1 today, and am trying to "skin" the page to look like the rest of my pages. All seems to have gone well, except on the left column of my page I get the following text, which screws up my column widths. Ican't for the life of me figure out what I need to change, or where I need to change it. The text is: Template file does not exist: [includes/sts_templates/test/boxes/infobox.php.html] My site is http://www.thehogsden.com/catalog Thanks in advance Another thing I forgot to ask about - when I preview my page, it says that the cost for everything is still 0 Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 8, 2007 Share Posted September 8, 2007 133 pages of posts is a lot to go through manually, and since I have exhausted any search tags I could think of, I'm gonna ask this question. Hope it hasn't been asked too many times. I have installed osCommerce v 2.2 RC1 today, and am trying to "skin" the page to look like the rest of my pages. All seems to have gone well, except on the left column of my page I get the following text, which screws up my column widths. Ican't for the life of me figure out what I need to change, or where I need to change it. The text is: Template file does not exist: [includes/sts_templates/test/boxes/infobox.php.html] My site is http://www.thehogsden.com/catalog Thanks in advance The error message is telling you the truth...the template file does not exist in that path. In your case, you have set the "Use Infobox Templates" to true in the STS Default Module in the Admin section of your store, BUT, you have your template folder set to use the "test" folder. Take a look at your test folder and you will see that it does not have a folder in it called "boxes". This is by design since the test folder should only be used to "test" the STS installation and then move on from there. :thumbsup: I would suggest that at the very least you change your template folder to "full". Once you get the hang of STS, you can add as many template folders that you desire, one for each season, holiday, full moon, etc. Just make sure you include the "boxes" and "content" folders in each of your new template folders. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted September 8, 2007 Share Posted September 8, 2007 Another thing I forgot to ask about - when I preview my page, it says that the cost for everything is still 0 This is not an STS issue. It most likely has to do with an errant setting or that you made a change to the osC code that is not correct. You said you have the latest version of osC (RC1) so you should not be affected by the bug that was in the previous 060817 version unless you installed a contribution that introduced this bug once again. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
chemjul2005 Posted September 8, 2007 Share Posted September 8, 2007 Another thing I forgot to ask about - when I preview my page, it says that the cost for everything is still 0 I had this problem. It has to do with default currency and/or language. Did you add a language? The solution that helped me was at http://www.oscommerce.com/forums/index.php?showtopic=79817 gina Quote Link to comment Share on other sites More sharing options...
chemjul2005 Posted September 8, 2007 Share Posted September 8, 2007 I have installed a fresh copy of OScommerce, RC1. Then I took the htc and sts bundle and installed it according to the instructions. Since I had a fresh copy, I copied over the files, not merging them. But when I enter the admin-panel, there is no STS module (nor Headertags). in catalog/includes/modules I have: address_book_details.php also_purchased_products.php checkout_new_address.php downloads.php new_products.php order_total payment product_listing.php shipping sts sts_inc upcoming_products.php is the RC1 different from MS2.2? Should I be merging? (I rather not do that, because there is so much room for error, and I dont have a live shop). TIA gina Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 8, 2007 Share Posted September 8, 2007 I had this problem. It has to do with default currency and/or language. Did you add a language? The solution that helped me was at http://www.oscommerce.com/forums/index.php?showtopic=79817 gina Yes Gina, that is the bug I was referring to. He should not of had this using the latest RC1 build. It was brought in from the file copy that was based on an earlier version of osC. You have to be careful anytime you are doing a file copy verses a file merge. A good contribution author will comment the code additions making it very simple to do a file merge without affecting the most recent bug fixes of the core osCommerce code. :thumbsup: Also, one should take notice of the contribution date and the date of the latest osC version before adding a contribution using a file copy method. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted September 8, 2007 Share Posted September 8, 2007 (edited) I have installed a fresh copy of OScommerce, RC1. Then I took the htc and sts bundle and installed it according to the instructions. Since I had a fresh copy, I copied over the files, not merging them. But when I enter the admin-panel, there is no STS module (nor Headertags). is the RC1 different from MS2.2? Should I be merging? (I rather not do that, because there is so much room for error, and I dont have a live shop). TIA gina Gina, as the post above mentions, you made your error by doing the copy files method verses the file merge method. Using a file merge method is by far the "safest" installation method. Just to be sure we are discussing apples to apples... A file merge method is performed by using a file comparison utility such as WinMerge or Beyond Compare. The utility will compare each folder/file side by side allowing you to merge the different code. This will help prevent overwriting the latest bug or feature fixes. In your case, the STS/HTC bundle included complete files from the 060817 osC version for an easy installation. RC1 is very different from 060817, especially on the admin side. You can still use the bundle, you just need to only merge in the STS/HTC differences. This still makes way for an easier installation than if you were doing it manually, meaning you were typing in the code verses simply merging in the code. Edited September 8, 2007 by bkellum Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
chemjul2005 Posted September 8, 2007 Share Posted September 8, 2007 In your case, the STS/HTC bundle included complete files from the 060817 osC version for an easy installation. RC1 is very different from 060817, especially on the admin side. You can still use the bundle, you just need to only merge in the STS/HTC differences. This still makes way for an easier installation than if you were doing it manually, meaning you were typing in the code verses simply merging in the code. downloading winmerge now..... I hope this will be my last post.... thanks again gina Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 8, 2007 Share Posted September 8, 2007 downloading winmerge now..... I hope this will be my last post.... thanks again gina I hope not. I'm hoping that you will get really familar with STS and come back to help others. :lol: Maybe even upload a few STS add-ons to the STS Power Pack site along the way. :thumbsup: Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
chemjul2005 Posted September 9, 2007 Share Posted September 9, 2007 I hope not. I'm hoping that you will get really familar with STS and come back to help others. :lol: Maybe even upload a few STS add-ons to the STS Power Pack site along the way. :thumbsup: who knows? :rolleyes: for now I am still merging... gina Quote Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2007 Share Posted September 10, 2007 Dear All, I am new to osCommerce and STS. I have installed the latest osCommerce 2.2RC1 and STS4.5.5 sucessfully to my limited knowledge. My real problem is that the documentation on the STS doesn't mean a lot to me! It says that STS uses placeholders and variables that make laying out a template easy as they are simply replaced. Where do you edit what is behind the placeholders - am I being dense? My site is www.art-e-bits.co.uk/catalog/ - is this what it should look like, installing what I have ? Any help would be extremely helpful. regards Rob Quote Link to comment Share on other sites More sharing options...
Sethman Posted September 10, 2007 Share Posted September 10, 2007 (edited) I have a quick question. I need to display an image, but only on non-ssl pages. How would I do this with the template? Basically, I need to do this: if ssl echo if non-ssl echo "image" How could I do this? Anyone? Edited September 10, 2007 by Sethman Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 10, 2007 Share Posted September 10, 2007 Anyone? It could be as easy as making a template for each of the non-ssl pages in your store, or if it is easier, create a template for the SSL pages in your store and leave the image out of those templates. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted September 10, 2007 Share Posted September 10, 2007 Dear All, I am new to osCommerce and STS. I have installed the latest osCommerce 2.2RC1 and STS4.5.5 sucessfully to my limited knowledge. My real problem is that the documentation on the STS doesn't mean a lot to me! It says that STS uses placeholders and variables that make laying out a template easy as they are simply replaced. Where do you edit what is behind the placeholders - am I being dense? My site is www.art-e-bits.co.uk/catalog/ - is this what it should look like, installing what I have ? Any help would be extremely helpful. regards Rob Rob, STS allows you to edit the layout of your store along with any added flare using all web technologies such as Flash, HTML, CSS, etc. To add osCommerce functionallity, you need to add the placeholders that came with the contribution. STS comes "out of the box" with placeholders that pull in all of the stock osC features such as the Shopping Cart box, Search, Categories box, Categories Drop Menu, etc. You can create you own placeholders if the need arises. The most important placeholder would be the $content variable. This brings in the code that is being requested by the user. If you want to edit what is brought in for a specific script such as index.php, then you would need to edit the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script itself. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
awhitedesigns Posted September 10, 2007 Share Posted September 10, 2007 I would like to now change the way my Categories / search side bar looks, which file would i edit to do so? Here is what i have now http://outlawmotorsportsaz.com/catalog/index.php. I want to make them each be a button, not text! Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 11, 2007 Share Posted September 11, 2007 (edited) I would like to now change the way my Categories / search side bar looks, which file would i edit to do so? Here is what i have now http://outlawmotorsportsaz.com/catalog/index.php. I want to make them each be a button, not text! Austin, My first choice would be to install a contribution called "Category Box Images". This will allow you several different scenarios such as image only or image along with category text inside your category box. This will allow you to continue to use the dynamic features of the category box function.You can find this contribution here: http://www.oscommerce.com/community/contributions,2387 A very simple method:You can create your buttons and put them wherever you want in your template and just link to each category. This of course will take the "dynamic" effect away but it would give you more control over your design. Here is the link that you would need for each category button that you create:<a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>">Category Name Here</a> Substitute cpath=21 for the exact category that you are linking to; Use SSL in place of NONSSL if appropriate. The above code would create a text link so you need to modify it somewhat using the img source tag such as: <a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>"><img src="images/mybutton.jpg"> A better way for manual links would be to use the button function (save your images in the language buttons folders) to allow for different images to be used for different languages (if you have a multi-language shop). See this post for details: http://www.oscommerce.com/forums/index.php?s=&...t&p=1120994 Hope this helped, Edited September 11, 2007 by bkellum Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
awhitedesigns Posted September 11, 2007 Share Posted September 11, 2007 Austin,My first choice would be to install a contribution called "Category Box Images". This will allow you several different scenarios such as image only or image along with category text inside your category box. This will allow you to continue to use the dynamic features of the category box function.You can find this contribution here: http://www.oscommerce.com/community/contributions,2387 A very simple method:You can create your buttons and put them wherever you want in your template and just link to each category. This of course will take the "dynamic" effect away but it would give you more control over your design. Here is the link that you would need for each category button that you create:<a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>">Category Name Here</a> Substitute cpath=21 for the exact category that you are linking to; Use SSL in place of NONSSL if appropriate. The above code would create a text link so you need to modify it somewhat using the img source tag such as: <a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>"><img src="images/mybutton.jpg"> A better way for manual links would be to use the button function (save your images in the language buttons folders) to allow for different images to be used for different languages (if you have a multi-language shop). See this post for details: http://www.oscommerce.com/forums/index.php?s=&...t&p=1120994 Hope this helped, Thank you very much, im going to look into both ways.. Quote Link to comment Share on other sites More sharing options...
seg Posted September 11, 2007 Share Posted September 11, 2007 I am having trouble using the popup image module in STS 4.5.4. I have the Extra images contribution installed and it uses popup_extra_images.php ... so I have added this file name to the STS popup image module in the admin. I have even tried creating a popup_extra_images.php.html file in my individual STS templates directory (/includes/sts_templates/STORE_NAME/) which is a duplicate of popup_image.php.html and added a $popupextraimages variable to the popup_extra_images.php.html file and to the /includes/modules/sts_inc/popup_image.php Whenever I click on the Extra Image I get a new window with the STS template ... no photo. Please help ... I am not sure if I am missing something or misunderstoond something, but any help would be great. Thanks! Quote Link to comment Share on other sites More sharing options...
seg Posted September 11, 2007 Share Posted September 11, 2007 It never fails ... you look for hours to resolve a problem and then finally when you ask for help, you find the answer. http://www.oscommerce.com/forums/index.php?sho...p+image+problem I turned off "Use Search-Engine Safe URLs (still in development)" and everything works fine. I didn't need the popup image module, so I uninstalled it. Quote Link to comment Share on other sites More sharing options...
bkellum Posted September 11, 2007 Share Posted September 11, 2007 It never fails ... you look for hours to resolve a problem and then finally when you ask for help, you find the answer. http://www.oscommerce.com/forums/index.php?sho...p+image+problem I turned off "Use Search-Engine Safe URLs (still in development)" and everything works fine. I didn't need the popup image module, so I uninstalled it. Yeah, that's a big reason why it hurts everyone when someone posts a STS related question outside of this thread. :thumbsup: Glad you found it. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Guest Posted September 12, 2007 Share Posted September 12, 2007 Hello everyone, I am looking for a contribution that works with rc1 and STS 4.5, for additional images Kinda like this one http://www.oscommerce.com/community/contributions,1642 but one that is known to work with rc1. Anyone know, or has used a contribution that can add additional images and works with rc1/sts? Any help would be most welcome :) thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.