beeonline Posted October 21, 2003 Share Posted October 21, 2003 Hi Does this contribution support the login/accounts box????? Cheers Malc Quote Link to comment Share on other sites More sharing options...
jbh Posted October 21, 2003 Share Posted October 21, 2003 Does anybody have enough knowledge about this template system to know why my script cannot find the html template file? Template file doesn't exist: [includes/sts_template.html] Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory I hate to sound rude, but every problem has been resolved, except for this one, and it seems like such a simple problem for somebody more experienced. I have the right milestone version and I just uploaded it the 'easy' way as recommended. what can cause this on a linux server with php 4+? Quote Link to comment Share on other sites More sharing options...
DiamondSea Posted October 22, 2003 Author Share Posted October 22, 2003 Does anybody have enough knowledge about this template system to know why my script cannot find the html template file? Template file doesn't exist: [includes/sts_template.html] Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory I hate to sound rude, but every problem has been resolved, except for this one, and it seems like such a simple problem for somebody more experienced. I have the right milestone version and I just uploaded it the 'easy' way as recommended. what can cause this on a linux server with php 4+? Is the file .../catalog/includes/sts_template.html actually on your system? (Gotta ask the simple questions first) Does the web server process have read permission on the file? - bg Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
benjmnm Posted October 22, 2003 Share Posted October 22, 2003 (edited) I am aplogizing for taking my frustrations with the sts contribution out on the forum. I have since reinstalled 1.8 and took my time this time around and found that it was my rushing that caused the many problems that i had. I have a current working STS/OScommerce cart. My current problem is that i can't seem to get rid of the "New Products For ... " box in the "$content" area as you can see here: www.spidercases.com/catalog I went into the /includes/languages/english/index.php, and tried to comment out the code that i thougt would take care of it, but to no avail. Being that it did not work, I in my lack of sleep deleted it. So, now i have to rewrite the box, which is no big deal, but i am trying to get rid of it completly, well at least for now. Thanks for your help. Ben OH... befor i forget, am i still able to go through css to change the colors and text? Again GREAT, GREAT contribution. Many Thanks. Edited October 22, 2003 by benjmnm Quote Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2003 Share Posted October 22, 2003 Hi, still having problems with the Shopping cart total: on the top.. I downloaded "cart in Header" contribution and trying to install it but it doesnt work with the STS.. this is what the Cart in Header is asking me to do <?php /* $Id: Cart in your header 1.0 2003/03/15 Kim Elliott-Bird Brain osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ################################################################### To install simply copy and paste the table into your code where you would like it. I use mine in the header. You will want to change the CSS classes to match your site. Enjoy!! Kim <table align="right" class="infoBox" width="140" border="0" cellspacing="1" cellpadding="1"> <tr> <td class="accountCategory" align="right"> Items: </td> <td class="accountCategory" align="left"> <?php echo $cart-> count_contents(); ?> </td> <td class="accountCategory" align="right"> Total: </td> <td class="accountCategory" align="left"> <?php echo $currencies-> format($cart->show_total()); ?> </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
hkhan Posted October 22, 2003 Share Posted October 22, 2003 Hi, I'm using OS Commerce for my site, and just installed the files from STS version 1.2, but am getting this error "Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53 Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53" I'm not quite sure how to address this problem. I'd appreciate any help, and I really need a response as soon as possible. Thanks. Quote Link to comment Share on other sites More sharing options...
ixbiosxi Posted October 22, 2003 Share Posted October 22, 2003 Hi, I'm using OS Commerce for my site, and just installed the files from STS version 1.2, but am getting this error "Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53 Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/buyybm/public_html/osCommerce/includes/application_top.php on line 53" I'm not quite sure how to address this problem. I'd appreciate any help, and I really need a response as soon as possible. Thanks. First of all make sure that (includes/filenames.php) is uploaded to that directory. I know it sounds stupid but it happens more times than you think. Second check the bottom line of application_top.php and if it has a blank line at the end of it after the ?> delete that blank line. Then reupload that file and see if that fixes it. Quote For an osCommerce and STS Tutorial click the www button in my profile. Link to comment Share on other sites More sharing options...
Lynx Posted October 22, 2003 Share Posted October 22, 2003 I'm trying to add custom boxes, using the $custombox1 $custombox2, for example and in column_left.php I have to add the "...include(DIR_WS_BOXES . 'customlogin.php');..." stuff for each box twice for it to work , is that ok? ... well I guess it's ok since it seems to work :rolleyes: but is there a way I can make my boxes work without it being twice there? ps: thanks for making this mod, it's the most useful and easy to use I've seen for ocs Quote Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2003 Share Posted October 22, 2003 Congratulations by this great contribution. I have one doubts: it is possible to cause that the contribution of coolmenu with sts works?, I have not obtained it. It leaves box but empty , some idea ? thx someboy it happens the same? please help sorry for my english Quote Link to comment Share on other sites More sharing options...
beeonline Posted October 22, 2003 Share Posted October 22, 2003 Hi I would like to add the login/accounts box Any ideas on how I can do this Cheers Malc Quote Link to comment Share on other sites More sharing options...
DiamondSea Posted October 22, 2003 Author Share Posted October 22, 2003 HiI would like to add the login/accounts box Any ideas on how I can do this Cheers Malc For a summary of how to add new features to STS, see this link: http://www.oscommerce.com/forums/index.php?sho...ndpost&p=232727 - Brian Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
jbh Posted October 23, 2003 Share Posted October 23, 2003 DiamondSea>>Yes, as I stated before with the other posts, I have it uploaded. (the html template) What permission does the html template file need? Thanks Quote Link to comment Share on other sites More sharing options...
beeonline Posted October 23, 2003 Share Posted October 23, 2003 Hi Thanks Brian .... the login box works ok Cheers Malc Quote Link to comment Share on other sites More sharing options...
Talanithus_UOLS Posted October 24, 2003 Share Posted October 24, 2003 First off, I LOVE the STS contribution. But is it usable with the "Drop Down Menu" modifcations utilizing DHTML or other sources? If so, is there a particular one that tends to blend more easily? Many thanks! Quote Link to comment Share on other sites More sharing options...
Nossie Posted October 24, 2003 Share Posted October 24, 2003 Hi, I've been trying to add a new box using the sts system... I've added require(DIR_WS_BOXES . 'forum.php'); // STS: ADD $sts_block_name = 'forum'; require(STS_RESTART_CAPTURE); // STS: EOADD to the column_left.php and also added $forum to the sts_templates file.. I then edited the manufacturers.php file and re-uploaded it as forum.php OSc still shows the variable instead of the box? can anyone please tell me what I've missed or done wrong? cheers, http://www.4development.com/store/ Quote Ian Harvie Link to comment Share on other sites More sharing options...
Xplod Posted October 24, 2003 Share Posted October 24, 2003 Quick question... What wrong here http://www.xplod.fastaccess.co.nz/store/pr...581d225ec425e22 Its not stretching 100% accross Quote Link to comment Share on other sites More sharing options...
ixbiosxi Posted October 24, 2003 Share Posted October 24, 2003 Hey im using ms 2.2 and sts 1.8 at the end of my store on first load it always has </ When I view the source it looks like its not loading </html> fully, with a quick refresh its gone. Anyone else have this problem? To view what I am talking about visit http://www.biostech.net/demo1/ and scroll to the bottom of the screen. Quote For an osCommerce and STS Tutorial click the www button in my profile. Link to comment Share on other sites More sharing options...
DiamondSea Posted October 24, 2003 Author Share Posted October 24, 2003 Hi, I've been trying to add a new box using the sts system... I've added require(DIR_WS_BOXES . 'forum.php'); // STS: ADD $sts_block_name = 'forum'; require(STS_RESTART_CAPTURE); // STS: EOADD to the column_left.php and also added $forum to the sts_templates file.. I then edited the manufacturers.php file and re-uploaded it as forum.php OSc still shows the variable instead of the box? can anyone please tell me what I've missed or done wrong? cheers, http://www.4development.com/store/ If it is a box you are adding, for consistencies sake I'd change the name of it from forum to forumbox. You also need to add the code to link the captured block of text to the $template[] variable. In sts_display_output.php (though you could put in column_left.php just as well) like this: $template['forumbox'] = strip_unwanted_tags($sts_block['forumbox'], 'forumbox'); That should do it for you. - Brian Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
Nossie Posted October 24, 2003 Share Posted October 24, 2003 thanks :) I'll check that out in a bit ! <_< Quote Ian Harvie Link to comment Share on other sites More sharing options...
Guest Posted October 24, 2003 Share Posted October 24, 2003 Hey im using ms 2.2 and sts 1.8 at the end of my store on first load it always has </ When I view the source it looks like its not loading </html> fully, with a quick refresh its gone. Anyone else have this problem? I would check to see if http://www.oscommerce.com/community/bugs,1242 applies. Note: since you aren't using the standard layout, it won't show up the same way as it does in the bug report. Put simply, it is simply a bug in PHP (4.2 series) that causes the HTML to get mangled. Jan's post gives URLs for the PHP bug reports if you would like more info. Hth, Matt Quote Link to comment Share on other sites More sharing options...
mirdin Posted October 24, 2003 Share Posted October 24, 2003 Yesterday I installed STS 1.8 on a clean install of MS2, but today I noticed I the default language value is not being recognized. I set the default language to German in the admin section, but the shop still shows up in English. After some investigating I found out that the language of the shop is determined by my default browser language. The language variable seems empty and therefore defaults to my default browser language. I'm not sure if this is STS related, but could it be that STS caused this issue? Quote OSC 2.2 MS2 Using the following contributions: STS v1.8 Graphical Infobox Headers Description in Product Listing Hack MS2 v.2.4 Link to comment Share on other sites More sharing options...
jbh Posted October 24, 2003 Share Posted October 24, 2003 (edited) Hi, this is my 4th plea for help. Is it that hard to find out why my uploaded html template file cannot be read? What permission is needed to read it? I cannot read/open the html template file. What do I do? I can't wait another week for a reply. Error below after I uploaded the mod: Template file doesn't exist: [includes/sts_template.html] Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory in /home/travelel/public_html/catalog/includes/sts_display_output.php on line 82 Can't open Template file: [sTS_DEFAULT_TEMPLATE] Warning: filesize(): Stat failed for STS_DEFAULT_TEMPLATE (errno=2 - No such file or directory) in /home/travelel/public_html/catalog/includes/sts_display_output.php on line 86 Edited October 24, 2003 by jbh Quote Link to comment Share on other sites More sharing options...
beeonline Posted October 24, 2003 Share Posted October 24, 2003 Hi How do I add javascript to the header for use in rollovers??? Cheers Malc Quote Link to comment Share on other sites More sharing options...
beeonline Posted October 24, 2003 Share Posted October 24, 2003 Hi So far I have added quite a few contributions after STS and all seems to work OK... My problem now is that the client I am building this site for is using Worldpay on is old site and wants to continue to use Worldpay on this new site... Having search for and found a Worldpay contribution, to my dismay I have found the following message on a thread about the contribution... It took me around 3 hours to fix this problem for someone else - you need to remove all references to STS from wpcallback (and all its included modules, eg application_top, etc) - I did it "live" so didnt keep any files. Basically, dont install STS - it is not compatible with Worldpay, or I suspect many other payment contributions (but I havent tested any others) - URL for Forum Thread Can you throw any light or help on this DiamondSea Thanks Malc Quote Link to comment Share on other sites More sharing options...
benjmnm Posted October 25, 2003 Share Posted October 25, 2003 JBH - I had the same problem, I had to reinstall ms2.2 and sts (the 1.8 verson) and also upload all the other attached sts template files... all is good. Currently my site looks like this:My shopping cart. All the colors were changed via the .css files, as was the fonts ect. I am currently working on getting a flash interactive cart using osc & brian's STS system. We'll see how it turns out. Good luck to you. 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.