killer-g Posted October 18, 2004 Share Posted October 18, 2004 how can i mark an navigation point as active, when using the urlcat in the template ? this seems to be very tricky. the original navi uses the functions from includes/boxes/categories.php. ->$categoriesbox i don?t really have clue how to start solving this problem, but since i have multiple sites with a handmade navigation (www.freakyphones.de) i need to sove that. thanks for any hint?s george Quote Link to comment Share on other sites More sharing options...
johnsim Posted October 21, 2004 Share Posted October 21, 2004 maaaannnn im getting reaaaal sick of this... it's the 50est time i installed sts the latest version with all the bug fixes and i S T I L L get the error from hell: Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in blalblalbababa/public_html/darm/includes/sts_display_output.php on line 151 Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in blalbalballbalba/public_html/fokkk/includes/sts_display_output.php on line 151 Fatal error: main(): Failed opening required 'includes/sts_product_info.php' (include_path='.:/usr/local/lib/php') in blalbalbalblalba/public_html/shit/includes/sts_display_output.php on line 151 Im quiting STS and do it with the stylesheet!!! >_< >_< >_< >_< >_< >_< >_< Quote Link to comment Share on other sites More sharing options...
darkangel Posted October 21, 2004 Share Posted October 21, 2004 Look what it is looking for in sts_display_output.php on line 151 maybe there is your answer. You are missing some files from the installation. Please verify that you are instaling everything correctly. what is your site address??? Dark Quote Link to comment Share on other sites More sharing options...
cybin Posted October 22, 2004 Share Posted October 22, 2004 I wondering if anybody has STS working with Ultra_pics? When I install the two I get a blank catalog. I've tried both ways STS then Ultra_pics and vise versa. Is it even possible? -Cybin Quote Link to comment Share on other sites More sharing options...
bombola Posted October 22, 2004 Share Posted October 22, 2004 When I click on a product I get this message: Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 Fatal error: main(): Failed opening required 'includes/sts_product_info.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 There is something wrong with the product info pages but how do I solve this? Quote Link to comment Share on other sites More sharing options...
fatriff Posted October 22, 2004 Share Posted October 22, 2004 Hi all,I'm using the simple template system & am trying to put a new template into it. All works fine on the homepage,but when you click on a category or product info link the template & product images dissapear? No images appear anywhere just the text. Am I missing something? Quote Link to comment Share on other sites More sharing options...
ozcsys Posted October 22, 2004 Share Posted October 22, 2004 Hi all,I'm using the simple template system & am trying to put a new template into it. All works fine on the homepage,but when you click on a category or product info link the template & product images dissapear? No images appear anywhere just the text. Am I missing something? <{POST_SNAPBACK}> You should be able to use any html file as your template. Go ahead and post your template file or maybe a url. Quote The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
johnsim Posted October 22, 2004 Share Posted October 22, 2004 Look what it is looking for in sts_display_output.php on line 151 maybe there is your answer. You are missing some files from the installation. Please verify that you are instaling everything correctly. what is your site address??? Dark <{POST_SNAPBACK}> :D thanks for your reply: here it is: click here It is the demo (play around version) greetz Quote Link to comment Share on other sites More sharing options...
fatriff Posted October 22, 2004 Share Posted October 22, 2004 Hi guys,I worked it out, <html> <head> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> I started my new template with a normal html file,as soon as I changed the part at the top to the above all worked again.I can't believe something so simple took me so long to figure out. The template i'm designing looks really good,I'll post the address when i'm done.. Thanks for your help guys Quote Link to comment Share on other sites More sharing options...
bombola Posted October 22, 2004 Share Posted October 22, 2004 When I click on a product I get this message: Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 Fatal error: main(): Failed opening required 'includes/sts_product_info.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bombola/public_html/butik/includes/sts_display_output.php on line 132 There is something wrong with the product info pages but how do I solve this? <{POST_SNAPBACK}> Next time I will try to think and read all the warning text before i post... Problem solved by adding sts_products_info.php in Includes dir. In the readme file for STS 2.0 it says that you should upload all the file but not the sts_products_info.php. Probably just a mistake from the author... Quote Link to comment Share on other sites More sharing options...
Typhoonit Posted October 23, 2004 Share Posted October 23, 2004 Hello, I love the idea of this sts, but I can only get it working on my main page. The sub category templates and product templates when placed in the sts_templates or STS_templates directory do not seem to be working. My site is still basic, and STS is the only thing I have installed, but I still cant get it working. I installed v2.01 and then the April 2 fix and then the August 25 fix. But still nothing. I also tried to add the line $scriptname = getenv('SCRIPT_NAME'); above $scriptbasename... as peter sugested about 10 posts ago. But still it is not working. Does anyone have any ideas as to why? Quote Link to comment Share on other sites More sharing options...
Panic36 Posted October 24, 2004 Share Posted October 24, 2004 The problem is the picture is too big and is screwing things up... i took off the picture requirement size... because i hate how it looks crummy, and it never had problems until i put up sts, if anyone could give me some pointers on how i could fix this it would be great... to see an example on what i mean my site is www.aliandadele.com Thanks for your help Robert Quote Link to comment Share on other sites More sharing options...
Typhoonit Posted October 24, 2004 Share Posted October 24, 2004 (edited) NM....had a question here....but I'm going to try some stuff first. Edited October 24, 2004 by Typhoonit Quote Link to comment Share on other sites More sharing options...
Typhoonit Posted October 24, 2004 Share Posted October 24, 2004 Was actually the $scriptname = getenv('SCRIPT_NAME'); line that was messing mine up. Looks like it's working now, thanks for the help everyone. I think that line might work for some, but not for me. Returned something completely unrelated for me. Thanks again. Quote Link to comment Share on other sites More sharing options...
webgirl18 Posted October 24, 2004 Share Posted October 24, 2004 CAN YOU INPUT FRAMES INTO THE OSCOMMERCE? Simple Template System (STS) README.txt v1.3Contribution Author: Brian Gallagher @ DiamondSea.com Contribution Author Email: [email protected] ----------------------------------------------------------------------------- WHAT IT DOES: ----------------------------------------------------------------------------- Lets you create simple HTML templates to customize the look and feel of OSC. You simply create an HTML page that looks the way you want it to and put in placeholders for the various elements wherever you want to position them. For example, you would put "$cartbox" wherever on the page you want the Shopping Cart box to appear. Put "$categorybox" where you want the Categories box to appear. Put "$content" wherever you want the main page content (the central part where all the magic happens) to appear, etc. It does this by changing only a few /catalog/includes/ files, leaving all other files untouched, making it easy to add other contributions later. ----------------------------------------------------------------------------- BONUS FEATURES: Simple HEADER TAG CONTROLLER Integration ----------------------------------------------------------------------------- This contribution also allows you to use WebMakers.com's Header Tag Controller contribution without having to modify every file on the system. Just copy the Header Tag Controller's include files into place and STS will automatically add them to all pages without having to modify every PHP script in the /catalog/ directory. STS will auto-detect if Header Tag Controller is installed and use it if available. ----------------------------------------------------------------------------- HOW TO INSTALL: ----------------------------------------------------------------------------- Installation Instructions are found in the readme.txt file included in the package. Please read the readme.txt file for a list of installation instructions, new features, new variables and other enhancements to STS. ----------------------------------------------------------------------------- HOW TO USE: ----------------------------------------------------------------------------- Just modify the /catalog/includes/sts_template.html file to look however you want. Use stylesheet settings or HTML setting to provide a custom look and feel to your site and arrange elements wherever you like them. ----------------------------------------------------------------------------- SUPPORTED TAGS: ----------------------------------------------------------------------------- Here are the tags that are supported so far (more sure to come in later versions): $headcontent: Put this string in your <head> section so that it can insert the dynamic head content and javascript on pages that require it. This will probably require putting the $headcontent in the <head> section in the source code. It's a pain to do it this way, but it was the only way I could get it working. Sorry! <!--$headcontent--> : You can use this commented format of $headcontent to keep the word "$headcontent" from displaying in your web authoring software. NOTE: Do not put <title>...</title> tags in your header. It will be added as part of the $headcontent variable, along with the Description and Keywords meta tags if you have the WebMakers.com's Header Tag Controller contribution installed. $cataloglogo: The OSC logo and link $urlcataloglogo: The URL used by the $catalog logo. $myaccountlogo: The MyAccount graphic and link $urlmyaccountlogo: The URL used by the My Account function $cartlogo: The Cart graphic and link $urlcartlogo: The URL used by the Cart function $checkoutlogo: The Checkout graphic and link $urlcheckoutlogo: The URL used by the Checkout function $breadcrumbs: The "Top > Catalog > whatever..." breadcrumbs text and links $myaccount: The text version of "My Account" and link. Changes to "Logoff" if logged on. $urlmyaccount: The URL used by the MyAccount function. $cartcontents: The text version of the "Cart Contents" function. $urlcartcontents: The URL used by the MyAccount function. $checkout: The text version of the "Check Out" function. $urlcheckout: The URL used by the "Check Out" function. $categorybox: The Category box $manufacturerbox: The Manufacturer box $whatsnewbox: The What's New box $searchbox: The Search box $informationbox: The Information box $cartbox: The Shopping Cart box $maninfobox: The Manufacturer Info box (blank if not used on a page) $orderhistorybox: The Order History box (blank if not used on a page, ie: use not logged in) $bestsellersbox: The Best Sellers box $specialfriendbox: Either the Specials box or the Tell A Friend box (depending on page viewed) $reviewsbox: The Reviews box $languagebox: The Languages box $currenciesbox: The Currencies box $content: The main content of the page (the middle of the page) $date: The current date $numrequests: The "XXX requests Since DATE" text $counter: The page view counter $footer: The footer output from footer.php $banner: The banner output from footer.php $sid: The string for the Session ID in the format "SessionIdVarName=WhateverTheSessionIdIs" ----------------------------------------------------------------------------- DEBUGGING: ----------------------------------------------------------------------------- In the /catalog/includes/application_bottom.php file you can see the following settings (near the top of the file): $display_template_output = 1; $display_normal_output = 0; $display_debugging_output = 0; Display_Template_Output (the default setting) will cause it to display the template versions of the pages. Display_Normal_Output will cause it to display the non-template version of the pages. Display_Debugging_Output will cause it to display debugging information showing all of the blocks of data that it is using and how it translates them into template variables. You can use any or all of the settings in any combination. If you have both Normal and Template output, the Template output will be displayed first. ----------------------------------------------------------------------------- REMOTE DEBUGGING: ----------------------------------------------------------------------------- You can toggle the debugging options via URL options. You can use the following parameters in your URL to turn on/off options from your browser sts_template=1 Turns on the Template display sts_template=0 Turns off the Template display sts_normal=1 Turns on the Normal display sts_normal=0 Turns off the Normal display sts_debug=1 Turns on the Debugging display sts_debug=0 Turns off the Debugging display sts_version=1 Turns on Version Number display sts_version=0 Turns off Version Number display ----------------------------------------------------------------------------- SUPPORT: ----------------------------------------------------------------------------- For support, please post to this thread. <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
211655 Posted October 25, 2004 Share Posted October 25, 2004 Hi, I have sts 1. some version. how do i upgrade to the new sts systems without hurting the older design. plz help and guide. thanks. Quote 211655 SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
zpeedfreak Posted October 25, 2004 Share Posted October 25, 2004 I just wanted to know if anyone else has had an issue with "</" being displayed at the bottom of every page and if anyone knows how to remove it please let me know how. Quote Link to comment Share on other sites More sharing options...
darkangel Posted October 25, 2004 Share Posted October 25, 2004 (edited) Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /usr/home/a4zd/domains/a4zd.com/public_html/osc/includes/sts_display_output.php on line 151 Warning: main(includes/sts_product_info.php): failed to open stream: No such file or directory in /usr/home/a4zd/domains/a4zd.com/public_html/osc/includes/sts_display_output.php on line 151 Fatal error: main(): Failed opening required 'includes/sts_product_info.php' (include_path='.:/usr/local/lib/php') in /usr/home/a4zd/domains/a4zd.com/public_html/osc/includes/sts_display_output.php on line 151 I think you are not able to see tbe file correctly because you are suppost to name the file : sts_product_info.php.html So the warning is telling you that there is no file name like that in the sts_display_output Make sure you rename correctly and look at the STS_DISPLAY_OUTPUT on that line to see what you have. Hope that helps! This Post Goes FOR JOHNSIM SORRY! Edited October 25, 2004 by darkangel Quote Link to comment Share on other sites More sharing options...
mickeymouse Posted October 25, 2004 Share Posted October 25, 2004 I just wanted to know if anyone else has had an issue with "</" being displayed at the bottom of every page and if anyone knows how to remove it please let me know how. <{POST_SNAPBACK}> from the faq on Brians Website http://diamondsea.com/sts/sts_faq.html: 3) At the bottom of each page, I see the characters "</". Answer: You need to upgrade your server's version of PHP. This was a subtle bug in older versions. Updating your PHP will fix it. You should upgrade it anyway, since if you are running a version with this problem, there are also security fixes that have been added to later versions of PHP that you need to secure your system. Quote I only do what my Rice Krispies tell me to do! Link to comment Share on other sites More sharing options...
mickeymouse Posted October 25, 2004 Share Posted October 25, 2004 I think you are not able to see tbe file correctly because you are suppost to name the file : sts_product_info.php.html So the warning is telling you that there is no file name like that in the sts_display_output Make sure you rename correctly and look at the STS_DISPLAY_OUTPUT on that line to see what you have. Hope that helps! This Post Goes FOR JOHNSIM SORRY! <{POST_SNAPBACK}> The file should be named sts_product_info.php.....chances are that the proper information wasn't copied into the configure.php file. 9 times out of 10 when that error appears it's because a filename is not defined properly in OSC. Follow the instructions as Brian has written them and there shouldn't be any problems. Make sure you edit the configure.php file off your server because it contains all of your database information. If you edit that file off a stock OSC install, you'll break the database connection for your storefront and it won't work anymore! Quote I only do what my Rice Krispies tell me to do! Link to comment Share on other sites More sharing options...
mickeymouse Posted October 25, 2004 Share Posted October 25, 2004 hi, i've just installed a fresh copy of osc & sts201. after running the installation, when i click to go to my main page it got this error Warning: main(STS_START_CAPTURE): failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\sts2\includes\application_top.php on line 511 Fatal error: main(): Failed opening required 'STS_START_CAPTURE' (include_path='.;c:\php4\pear') in D:\Program Files\Apache Group\Apache2\htdocs\sts2\includes\application_top.php on line 511 can anyone help out thanks <{POST_SNAPBACK}> Read the FAQ!!!! http://diamondsea.com/sts/sts_faq.html Quote I only do what my Rice Krispies tell me to do! Link to comment Share on other sites More sharing options...
zpeedfreak Posted October 26, 2004 Share Posted October 26, 2004 Thanks for your help mickeymouse. Quote Link to comment Share on other sites More sharing options...
211655 Posted October 26, 2004 Share Posted October 26, 2004 (edited) Hi, I have sts 1. some version. how do i upgrade to the new sts systems without hurting the older design. plz help and guide. thanks. Edited October 26, 2004 by 211655 Quote 211655 SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
TimD Posted October 27, 2004 Share Posted October 27, 2004 For those who are wanting to have seperate product_info.php pages under each categories so that you can follow a colour theme through then please have a look at my code below.. Basically i have copied the code from the index.php part of sts_display_output.php and changed it so that it can be used for the product_info pages.. Please go to around line 128 of sts_display_output.php and select the following code.. ///////////////////////////////////////////// ////// if product_info.php load data ///////////////////////////////////////////// if ($scriptbasename == 'product_info.php') { require(STS_PRODUCT_INFO); } Then paste over the top this code: ///////////////////////////////////////////// ////// if product_info.php load data ///////////////////////////////////////////// //if ($scriptbasename == 'product_info.php') { //require(STS_PRODUCT_INFO); //} // See if there is a custom template file for the currently running script $sts_check_file = STS_TEMPLATE_DIR . $scriptbasename . ".html"; if (file_exists($sts_check_file)) { // Use it $sts_template_file = $sts_check_file; } // Are we in the product_info.php script? If so, what is our Category Path (cPath)? if ($scriptbasename == "product_info.php") { require(STS_PRODUCT_INFO); // If no cPath defined, default to 0 (the home page) if ($cPath == "") { $sts_cpath = 0; } else { $sts_cpath = $cPath; } // Look for category-specific template file like "product_info.php_1_17.html" $sts_check_file = STS_TEMPLATE_DIR . "product_info.php_$sts_cpath.html"; if (file_exists($sts_check_file)) { // Use it $sts_template_file = $sts_check_file; } } // Open Template file and read into a variable if (! file_exists($sts_template_file)) { echo "Template file doesn't exist: [$sts_template_file]"; } else { echo "<!-- Using Template File [$sts_template_file) -->\n"; } if (! $fh = fopen($sts_template_file, 'r')) { echo "Can't open Template file: [$sts_template_file]"; } $template_html = fread($fh, filesize($sts_template_file)); fclose($fh); You should now be able to add template files into the sts_template folder exactly the same as you do for index. For example.. product_info.php_1.html I'm sorry that my explanation is a little vague but i hope it helps a few people out.. If you guys could test this out for me as i am stacked with work at the moment and have only spent 10 minutes or so testing and as far as i can see it works great. Quote Link to comment Share on other sites More sharing options...
rarrar Posted October 27, 2004 Share Posted October 27, 2004 For those who are wanting to have seperate product_info.php pages under each categories so that you can follow a colour theme through then please have a look at my code below.. Basically i have copied the code from the index.php part of sts_display_output.php and changed it so that it can be used for the product_info pages.. Please go to around line 128 of sts_display_output.php and select the following code.. ///////////////////////////////////////////// ////// if product_info.php load data ///////////////////////////////////////////// if ($scriptbasename == 'product_info.php') { require(STS_PRODUCT_INFO); } Then paste over the top this code: ///////////////////////////////////////////// ////// if product_info.php load data ///////////////////////////////////////////// //if ($scriptbasename == 'product_info.php') { //require(STS_PRODUCT_INFO); //} // See if there is a custom template file for the currently running script $sts_check_file = STS_TEMPLATE_DIR . $scriptbasename . ".html"; if (file_exists($sts_check_file)) { // Use it $sts_template_file = $sts_check_file; } // Are we in the product_info.php script? If so, what is our Category Path (cPath)? if ($scriptbasename == "product_info.php") { require(STS_PRODUCT_INFO); // If no cPath defined, default to 0 (the home page) if ($cPath == "") { $sts_cpath = 0; } else { $sts_cpath = $cPath; } // Look for category-specific template file like "product_info.php_1_17.html" $sts_check_file = STS_TEMPLATE_DIR . "product_info.php_$sts_cpath.html"; if (file_exists($sts_check_file)) { // Use it $sts_template_file = $sts_check_file; } } // Open Template file and read into a variable if (! file_exists($sts_template_file)) { echo "Template file doesn't exist: [$sts_template_file]"; } else { echo "<!-- Using Template File [$sts_template_file) -->\n"; } if (! $fh = fopen($sts_template_file, 'r')) { echo "Can't open Template file: [$sts_template_file]"; } $template_html = fread($fh, filesize($sts_template_file)); fclose($fh); You should now be able to add template files into the sts_template folder exactly the same as you do for index. For example.. product_info.php_1.html I'm sorry that my explanation is a little vague but i hope it helps a few people out.. If you guys could test this out for me as i am stacked with work at the moment and have only spent 10 minutes or so testing and as far as i can see it works great. <{POST_SNAPBACK}> This is the solution that I rigged several weeks back. Works for me but YMMV. if ($scriptbasename == "product_info.php") { $sts_cpath = $cPath; $sts_check_file = STS_TEMPLATE_DIR . "product_info.php_$sts_cpath.html"; if (file_exists($sts_check_file)) { $sts_template_file = $sts_check_file;} } 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.