Guest Posted November 2, 2003 Share Posted November 2, 2003 (edited) heres a novel idea i like the way the template system works was thinking about getting the template to work with thema contribution for style sheets then you would be able to create different templates with different style sheets. also use the infobox admin contribution then you would not need to add infoboxs to the template. with the infobox contribution all infoboxs are removed and controlled form admin. then you would be able to move the inboxes to where you want with out haveing to edit the template html. what would need to be done would make a database addition to control the templates from admin change some of the settings in the template files you can look at what i have so far its still not working completely but its a start My Webpage Edited November 2, 2003 by asiabound Quote Link to comment Share on other sites More sharing options...
Guest Posted November 2, 2003 Share Posted November 2, 2003 hmm.. Hi, i just installed this, and it is not working.. i am getting the following error when i go to my shop: Fatal error: Failed opening required 'includes/filenames.php' (include_path='') in /home/sites/site83/web/osc/eshop/includes/application_top.php on line 53 If i comment out this line(as there is no such file in my includes folder), it gives an error for the next required line, and if i comment That out, it gives me an error that it cannot find a table in my database.. Any ideas? I am running this on a raq, using the package for osCommerce.. Please let me know when you can! ~Amy was your shop working before you add STS it look like your configure.php is not reading the files in your include directory or your missing the filenames.php Quote Link to comment Share on other sites More sharing options...
aspenamy Posted November 2, 2003 Share Posted November 2, 2003 Hi, It was working fine, and i freshly installed it again before setting up STS, and tested to see if it worked. the file filenames.php just never existed: is it in another folder? if not, i guess it just wasnt part of the install.. Please let me know if there is something i can do! ~Amy Quote Link to comment Share on other sites More sharing options...
finch8243 Posted November 2, 2003 Share Posted November 2, 2003 Hello All -- I'm psyched up for STS, but I load it on a fresh 2.2CVS install and nothing -- completely blank www.mydomain.com/catalog/ --> nothing showing up. Is it because of 2.2CVS? Do I need to stick to MS? Thx Finch Quote Finch Link to comment Share on other sites More sharing options...
ixbiosxi Posted November 3, 2003 Share Posted November 3, 2003 OK for any of those that might have the same problem as I did with my html output. Older versions of PHP have a bug in them that messes up the html output. This can cause mismatched />, etc. which is why I received an </ at the end of my first load on my store. An easy fix for this would be to edit the .htacces that you upload with your catalog and edit line 33 to enable php_value session.use_trans_sid 0. Then reupload the htaccess file. Quote For an osCommerce and STS Tutorial click the www button in my profile. Link to comment Share on other sites More sharing options...
tec Posted November 4, 2003 Share Posted November 4, 2003 hi y'all. Ok, i followed the instructions for the template system. (atleast i am pretty sure i did everything right) apparently not though 'cause now i am getting this error. :( Warning: main(STS_START_CAPTURE) [function.main]: failed to create stream: No such file or directory in /home/virtual/site84/fst/var/www/html/catalog/includes/application_top.php on line 511 Fatal error: main() [function.main]: Failed opening required 'STS_START_CAPTURE' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site84/fst/var/www/html/catalog/includes/application_top.php on line 511 Quote Link to comment Share on other sites More sharing options...
tec Posted November 4, 2003 Share Posted November 4, 2003 (edited) hmm, i cant edit my post, i have changed the layout of the template, now i get this... Warning: main(includes/sts_display_output.php) [function.main]: failed to create stream: No such file or directory in /home/virtual/site84/fst/var/www/html/catalog/includes/application_bottom.php on line 18 Fatal error: main() [function.main]: Failed opening required 'includes/sts_display_output.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site84/fst/var/www/html/catalog/includes/application_bottom.php on line 18 this is how i would like it to look pic Edited November 4, 2003 by tec Quote Link to comment Share on other sites More sharing options...
star86 Posted November 5, 2003 Share Posted November 5, 2003 Where can i remove the "New Products Box" on the shop-home, changes in index.php dosn't work. I've installed STS 1.8. Thanks. Quote Link to comment Share on other sites More sharing options...
geekGlassgal Posted November 5, 2003 Share Posted November 5, 2003 I recently installed STS on a new 2.2 install with easy populate added also. It works fine...except for on the product_info page all the stylesheet formatting doesn't work?? Heres the link: Tumbleweed Glassworks I beleive it was o.k. b4 STS. Tried to debugg by following the info on the readme file: "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;" but none of that code was in stated file and I'm not much of a coder to try and figure out how/where to insert it. Anyway I'm lost :unsure: . I've searched threads with no avail :( . Quote Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2003 Share Posted November 5, 2003 I got almost everything to work.. but I added some links to about.php and others and the STS doesn't work on them.. I mean i see the "$categorybox" also I cannot get the Title to work.. i get an osCommerce title.. here is the link to my site Discount Pharmacy Quote Link to comment Share on other sites More sharing options...
miriya Posted November 5, 2003 Share Posted November 5, 2003 Has anyone been able to make multiple templates work? I am attempting to, but it is seeming that it only wants to go off of the default template (which works just fine). I created the sts_templates folder (and the configure.php is all set up happy) and tried making some templates for a few files (like index.php.html or contact_us.php.html), but they all resorted to the default template. Any suggestions where to start looking? I'd give you an addy to go to but don't think localhost would work for anyone else like it does for me. :lol: Thanks in advance! ~Kat Quote Link to comment Share on other sites More sharing options...
bren Posted November 5, 2003 Share Posted November 5, 2003 Has anyone been able to get any of the java/dhtml menus working yet? Care to share how... Quote Link to comment Share on other sites More sharing options...
ixbiosxi Posted November 5, 2003 Share Posted November 5, 2003 I recently installed STS on a new 2.2 install with easy populate added also. It works fine...except for on the product_info page all the stylesheet formatting doesn't work?? Heres the link: Tumbleweed Glassworks I beleive it was o.k. b4 STS. Tried to debugg by following the info on the readme file: "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;" but none of that code was in stated file and I'm not much of a coder to try and figure out how/where to insert it. Anyway I'm lost :unsure: . I've searched threads with no avail :( . Try adding <link rel="stylesheet" href="stylesheet.css" type="text/css"> before </head> in your sts_template.html file and see if that helps. Quote For an osCommerce and STS Tutorial click the www button in my profile. Link to comment Share on other sites More sharing options...
ixbiosxi Posted November 5, 2003 Share Posted November 5, 2003 I got almost everything to work.. but I added some links to about.php and others and the STS doesn't work on them.. What do you mean by STS doesnt work with the links? Looks like most pages work fine to me. If you need to add an outside link to insert into the content box so you still get all of the left menu, I recommend you read the wiki. I cannot get the Title to work.. i get an osCommerce title.. You need to edit the page title by going to your catalog/includes/languages/english.php file About line 47 you'll see: // page title define('TITLE', 'osCommerce'); Change that to your site title. Quote For an osCommerce and STS Tutorial click the www button in my profile. Link to comment Share on other sites More sharing options...
lindstrom Posted November 5, 2003 Share Posted November 5, 2003 (edited) Hi all, thanks for this great contrib. The installation was ok but I have 3 questions: 1. The cart-buttons are not visible any longer. Why? 2. There is a flash file in my design but it doesn?t work. Why? In the sts_template.html it does not work - but in another folder the flash file runs... 3. With one template it works good. But what is to do for using multiple templates? Thanks a lot and sorry for the short description. Lars Edited November 5, 2003 by lindstrom Quote Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2003 Share Posted November 5, 2003 thank you for the reply ixbiosxi what i mean is that I made another page called about.php and I cant get the STS to work in it.. Quote Link to comment Share on other sites More sharing options...
geekGlassgal Posted November 5, 2003 Share Posted November 5, 2003 Thanks ixbiosxi for the responce. The template had a stylesheet link but w/out the "type="text/css"" So I pasted that in cuz you never know ;) but it didn't work. When I look at the source code for the product_info page all the info regarding stylesheet linking is the same as the source code for the other pages in which the stylesheet formatting works!!! ugh... I guess my next step is to backtrack :( and reinstall unless anyone else has a suggestion or has had this issue. Quote Link to comment Share on other sites More sharing options...
candlealley Posted November 6, 2003 Share Posted November 6, 2003 I am trying to install this on my site, I also use Xoops and have osC installed as a module in my Xoops. I followed the easy install directions, but when I try to open my shop link I get this message: Warning: main(includes/boxes/whats_new.php): failed to open stream: No such file or directory in /home2/candleal/public_html/web/modules/shop/includes/column_left.php on line 39 Fatal error: main(): Failed opening required 'includes/boxes/whats_new.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/candleal/public_html/web/modules/shop/includes/column_left.php on line 39 I am not a programmer, and I don't know much abotu it, so this is confusing and I'm not sure how to fix it. Is this tempalte program evenusable with the xoops/osC ? Thank you so much if you can help me. Quote Link to comment Share on other sites More sharing options...
mktwain124 Posted November 6, 2003 Share Posted November 6, 2003 candlealley wrote: Is this tempalte program evenusable with the xoops/osC ? I don't think you will get STS to work with xoops/osC without some major programming changes, particularly to xoops. First, the osC module for xoops is still in beta status - still alot of variable conflicts and database table incompatibilities. Second, xoops uses Smarty templates and you will need to somehow convert all the STS variables into Smarty recognized ones, which probably means that STS won't work properly. With the various themes available for xoops, and assuming that the osC module can be successfully integrated into xoops, why would you want to use STS? Sorry, it looks like you need to choose between osC/STS template (available today) or xoops/osC (available in a couple weeks/months/...?) Quote Link to comment Share on other sites More sharing options...
digitalsky Posted November 6, 2003 Share Posted November 6, 2003 I have a shared SSL setup, and kept getting a "page contains some unecrypted information" message in Netscape, I checked the HTML output on the https page, and found that the base URL was incorrect, it was using the http URL (http://mystore.com/store/" instead of "https://hostname/~username/") which caused the the images to load from the http server. I commented out the following from the sts_display_output.php file in STS 1.8 the SSL pages seem to work fine now. $template['headcontent'] .= '<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '">' . "\n"; Will commenting out the above code affect any functionality of the STS system? If so, any ideas on how to correct this issue? Thanks. Quote Link to comment Share on other sites More sharing options...
lindstrom Posted November 6, 2003 Share Posted November 6, 2003 (edited) Hi, the contrib works great. But after the installation the cart buttons were not visible. The buttons are in the right directory and I set chmod to 777 - I deleted also the .htaccess from /includes - but nothing. In the standard shop before - they were visible... What can I do? Thanks... Edited November 6, 2003 by lindstrom Quote Link to comment Share on other sites More sharing options...
icontractor Posted November 6, 2003 Share Posted November 6, 2003 Hi Guys i'm a newbie to oscommerce and php. I really like the functionalities of STS but i'm having problems running it. I installed a clean install of oscommerce and i configured the configure.php file with the following script. I'm using version 1.8 By the way. // STS: ADD: Define Simple Template System files define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); // STS: EOADD Now according to the readme file i just have to input the tags that i want example: $cataloglogo, $urlmyaccountlogo, etc... wherever i want in my template file. But my question is if i want to view my template in a browser i have to goto: catalog/includes/sts_template.html, but if i goto this url will it show me an html file with the output of the tags or will it just show me this http://a1security.com/catalog/includes/sts_template.html. As you see if you goto this page all you see is the default page with just lines and the tags, isnt it supposed to show the actual content instead of just the tags?? Whats the problem here do i have to change the file extension to .php or do i hava to use opening and closing tags <? ?> around php tags example <? $urlcheckout ?>. I'm not sure if i'm making sense but to help i'm just wondering why isn't the tags being converted to php output?? Quote Link to comment Share on other sites More sharing options...
icontractor Posted November 6, 2003 Share Posted November 6, 2003 Also i get this error when i goto http://www.a1security.com/catalog/includes...play_output.php Forbidden You don't have permission to access /catalog/includes/sts_display_output.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Anyone know why? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2003 Share Posted November 7, 2003 I'm not sure if i'm making sense but to help i'm just wondering why isn't the tags being converted to php output?? It isn't supposed to show the actual content, as far as I know. Just goto your catalog page http://a1security.com/catalog/ I just stay connected to my ftp and keep modifying/uploading sts_template.html and refreshing my catalog until I get the results I want. -Dave Quote Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2003 Share Posted November 7, 2003 I have kind of skimmed through this thread, but haven't been able to find anything about using a DHTML category box with STS. Has anyone had any luck with this, if it is even possible without alot of work? -Dave 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.