star86 Posted November 12, 2003 Share Posted November 12, 2003 I love this feature! However, I am having a problem with the "Click to enlarge" function within the product information. I am receiving a javascript error of the following when I try to "click to enlarge" Line: 1 Char: 1 Error: Object expected Code:0 URL: http://import-tech.net/shop/catalog/produc...products_id=290 The coding for the pop up window has not been changed, and I had no problems with it before using my html template. Please help! STS 1.8 README.txt ... ----------------------------------------------------------------------------- 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. ... Quote Link to comment Share on other sites More sharing options...
CivicRacingGirl7 Posted November 12, 2003 Share Posted November 12, 2003 Thank you! I completely overlooked the: so that it can insertthe dynamic head content and javascript on pages that require it when I read that section! Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 12, 2003 Share Posted November 12, 2003 With STS installed, my browser displays $title instead of the name of my site. If I remove the STS files, it displays the correct title. Anyone know how to fix this? Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bs2713 Posted November 13, 2003 Share Posted November 13, 2003 I must have done something wrong, since I am very new at this. My catalog page is now my main page for some reason? What I mean is when I create something that links to a catalog and should open a box with all my items in it it goes to my home page. Can someone help me with this? <html> <head> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> <br> <body topmargin="0" leftmargin="0" rightmargin="0" background="images/back.jpg"> <div align=center> <table border=1 cellspacing=0 cellpadding=0 width=780> <tr> <td> <table width="100%" align="center" border="2" cellpadding="30" cellspacing="0"> <tr class="header"> <td> <font size="1" face="Arial, Helvetica, sans-serif">LOGO</font><div align="right"><font size="1" face="Arial, Helvetica, sans-serif">$myaccount | $cartcontents | $checkout</font></div></td> <table width="100%" align="center" border="0" cellpadding="10" cellspacing="0"> <tr class="headerNavigation"> <td><div align="left"><b><font size="4" face="Arial, Helvetica, sans-serif"> $cartcontents $checkout</font></div></td></b> </tr> </table> <font size="1" face="Arial, Helvetica, sans-serif"> </font> <table width="100%" border="0" cellpadding="10" cellspacing="0"> <tr> <tr class="infobox"> <td align=left valign=top><img src="images/FRONT COVER.jpg" alt="Welcome To ThrowBacks4all.com"> </td> <td align=left valign=top><font size="3" face="Arial, Helvetica, sans-serif"> <br><br><br><br><br><br><br><b>Welcome to ThrowBacks4all.com! We specialize in Throwback Jerseys. Our jerseys are high in quality but low in prices. on.<p><br> Feel free to browse our site, and if you have any questions e-mail <a href="mailto:[email protected]"><u>[email protected]</u></a>. Thank you, and have a pleasant shopping experience!</p><br><br></b> </font> </tr> </table> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"><font size="0" face="Arial, Helvetica, sans-serif">$footer</font></div></td> </tr> </table> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif">LINKS</font></div></td> </tr> </table> <font size="1" face="Arial, Helvetica, sans-serif"><br> </font> <p> </p> </body> </html> My Webpage Quote Link to comment Share on other sites More sharing options...
Macord Posted November 13, 2003 Share Posted November 13, 2003 can someone please tell me how to use these module?? ok from the html page I can change the main layout as per where I want the menus etc, but about where can I change how I want the menus, header and footer changed? can we do it on the same html page? any pointer will be higly appreciated thanks Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 13, 2003 Share Posted November 13, 2003 ok from the html page I can change the main layout as per where I want the menus etc, but about where can I change how I want the menus, header and footer changed? Are you asking how to change the actual text that is displayed? If so, that has to be done in the files themselves. STS is strictly a method to allow you to position where items are on the screen. Is this isn't what you asking, could you be more specific? Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
boosting4 Posted November 14, 2003 Share Posted November 14, 2003 ok now even though i'm new to STS i believe i've done everything necessary. I copied the required files to the /includes dir. added the necessary lines to /includes/configure.php Since i'm using apache and set the docroot to 'catalog' i just typed in ; http://localhost/includes/sts_template.html and it came up, but unprocessed. So in example; $cataloglogo literally displays as "$cataloglogo". Is this normal or did i miss something? I seen other people post about this with no solutions mentioned. Maybe i'm missing something. Anyone? Getting desperate. B Quote Link to comment Share on other sites More sharing options...
boosting4 Posted November 14, 2003 Share Posted November 14, 2003 ok i got it. :) I didn't realize you have to leave the file named sts_template.html and leave it in place. Now i got it. Thanks! -Brendan Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2003 Share Posted November 14, 2003 I'll bring this up just one more time since it has been brought up quite a bit. Has anyone gotten coolmenu or anything else similar to work? -Dave Quote Link to comment Share on other sites More sharing options...
turbohasse Posted November 14, 2003 Share Posted November 14, 2003 Before installing STS everything worked fine but after STS I get this in index.php: 1046 - No Database Selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] how come? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2003 Share Posted November 14, 2003 I reinstalled a fresh copy of OSCommerce, then installed STS 1.8. Can anyone tell me why my Click to Enlarge will not work? The popup that comes up is just a blank template. Here is my site: http://oscommerce.primetwo.com Thanks Quote Link to comment Share on other sites More sharing options...
bs2713 Posted November 14, 2003 Share Posted November 14, 2003 How do I change all my pages to look like the template I am using for the home page? Do I have to do it mannually or is there a better way of doing it? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2003 Share Posted November 14, 2003 Hello, I installed STS on my ecommerce shop and modified the template.html... and then I put a header table with a graphics logo and button, and at the bottom too... it's looks perfect But it makes the shop load pretty slow because every time you load the page, it load all the graphics all over again and again Is there any way so that it won't load all the header and footer graphics everytime you load the page, like a page cache or something... Thanks a lot. Quote Link to comment Share on other sites More sharing options...
jonesy73 Posted November 14, 2003 Share Posted November 14, 2003 Hi, STS looks great! I was wondering if, in addition to providing multiple templates based on filename (eg. index.php.htm, product_info.php.htm), you could also only display certain fields based on category. For example, we have a category called 'education' which needs to display a location field, but in our 'products' category we don't need to display this field. Would STS 1.8 be allow us to add/remove the displaying of fields based on category? Thanks, Derek, www.maverick-solutions.com Quote Link to comment Share on other sites More sharing options...
boysss Posted November 15, 2003 Share Posted November 15, 2003 Not sure what to do with STS. Any specific manual pls? I've got this error after install STS: Fatal error: Failed opening required 'includes/sts_restart_capture.php' (include_path='.:/usr/local/lib/php') in /homepages/33/d88204839/htdocs/catalog/includes/header.php on line 15 Sounds scary. How to resolve the problem? Thanks Quote Link to comment Share on other sites More sharing options...
boysss Posted November 15, 2003 Share Posted November 15, 2003 I tried to reinstall oscommerce then installed STS but the error is still there. Please help Fatal error: Failed opening required 'includes/sts_restart_capture.php' (include_path='.:/usr/local/lib/php') in /homepages/33/d88204839/htdocs/catalog/includes/header.php on line 15 Thanks so much Quote Link to comment Share on other sites More sharing options...
Juha Posted November 15, 2003 Share Posted November 15, 2003 I had this as a seperate thread, but maybe it will work out better here. I want to install Banner in a Box and Articles Contributions to a site running STS. How do I edit the STS system so that it will understand $articles and $box-ad ? Also, do I still edit column_left and column_right.php as the instructions for those mods specify, or do I need to edit a differetn file now? by the way, I am running MS2 and the installation of STS was perfect, I had no problems with it at all. So how about it? I am also trying to put articles contribution over OSC + STS. Any advice how to do it, please? This sort of thing should really be documented in the articles contribution info, since many of us will try to use STS and add other contributions afterwards. After all, STS is such an excellent way to start modifying your OSC. :( So please, can you clarify the matter some more? Cheers, Juha Quote Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2003 Share Posted November 16, 2003 Could you tell me what I'm overlooking? Everything looks great with the STS installed EXCEPT, nothing shows up for the $content tag. What am I missing here? http://www.baublesandjewels.com/store/index.php Quote Link to comment Share on other sites More sharing options...
boysss Posted November 16, 2003 Share Posted November 16, 2003 Help please. I always get errors after installing STS this is the error: Template file doesn't exist: [includes/sts_template.html] Warning: fopen("STS_DEFAULT_TEMPLATE", "r") - No such file or directory in /homepages/33/d88204839/htdocs/catalog/includes/sts_display_output.php on line 82 Can't open Template file: [sTS_DEFAULT_TEMPLATE] Warning: stat failed for STS_DEFAULT_TEMPLATE (errno=2 - No such file or directory) in /homepages/33/d88204839/htdocs/catalog/includes/sts_display_output.php on line 86 Warning: fread(): supplied argument is not a valid File-Handle resource in /homepages/33/d88204839/htdocs/catalog/includes/sts_display_output.php on line 86 Warning: fclose(): supplied argument is not a valid File-Handle resource in /homepages/33/d88204839/htdocs/catalog/includes/sts_display_output.php on line 87 Fatal error: Failed opening required 'STS_USER_CODE' (include_path='.:/usr/local/lib/php') in /homepages/33/d88204839/htdocs/catalog/includes/sts_display_output.php on line 93 Pls helps. I really appreciate. Thanks so much Kindest regards Leo Quote Link to comment Share on other sites More sharing options...
BlessIsaacola Posted November 16, 2003 Share Posted November 16, 2003 Warning: main(includes/functions/clean_html_comments.php): failed to open stream: No such file or directory in /home/clevers/public_html/includes/sts_display_output.php on line 110 Fatal error: main(): Failed opening required 'includes/functions/clean_html_comments.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/clevers/public_html/includes/sts_display_output.php on line 110 The above error is what I get when I go to my shop. line 110 reads require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); but there is no clean_html_comments.php file included in the contribution. What am I missing? Thanks for your help! Quote Contributions: STS Header Tags Ebay Auctions Ebay Auction Sales Manager Html Wysiwyg Editor Ultrapics Paypal Cart IPN Info Pages Unlimited Shop By Price Link to comment Share on other sites More sharing options...
PiGGiEE Posted November 16, 2003 Share Posted November 16, 2003 HiCan some one tell me how to add javascript functionality to this template system.... I am wanting to use rollovers in the categories and header.. Thanks Malc :D Were you able to find out how to use rollovers in the header? I'm trying to figure out the same thing. Quote Link to comment Share on other sites More sharing options...
PiGGiEE Posted November 16, 2003 Share Posted November 16, 2003 I got this for an error... does anyone know what I may have done wrong? // 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_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); // STS: EOADD1046 - No Database Selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] Quote Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2003 Share Posted November 16, 2003 I have installed this contribition and it looks like it is working fine. However I don't seem to be able to change the font size in any of the boxes (i.e. category box etc.) I have tried changing the stylesheet but it doesn't make any difference. Can anyone help? Quote Link to comment Share on other sites More sharing options...
boysss Posted November 17, 2003 Share Posted November 17, 2003 I have installed this contribition and it looks like it is working fine. However I don't seem to be able to change the font size in any of the boxes (i.e. category box etc.) I have tried changing the stylesheet but it doesn't make any difference. Can anyone help? It is at the very first few lines in stylesheet.css. I think it is: Boxtext,.... size:10px Btw, what version of STS are you using? Did you install from a fresh oscommerce? I always have errors when trying to install STS. Might be because I had added on some contributions b4? Pls help. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2003 Share Posted November 17, 2003 Great contribution. All is working perfectly for me, except my Tell A Friend adds the viewed item to the cart instead of going to the tell a friend page......please help on this. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.