wondernet Posted February 17, 2008 Posted February 17, 2008 I've just installed this to a fresh install of OSC 2.2 R2, and am getting the error in the admin section: STS was designed to work with OSC version [osCommerce 2.2-MS2]. This is version [osCommerce Online Merchant v2.2 RC2a]. Template file doesn't exist: [sTS_DEFAULT_TEMPLATE]Can't open Template file: [sTS_DEFAULT_TEMPLATE] I thought this was designed to work with RC1 and RC2 as well as MS2, I've used the files from the RC2 folder in teh ZIP download ... and followed the install isntructions? Quote
bkellum Posted February 17, 2008 Posted February 17, 2008 I've just installed this to a fresh install of OSC 2.2 R2, and am getting the error in the admin section: STS was designed to work with OSC version [osCommerce 2.2-MS2]. This is version [osCommerce Online Merchant v2.2 RC2a]. Template file doesn't exist: [sTS_DEFAULT_TEMPLATE]Can't open Template file: [sTS_DEFAULT_TEMPLATE] I thought this was designed to work with RC1 and RC2 as well as MS2, I've used the files from the RC2 folder in teh ZIP download ... and followed the install isntructions? Did you upload the files from the STS folder as well as the files from the RC2 folder? Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
PJ2006 Posted February 18, 2008 Posted February 18, 2008 What are you wanting to do that you currently are having difficulties with? If you want a unique "home page", you can just creat an index.html and design to your hearts content. Otherwise, you should be able to create index.php.html as your unique home page and design all other page templates as well with their own unique style (shipping.php.html, account.php.html, login.php.html, etc, etc.). For one of my clients, I designed a separate home page with a link to his shop, all done with STS v4. You can view it here: http://www.hatoverheels.com. Once on the home page, click on "hatalog" and then on one of the catagories to view the shop. I don't know if this is what your asking or not. Hope I was able to help you out. Bill Kellum I'm trying to do the following, I want a home page that I can use FCKEditor on - I've installed this contribution, but would like to use it so that no html users can change the content of the home page. So I'm thinking, I could move the home page to within the site and use the $Content tag and it should work - right? But I'm not sure how to create a new page and assign it an STS template - I don't quite follow the instructions "Create content templates for any pages" Can this be done or am I totally barking up the wrong tree? Thanks Quote
Eighteen48 Posted February 18, 2008 Posted February 18, 2008 (edited) Take a look at this:http://www.oscommerce.com/community/contributions,4581 Also: http://www.oscommerce.com/community/contributions,294 Thank you Bill, I knew this was discussed before in either here or the other STS thread, but for the life of me I could not find it. I will takae a look at both contribs and hope that either suits my needs. Thank You Edited February 18, 2008 by Eighteen48 Quote Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0
runweb Posted February 18, 2008 Posted February 18, 2008 I found there are 2 different topics about STS4 ? Here is my last post - perhaps someone could give me a tip what I can do to make template infoboxes work proper ? Take a look at this... http://www.oscommerce.com/forums/index.php?sho...41&st=4220# Quote OSC Webmakers Edition modiefied with many other contribs and enhancements. + STS 4.5.7 for 2.2MS2 and RC1
bkellum Posted February 18, 2008 Posted February 18, 2008 I found there are 2 different topics about STS4 ?Here is my last post - perhaps someone could give me a tip what I can do to make template infoboxes work proper ? Take a look at this... http://www.oscommerce.com/forums/index.php?sho...41&st=4220# No, there is only one thread for each. This is the thread for STSv4.x versions of STS and the other is for STS versions prior to STSv4. STSv4 was a complete makeover of the Simple Template System and therefore needed a separate thread for support. Regarding your issue: The infobox templates work great. The categoriesbox is a different beast altogether though, different from the other infoboxes. In order to get the category infobox to conform to CSS styles, you need to convert it to an unordered list. I use the following contribution to accomplish this very easily: http://www.oscommerce.com/community/contributions,4201 Once the category box is converted to an unordered list, you can do just about anything with it. Do a web search on CSS Unordered List and you will see a lot of possibilities. Use the infobox template for the categories box to add in your modifications once you have converted it to an unordered list. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
bkellum Posted February 18, 2008 Posted February 18, 2008 I'm trying to do the following, I want a home page that I can use FCKEditor on - I've installed this contribution, but would like to use it so that no html users can change the content of the home page. So I'm thinking, I could move the home page to within the site and use the $Content tag and it should work - right? But I'm not sure how to create a new page and assign it an STS template - I don't quite follow the instructions "Create content templates for any pages" Can this be done or am I totally barking up the wrong tree? Thanks All HTML users would be able to create a home page template just by naming it index.php_0.html. Regarding new pages(meaning new to osCommerce and not just templating an existing osC page): There are a couple ways of doing this. You could use my step by step in the STS Power Pack site (link in my signature below) or you could use the "Create content templates for any pages" method. Chris (rigadin2) has created a step by step for that method (see link to his site in the STS User Manual). Not to confuse anyone, you could easily create a template for any EXISTING osC pages by just using the following naming syntax: scriptname_ID.html. For example: to make a general template for the index.php page, you would simply name it index.php.html and then save it in your templates folder. If you need a more specific template, such as for category 13, then you would name it index.php_13.html. The contribution comes with some sample templates to show you this works. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
runweb Posted February 18, 2008 Posted February 18, 2008 (edited) Regarding your issue:The infobox templates work great. The categoriesbox is a different beast altogether though, different from the other infoboxes. In order to get the category infobox to conform to CSS styles, you need to convert it to an unordered list. I use the following contribution to accomplish this very easily: http://www.oscommerce.com/community/contributions,4201 Once the category box is converted to an unordered list, you can do just about anything with it. Do a web search on CSS Unordered List and you will see a lot of possibilities. Use the infobox template for the categories box to add in your modifications once you have converted it to an unordered list. I installed the contrib for unordered list and it works fine, but: The html output ist still: <!-- categories //--> <tbody><tr> <td> <!-- start categorybox //--> [b]<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%" class="infoBoxHeading">Kategorien</td> </tr> </table>[/b][u][b]This Code is not comingfrom the defined html of infobox_categories.php !![/b][/u] </td> </tr> </tbody></table> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td><table style="margin-bottom: 5px;" class="box_body bg5" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td style="padding: 0px 16px 14px;"><ul><li class="bg_list"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.mysite.de/shop-2/catalog/index.php?cPath=25&osCsid=0633c18a7bef9367486cec7a5cae5b7d">Testkategorie-></a> (3)<br><a href="http://www.mysite.de/shop-2/catalog/index.php?cPath=1&osCsid=0633c18a7bef9367486cec7a5cae5b7d">Hardware-></a> (8)<br><a href="http://www.mysite.de/shop-2/catalog/index.php?cPath=3&osCsid=0633c18a7bef9367486cec7a5cae5b7d">DVD Filme-></a> (17)<br><a href="http://www.mysite.de/shop-2/catalog/index.php?cPath=21&osCsid=0633c18a7bef9367486cec7a5cae5b7d">Sample Options-></a> (20)<br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </li></ul></td> </tr> </tbody></table> </td> </tr> </tbody></table> <!-- end categorybox //--> There is some html code which comes not from infobox_categories.php.html or sts_template.html. in sts_template.html i have: <!-- categories //--> <tbody><tr> <td> $categorybox </td> </tr> <!-- categories_eof //--> and in infobox_categories.php.html: <table class="box_header_txt bg5" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td>$headertext</td> </tr> </tbody></table> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td><table style="margin-bottom: 5px;" class="box_body bg5" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td style="padding: 0px 16px 14px;"><ul><li class="bg_list">$content</li></ul></td> </tr> </tbody></table> </td> </tr> </tbody></table> But i have activated the ul_categories.php in admin - when I turn off STS, i can see that ul_categories are working.... It seems, that the system is not inserting/replacing the complete code which is defined in infobox_categories.php...???? =>> I tried now to include the ul_categories.php in the STS-System as follows: /includes/sts_inc/sts_colum_left.php // Get categories box from db or cache if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'ul_categories.php'); } $sts->restart_capture ('categorybox', 'box'); and i made now an infobox which is called: infobox_ul_categories.php.html ....but nothing happens - there is only the unordered list to see - without any code from infobox_ul_categories.php.html .... :'( Edited February 18, 2008 by runweb Quote OSC Webmakers Edition modiefied with many other contribs and enhancements. + STS 4.5.7 for 2.2MS2 and RC1
tomandwendy Posted February 18, 2008 Posted February 18, 2008 Hi, I was wondering where I can find the information that goes into the footer.php, I looked in includes/footer.php but did not see what I am looking for. I have a paypal image that is causing conflick withmy SSL and I was the change the href to it....any help? Quote
bkellum Posted February 18, 2008 Posted February 18, 2008 Hi, I was wondering where I can find the information that goes into the footer.php, I looked in includes/footer.php but did not see what I am looking for. I have a paypal image that is causing conflick withmy SSL and I was the change the href to it....any help? Tom, can you provide a link that displays the errant image? Also, do a search on your site for that image and it should provide the code that is calling 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
bkellum Posted February 18, 2008 Posted February 18, 2008 I installed the contrib for unordered list and it works fine, but:The html output ist still: There is some html code which comes not from infobox_categories.php.html or sts_template.html. in sts_template.html i have: and in infobox_categories.php.html: But i have activated the ul_categories.php in admin - when I turn off STS, i can see that ul_categories are working.... It seems, that the system is not inserting/replacing the complete code which is defined in infobox_categories.php...???? =>> I tried now to include the ul_categories.php in the STS-System as follows: /includes/sts_inc/sts_colum_left.php and i made now an infobox which is called: infobox_ul_categories.php.html ....but nothing happens - there is only the unordered list to see - without any code from infobox_ul_categories.php.html .... :'( Can you provide a link so that I could take a peek at what is going on? I have a heavy client load at the moment but I have time to take a quick look. Did you create a sts tag for your new box? If so, did you add this new tag to your template page? If you did, then it would use the infobox template "infobox_ul_categories.php.html. If you did not, then it is still using the stock category box. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
wondernet Posted February 19, 2008 Posted February 19, 2008 Did you upload the files from the STS folder as well as the files from the RC2 folder? Yes, all files and folders uploaded, and checked several times over. ?? Quote
bkellum Posted February 19, 2008 Posted February 19, 2008 Yes, all files and folders uploaded, and checked several times over. ?? You must still be missing something from the contribution. I just did a test install for RC2a and everything worked fine. Be sure you are installing to the correct folders...admin folder to admin folder, includes folder to the includes folder. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
alba Posted February 19, 2008 Posted February 19, 2008 anyone have any ideas what the problem is in my post #3440 http://www.oscommerce.com/forums/index.php?sho...81&st=3440# It has me completely stumped and i have been over and over the code... i updated it from the 4.1 version which worked fine Quote
Eighteen48 Posted February 19, 2008 Posted February 19, 2008 For all of those who have used the modified files straight from the STS folder specifically the "application_top.php" file and are getting SSL errors you need to make one small edit to get rid of the buggy Non-Secure SSL error. 1) Open includes/application_top.php file 2) Find around Line 43 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL' 3) Replace with the following // $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; I hope this helps everybody who is getting the Non-Secure Errors Quote Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0
rex64 Posted February 19, 2008 Posted February 19, 2008 There are a few things I have not figured out how to customize yet. 1. Cart Contents (change to "Shopping Cart") Also one of the settings in my images category is duplicated (I think I ran a SQL script 2 times). But I looked everywhere in my SQL database. Any ideas how to get to this? 2. How can I change the processing time... of this: Your Order Has Been Processed! Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. 3. Email is not working, even tough I think it used to work. How can I fix this/test this? Is there a way to set options for the SMTP? What about SMTP with a password? What files are involved with sending email? Is there a configure file? Quote
Tyreal2012 Posted February 19, 2008 Posted February 19, 2008 Nice contrib, can you create the template using divs rather than tables? but using the same variables for the sections? Quote
rex64 Posted February 19, 2008 Posted February 19, 2008 (edited) I found this if it helps. I still need help with my original questions. This is from my provider, and I think it will fix my email problem, but I am not sure where to put it: Subject: How to use CT mail servers with a custom PHP script Article #1067 Input these three lines into your coding to specify the server, port, and from address: ini_set("SMTP","mail.yourdomain.com"); ini_set("smtp_port","25"); ini_set("sendmail_from","[email protected]"); There are a few things I have not figured out how to customize yet. 1. Cart Contents (change to "Shopping Cart") Also one of the settings in my images category is duplicated (I think I ran a SQL script 2 times). But I looked everywhere in my SQL database. Any ideas how to get to this? 2. How can I change the processing time... of this: Your Order Has Been Processed! Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. 3. Email is not working, even tough I think it used to work. How can I fix this/test this? Is there a way to set options for the SMTP? What about SMTP with a password? What files are involved with sending email? Is there a configure file? Edited February 19, 2008 by rex64 Quote
Eighteen48 Posted February 19, 2008 Posted February 19, 2008 There are a few things I have not figured out how to customize yet. 1. Cart Contents (change to "Shopping Cart") Also one of the settings in my images category is duplicated (I think I ran a SQL script 2 times). But I looked everywhere in my SQL database. Any ideas how to get to this? 2. How can I change the processing time... of this: Your Order Has Been Processed! Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. 3. Email is not working, even tough I think it used to work. How can I fix this/test this? Is there a way to set options for the SMTP? What about SMTP with a password? What files are involved with sending email? Is there a configure file? For both 1 and 2 open includes/languages/english.php there you will search for the words you want to change. Quote Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0
rex64 Posted February 19, 2008 Posted February 19, 2008 (edited) Thanks. I got Number 1 fixed, but I could not find number 2 anywhere. Also, do you have any ideas about the email? Also, I changed number 1 and it did not update my site. For both 1 and 2 open includes/languages/english.php there you will search for the words you want to change. <?php /* $Id: english.php 1743 2007-12-20 18:02:36Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' @setlocale(LC_TIME, 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'USD'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // page title define('TITLE', STORE_NAME); // +Country-State Selector define ('DEFAULT_COUNTRY', '223'); // -Country-State Selector // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); // footer text in includes/footer.php define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since'); // text for gender define('MALE', 'Male'); define('FEMALE', 'Female'); define('MALE_ADDRESS', 'Mr.'); define('FEMALE_ADDRESS', 'Ms.'); // text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); // categories box text in includes/boxes/categories.php define('BOX_HEADING_CATEGORIES', 'Categories'); // manufacturers box text in includes/boxes/manufacturers.php define('BOX_HEADING_MANUFACTURERS', 'Manufacturers'); // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); // quick_find box text in includes/boxes/quick_find.php define('BOX_HEADING_SEARCH', 'Quick Find'); define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.'); define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search'); // specials box text in includes/boxes/specials.php define('BOX_HEADING_SPECIALS', 'Specials'); // reviews box text in includes/boxes/reviews.php define('BOX_HEADING_REVIEWS', 'Reviews'); define('BOX_REVIEWS_WRITE_REVIEW', 'Write a review on this product!'); define('BOX_REVIEWS_NO_REVIEWS', 'There are currently no product reviews'); define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!'); // shopping_cart box text in includes/boxes/shopping_cart.php define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart'); define('BOX_SHOPPING_CART_EMPTY', '0 items'); // order_history box text in includes/boxes/order_history.php define('BOX_HEADING_CUSTOMER_ORDERS', 'Order History'); // best_sellers box text in includes/boxes/best_sellers.php define('BOX_HEADING_BESTSELLERS', 'Bestsellers'); define('BOX_HEADING_BESTSELLERS_IN', 'Bestsellers in<br> '); // notifications box text in includes/boxes/products_notifications.php define('BOX_HEADING_NOTIFICATIONS', 'Notifications'); define('BOX_NOTIFICATIONS_NOTIFY', 'Notify me of updates to <b>%s</b>'); define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Do not notify me of updates to <b>%s</b>'); // manufacturer box text define('BOX_HEADING_MANUFACTURER_INFO', 'Manufacturer Info'); define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Homepage'); define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Other products'); // languages box text in includes/boxes/languages.php define('BOX_HEADING_LANGUAGES', 'Languages'); // currencies box text in includes/boxes/currencies.php define('BOX_HEADING_CURRENCIES', 'Currencies'); // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); // tell a friend box text in includes/boxes/tell_a_friend.php define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend'); define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.'); // checkout procedure text define('CHECKOUT_BAR_DELIVERY', 'Delivery Information'); define('CHECKOUT_BAR_PAYMENT', 'Payment Information'); define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation'); define('CHECKOUT_BAR_FINISHED', 'Finished!'); // pull down default text define('PULL_DOWN_DEFAULT', 'Please Select'); define('TYPE_BELOW', 'Type Below'); // javascript messages define('JS_ERROR', 'Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n'); define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.\n'); define('JS_REVIEW_RATING', '* You must rate the product for your review.\n'); define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n'); define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.'); define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.'); define('CATEGORY_COMPANY', 'Company Details'); define('CATEGORY_PERSONAL', 'Your Personal Details'); define('CATEGORY_ADDRESS', 'Your Address'); define('CATEGORY_CONTACT', 'Your Contact Information'); define('CATEGORY_OPTIONS', 'Options'); define('CATEGORY_PASSWORD', 'Your Password'); define('ENTRY_COMPANY', 'Company Name:'); define('ENTRY_COMPANY_ERROR', ''); define('ENTRY_COMPANY_TEXT', ''); define('ENTRY_GENDER', 'Gender:'); define('ENTRY_GENDER_ERROR', 'Please select your Gender.'); define('ENTRY_GENDER_TEXT', '*'); define('ENTRY_FIRST_NAME', 'First Name:'); define('ENTRY_FIRST_NAME_ERROR', 'Your First Name must contain a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.'); define('ENTRY_FIRST_NAME_TEXT', '*'); define('ENTRY_LAST_NAME', 'Last Name:'); define('ENTRY_LAST_NAME_ERROR', 'Your Last Name must contain a minimum of ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.'); define('ENTRY_LAST_NAME_TEXT', '*'); define('ENTRY_DATE_OF_BIRTH', 'Date of Birth:'); define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)'); define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)'); define('ENTRY_EMAIL_ADDRESS', 'E-Mail Address:'); define('ENTRY_EMAIL_ADDRESS_ERROR', 'Your E-Mail Address must contain a minimum of ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.'); define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', 'Your E-Mail Address does not appear to be valid - please make any necessary corrections.'); define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', 'Your E-Mail Address already exists in our records - please log in with the e-mail address or create an account with a different address.'); define('ENTRY_EMAIL_ADDRESS_TEXT', '*'); define('ENTRY_STREET_ADDRESS', 'Street Address:'); define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.'); define('ENTRY_STREET_ADDRESS_TEXT', '*'); define('ENTRY_SUBURB', 'Suburb:'); define('ENTRY_SUBURB_ERROR', ''); define('ENTRY_SUBURB_TEXT', ''); define('ENTRY_POST_CODE', 'Post Code:'); define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.'); define('ENTRY_POST_CODE_TEXT', '*'); define('ENTRY_CITY', 'City:'); define('ENTRY_CITY_ERROR', 'Your City must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.'); define('ENTRY_CITY_TEXT', '*'); define('ENTRY_STATE_TEXT', '* (Select country first)'); define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.'); define('ENTRY_STATE_ERROR_SELECT', 'Please select a state from the States pull down menu.'); define('ENTRY_STATE_TEXT', '*'); define('ENTRY_COUNTRY', 'Country:'); define('ENTRY_COUNTRY_ERROR', 'You must select a country from the Countries pull down menu.'); define('ENTRY_COUNTRY_TEXT', '* (Page will refresh when changed)'); define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.'); define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); define('ENTRY_FAX_NUMBER', 'Fax Number:'); define('ENTRY_FAX_NUMBER_ERROR', ''); define('ENTRY_FAX_NUMBER_TEXT', ''); define('ENTRY_NEWSLETTER', 'Newsletter:'); define('ENTRY_NEWSLETTER_TEXT', ''); define('ENTRY_NEWSLETTER_YES', 'Subscribed'); define('ENTRY_NEWSLETTER_NO', 'Unsubscribed'); define('ENTRY_NEWSLETTER_ERROR', ''); define('ENTRY_PASSWORD', 'Password:'); define('ENTRY_PASSWORD_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_ERROR_NOT_MATCHING', 'The Password Confirmation must match your Password.'); define('ENTRY_PASSWORD_TEXT', '*'); define('ENTRY_PASSWORD_CONFIRMATION', 'Password Confirmation:'); define('ENTRY_PASSWORD_CONFIRMATION_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT', 'Current Password:'); define('ENTRY_PASSWORD_CURRENT_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_NEW', 'New Password:'); define('ENTRY_PASSWORD_NEW_TEXT', '*'); define('ENTRY_PASSWORD_NEW_ERROR', 'Your new Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.'); define('PASSWORD_HIDDEN', '--HIDDEN--'); define('FORM_REQUIRED_INFORMATION', '* Required information'); // constants for use in tep_prev_next_display function define('TEXT_RESULT_PAGE', 'Result Pages:'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> products)'); define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> orders)'); define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> reviews)'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new products)'); define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> specials)'); define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page'); define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page'); define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page'); define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page'); define('PREVNEXT_TITLE_PAGE_NO', 'Page %d'); define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages'); define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages'); define('PREVNEXT_BUTTON_FIRST', '<<FIRST'); define('PREVNEXT_BUTTON_PREV', '[<< Prev]'); define('PREVNEXT_BUTTON_NEXT', '[Next >>]'); define('PREVNEXT_BUTTON_LAST', 'LAST>>'); define('IMAGE_BUTTON_ADD_ADDRESS', 'Add Address'); define('IMAGE_BUTTON_ADDRESS_BOOK', 'Address Book'); define('IMAGE_BUTTON_BACK', 'Back'); define('IMAGE_BUTTON_BUY_NOW', 'Buy Now'); define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Change Address'); define('IMAGE_BUTTON_CHECKOUT', 'Checkout'); define('IMAGE_BUTTON_CONFIRM_ORDER', 'Confirm Order'); define('IMAGE_BUTTON_CONTINUE', 'Continue'); define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Continue Shopping'); define('IMAGE_BUTTON_DELETE', 'Delete'); define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Edit Account'); define('IMAGE_BUTTON_HISTORY', 'Order History'); define('IMAGE_BUTTON_LOGIN', 'Sign In'); define('IMAGE_BUTTON_IN_CART', 'Add to Cart'); define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications'); define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find'); define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications'); define('IMAGE_BUTTON_REVIEWS', 'Reviews'); define('IMAGE_BUTTON_SEARCH', 'Search'); define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options'); define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend'); define('IMAGE_BUTTON_UPDATE', 'Update'); define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart'); define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review'); define('SMALL_IMAGE_BUTTON_DELETE', 'Delete'); define('SMALL_IMAGE_BUTTON_EDIT', 'Edit'); define('SMALL_IMAGE_BUTTON_VIEW', 'View'); define('ICON_ARROW_RIGHT', 'more'); define('ICON_CART', 'In Cart'); define('ICON_ERROR', 'Error'); define('ICON_SUCCESS', 'Success'); define('ICON_WARNING', 'Warning'); define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?'); define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>'); define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); define('TEXT_SORT_PRODUCTS', 'Sort products '); define('TEXT_DESCENDINGLY', 'descendingly'); define('TEXT_ASCENDINGLY', 'ascendingly'); define('TEXT_BY', ' by '); define('TEXT_REVIEW_BY', 'by %s'); define('TEXT_REVIEW_WORD_COUNT', '%s words'); define('TEXT_REVIEW_RATING', 'Rating: %s [%s]'); define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s'); define('TEXT_NO_REVIEWS', 'There are currently no product reviews.'); define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.'); define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate'); define('TEXT_REQUIRED', '<span class="errorText">Required</span>'); define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>'); define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.'); define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.'); define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.'); define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.'); define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid. Please check the date and try again.'); define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid. Please check the number and try again.'); define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.'); define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>'); ?> Edited February 19, 2008 by rex64 Quote
dimi78 Posted February 19, 2008 Posted February 19, 2008 Nice contrib, can you create the template using divs rather than tables? but using the same variables for the sections? Yes you can, but the osc output will still be in tables. So your div's will be filled with tables. You can always change the output but that's a big job, (belief me, I changed a view of the pages) Quote
TracyS Posted February 19, 2008 Posted February 19, 2008 Hey guys, I am totally confused and thought maybe someone here might know where I'm going wrong :) I am working on re-building our osC store to iron out some issues with the code. I found an issue happening (again) when loading any page that is not a catalog or product page (ie...shopping_cart.php, reviews.php, products_new.php, etc...). I have Dynamenu installed and on these pages, when they load, I first see a listing of all of the submenus and then the page loads and corrects the menu. So - I turned off STS and learned it is NOT STS (YAY!!) - but I found that my category menu is different on all of the aforementioned pages - it is a menu to an Alice Meichi store for her prints and artwork???? I have no idea why it isn't my category menu on pages that are not categories or products (once I click into a product or category the menu is correct) and I DON'T have Dynamenu running unless I have STS turned on. With STS off I have "Categories" as the heading of the category links box that is going to this persons artwork, and it says "Product Categories" on the heading of this box in the category and product pages. Sooo - I am hoping someone here might know where I should look to check and see what's going on with the categories menu. Is there somewhere that calls the code for it separately for category and product pages vs all of the other pages? Thanks for any insight you may have - back to searching the forums for any insight I might find :blush: Quote ~Tracy
bkellum Posted February 19, 2008 Posted February 19, 2008 For all of those who have used the modified files straight from the STS folder specifically the "application_top.php" file and are getting SSL errors you need to make one small edit to get rid of the buggy Non-Secure SSL error. 1) Open includes/application_top.php file 2) Find around Line 43 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL' 3) Replace with the following // $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; I hope this helps everybody who is getting the Non-Secure Errors I can't agree with this statement. This appears to be a register globals issue on your particular server or maybe a conflict in how you have your cert configured or maybe a conflict from a checkout contribution or maybe... :- Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
dimi78 Posted February 19, 2008 Posted February 19, 2008 Hey guys, I am totally confused and thought maybe someone here might know where I'm going wrong :) I am working on re-building our osC store to iron out some issues with the code. I found an issue happening (again) when loading any page that is not a catalog or product page (ie...shopping_cart.php, reviews.php, products_new.php, etc...). I have Dynamenu installed and on these pages, when they load, I first see a listing of all of the submenus and then the page loads and corrects the menu. So - I turned off STS and learned it is NOT STS (YAY!!) - but I found that my category menu is different on all of the aforementioned pages - it is a menu to an Alice Meichi store for her prints and artwork???? I have no idea why it isn't my category menu on pages that are not categories or products (once I click into a product or category the menu is correct) and I DON'T have Dynamenu running unless I have STS turned on. With STS off I have "Categories" as the heading of the category links box that is going to this persons artwork, and it says "Product Categories" on the heading of this box in the category and product pages. Sooo - I am hoping someone here might know where I should look to check and see what's going on with the categories menu. Is there somewhere that calls the code for it separately for category and product pages vs all of the other pages? Thanks for any insight you may have - back to searching the forums for any insight I might find :blush: Hey Tracy, could be one of two things: 1) a problem with dynamenu footer echo 2) a problem with cpath Solution could be to swith from dynamenu to ul categories contribution also by the same author. And use a little javascript to get the menu's working in IE. again I'm just guessing, hope it helps you. Quote
Eighteen48 Posted February 20, 2008 Posted February 20, 2008 I can't agree with this statement. This appears to be a register globals issue on your particular server or maybe a conflict in how you have your cert configured or maybe a conflict from a checkout contribution or maybe... :- It could be a server issue, but it is not due to any contributions or anything else. This has been an on going topic when osC RC1 was first release and the edit I mentioned above was the solution that was provided by the community as well as it seems that it that this is still an ongoing thing with osC RC 2. I am just providing this information to help those who are beating their head at why their secure pages are coming up unsecure. Quote Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0
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.
Note: Your post will require moderator approval before it will be visible.