bkellum Posted May 30, 2010 Share Posted May 30, 2010 Hi guys, I'm looking for some help with this. I'm using STS V4.5.8 I've installed STS onto the online shop at www.swanseavale4x4.co.uk/catalog I can't get the "Click To Enlarge" link to work when clicking on my pictures. I've searched forums and tried numerous different things, but to no avail as of yet. I want to go live with this shop in the next few weeks or so any help will be greatly appreciated! Thanks, Chris. If your Click to Enlarge link worked prior to STS, it should still work now. Be sure you have the required STS tags in the head section of your template to pull in your JavaScript, Metatags, etc. (look at the sample templates). Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted May 30, 2010 Share Posted May 30, 2010 (edited) *Warning* Put your milk down! Is there a way for me to remove the HEADING_TITLE in just the 'top' or main page? The STS V4.6 is great, BTW. Not sure what you meant by the warning comment.... Answer to your question, Yes, simply make a home page template (index.php_0.html) and leave out the HEADING_TITLE tag from the template. More Details in case you needed it: Edited May 30, 2010 by bkellum Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted May 30, 2010 Share Posted May 30, 2010 Important Posts for the STS newbie: Post #3755: http://forums.oscomm...p;#entry1226986 Post #4326: http://forums.oscomm...p;#entry1303555 Post #4974: http://forums.oscomm...p;#entry1361366 Post #3772: http://forums.oscomm...p;#entry1227769 Post #3757: http://forums.oscomm...p;#entry1227006 Please review the above for insight on how the Simple Template System allows you to make templates for pages, categories, home page, products and infoboxes. Hope this was helpful, Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
katman1971 Posted June 3, 2010 Share Posted June 3, 2010 (edited) Hi I just installed STSv4.6. Now when I go to my website I get this error message: Fatal error: Call to a member function add_current_page() on a non-object in /home/buildawe/public_html/store/catalog/includes/application_top.php on line 312 This is line 312 in catalog/includes/application_top.php: $navigation->add_current_page(); And a few lines around that line: } else { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { I am nearly certain when I finished up installing it last night all was in order. Something happened between then and now! Any help would be appreciated. Thanks Edited June 3, 2010 by dgriff Quote Link to comment Share on other sites More sharing options...
kelsjc Posted June 3, 2010 Share Posted June 3, 2010 Hi All! I did a template using STS contribution but I cannot login or register or read variables like username (%s). Don't know why but my layout is not sending variables. Could someone tell me why? This is really strange because all others STS templates works perfectly and mine not. I have compared between them and no big difference found. Summarizing: - OSC 2.2RC2a in PHP 5.2.13 - STS contribution installed - Only my STS template do not work (do not send variables: do not search, do not login, do not send password, no form post/send variable). All others templates which came in STS package as example works perfectly. - Did I forget any critical line? I have compared files and nothing found. Does anybody know why can't I login or send variables? Any help will be very helpful Kelson Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 3, 2010 Share Posted June 3, 2010 Hi All! I did a template using STS contribution but I cannot login or register or read variables like username (%s). Don't know why but my layout is not sending variables. Could someone tell me why? This is really strange because all others STS templates works perfectly and mine not. I have compared between them and no big difference found. Summarizing: - OSC 2.2RC2a in PHP 5.2.13 - STS contribution installed - Only my STS template do not work (do not send variables: do not search, do not login, do not send password, no form post/send variable). All others templates which came in STS package as example works perfectly. - Did I forget any critical line? I have compared files and nothing found. Does anybody know why can't I login or send variables? Any help will be very helpful Kelson Does your template include the code used in the "blank" template? Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted June 3, 2010 Share Posted June 3, 2010 Hi I just installed STSv4.6. Now when I go to my website I get this error message: This is line 312 in catalog/includes/application_top.php: $navigation->add_current_page(); And a few lines around that line: } else { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { I am nearly certain when I finished up installing it last night all was in order. Something happened between then and now! Any help would be appreciated. Thanks First, how did you install STSv4.6; Manually or Copy? If you did a "Copy" installation, open your /includes/application_top.php file and find the following line of code: if (tep_session_is_registered('navigation')) { Replace it with: if (tep_session_is_registered('navigation') && is_object($navigation)) { See this for more information Let me know if this worked for you, Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
kelsjc Posted June 3, 2010 Share Posted June 3, 2010 Does your template include the code used in the "blank" template? No, I just started from scratch. But I compared both and no big difference found, looks ok. The layout is being displayed normally. Only the form post and variables like name is not working on my template. All other templates, can post and the functions run with no problems. Any help? Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 3, 2010 Share Posted June 3, 2010 No, I just started from scratch. But I compared both and no big difference found, looks ok. The layout is being displayed normally. Only the form post and variables like name is not working on my template. All other templates, can post and the functions run with no problems. Any help? You need the header code from the blank template. You should also check to make sure you have listed your variables correctly: Correct: $content$ Wrong: $content <?php DEFINE ('STS_END_CHAR', '$'); ?> <?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <meta http-equiv="Content-Language" content="en-us"> $warning_header$ <!--$headcontent--> The DOCTYPE can be different but your need the PHP DEFINES as well as $htmlparams and $headcontent Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
kelsjc Posted June 3, 2010 Share Posted June 3, 2010 You need the header code from the blank template. You should also check to make sure you have listed your variables correctly: Correct: $content$ Wrong: $content <?php DEFINE ('STS_END_CHAR', '$'); ?> <?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <meta http-equiv="Content-Language" content="en-us"> $warning_header$ <!--$headcontent--> The DOCTYPE can be different but your need the PHP DEFINES as well as $htmlparams and $headcontent I have changed for what you said. That two $$ were missing and doctype was different but after copying them from blank page, still do not work. Any other idea?? Quote Link to comment Share on other sites More sharing options...
kelsjc Posted June 3, 2010 Share Posted June 3, 2010 You need the header code from the blank template. You should also check to make sure you have listed your variables correctly: Correct: $content$ Wrong: $content <?php DEFINE ('STS_END_CHAR', '$'); ?> <?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <meta http-equiv="Content-Language" content="en-us"> $warning_header$ <!--$headcontent--> The DOCTYPE can be different but your need the PHP DEFINES as well as $htmlparams and $headcontent By the way, I bought the STS4.8 from your SGP website, Bill! And you did not mentioned about two $, and the blueshop is working normally with one $ Anyway, I changed for both styles and still do no work. :( Help, please Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 By the way, I bought the STS4.8 from your SGP website, Bill! And you did not mentioned about two $, and the blueshop is working normally with one $ Anyway, I changed for both styles and still do no work. Help, please Sorry, but you didn't "BUY" anything as I do not "sell" it I give it away for "FREE"! The tips I was providing above was for STSv4.6. At this point, the problem is with your template, not STS as the other templates are working fine. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
kelsjc Posted June 4, 2010 Share Posted June 4, 2010 (edited) Sorry, but you didn't "BUY" anything as I do not "sell" it I give it away for "FREE"! The tips I was providing above was for STSv4.6. At this point, the problem is with your template, not STS as the other templates are working fine. I meant, i bought your STS 4.5.8 Tutorial with blueshop included. But I am using 4.6 anyway Template not working yet, but i have no idea as it got only html codes and sts parameters... Could be something related to CSS?? Edited June 4, 2010 by kelsjc Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 I meant, i bought your STS 4.5.8 Tutorial with blueshop included. But I am using 4.6 anyway Template not working yet, but i have no idea as it got only html codes and sts parameters... Could be something related to CSS?? Post your template code. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
nottinhill Posted June 4, 2010 Share Posted June 4, 2010 I am wondering if anyone could help me integrate CSS style buttons into the sts code, as i want to have css based buttons rather than the standard graphics as im trying to go to a more div/css based template style the module is www.oscommerce.com/community/contributions,3365 it simply suggests: Open the file: catalog/includes/functions/html_output.php FIND: <input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; REPLACE WITH: <input type="submit" class="cssButton" value="' . tep_output_string($value) . '" />'; I used a different approach utilizing CSS3, which I defined in my sts_template.html file. input[type="text"] { /* you know what to do */ } input[type="button"],input[type="submit"] { /* you know what to do */ } With this technique tampering with the html_output.php shouldn't be necessary anymore -at least for the task I wanted to accomplish. Quote Stephan Kristyn Link to comment Share on other sites More sharing options...
kelsjc Posted June 4, 2010 Share Posted June 4, 2010 Post your template code. Here goes my template code: <?php DEFINE ('STS_END_CHAR', '$'); ?> <?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <meta http-equiv="Content-Language" content="en-us"> $warning_header$ <!--$headcontent--> <link rel="stylesheet" type="text/css" href="lightbox/prettyPhoto.css" media="screen"> <link rel="stylesheet" type="text/css" href="$templatedir$/style.css"> <script type="text/javascript" src="includes/templates/padrao/banner/swfobject.js"></script> <script type="text/javascript"> var flashvars = {}; flashvars.settingsXML = "includes/templates/padrao/banner/settings.xml"; var params = {}; params.scale = "noscale"; params.salign = "tl"; params.wmode = "transparent"; var attributes = {}; swfobject.embedSWF("includes/templates/padrao/banner/banner.swf", "BannerDiv", "700", "233", "9.0.0", false, flashvars, params, attributes); </script> <script type="text/javascript"> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> </head> <body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload="MM_preloadImages('$templatedir$/img/$language$/menu_home2.jpg','$templatedir$/img/$language$/menu_mycart2.jpg','$templatedir$/img/$language$/menu_specials2.jpg','$templatedir$/img/$language$/menu_account2.jpg','$templatedir$/img/$language$/menu_contact2.jpg')"> <table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="280" height="387" valign="top" background="$templatedir$/img/logo001.jpg"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="23" height="97" valign="top" background="$templatedir$/img/cima001.jpg"> </td> <td valign="top" background="$templatedir$/img/cima002.jpg"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="48"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <!-- echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; --> <td width="40%"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr> <td align="right"><img src="$templatedir$/img/$language$/languages.png" width="75" height="48" /></td> <td width="50%">$bandeiras$</td> </tr></table> </td> <td height="48"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr> <!-- --> <td align="right"> <img src="$templatedir$/img/$language$/currency.png" width="75" height="48" /> </td> <td valign="middle">$caixamoeda$</td> </tr></table> </td> </tr> </table></td> </tr> <tr> <td height="49"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="40%" height="49"> $loginarea$</td> <td> <table width=95% border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align=right width=60px><span class="black"><? echo TEXT_SCH ?>: </span></td> <td>$caixasearch$</td> <td width=27px>$lupasearch$</td> </tr> </table> </td> </tr> </table></td> </tr> </table></td> <td width="270" valign="top" background="$templatedir$/img/mycart001a.jpg"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="48"> <img src="$templatedir$/img/$language$/mycart.png" width="190" height="48" /></td> </tr> <tr> <td height="25"><span class="cartitem"> $shoppingcartarea$</span></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="233" valign="top"> <div id="BannerDiv"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </div> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" background="$templatedir$/img/menu_fundo001.jpg" align=center> <a href="$urlcataloglogo$" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','$templatedir$/img/$language$/menu_home2.jpg',1)"> <img src="$templatedir$/img/$language$/menu_home1.jpg" name="Image11" border="0" id="Image11" /></a> <a href="$url_specials$" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','$templatedir$/img/$language$/menu_specials2.jpg',1)"> <img src="$templatedir$/img/$language$/menu_specials1.jpg" name="Image13" border="0" id="Image13" /></a> <a href="$urlmyaccount$" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','$templatedir$/img/$language$/menu_account2.jpg',1)"> <img src="$templatedir$/img/$language$/menu_account1.jpg" name="Image14" border="0" id="Image14" /></a> <a href="$urlcartcontents$" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','$templatedir$/img/$language$/menu_mycart2.jpg',1)"> <img src="$templatedir$/img/$language$/menu_mycart1.jpg" name="Image12" border="0" id="Image12" /></a> <a href="$url_contact_us$" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','$templatedir$/img/$language$/menu_contact2.jpg',1)"> <img src="$templatedir$/img/$language$/menu_contact1.jpg" name="Image15" border="0" id="Image15" /></a> </td> <td width="46" height="57" valign="top" background="$templatedir$/img/menu_fundo002a.jpg"> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td colspan="2" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="60" height="440" valign="top" background="$templatedir$/img/esq002.jpg"> <img src="$templatedir$/img/esq001.jpg" width="60" height="450" /></td> <td width="220" rowspan="2" valign="top" background="$templatedir$/img/esq_menu_fundo001.jpg"> <table width="183" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="183" height="36" valign="top" background="$templatedir$/img/barra_menu001.png"> <div align="left"> <img src="$templatedir$/img/$language$/categories.png" width="178" height="36" /></div></td> </tr> <tr> <td width="183" background="$templatedir$/img/barra_menu002.png"> <table width=95% border="0" cellpadding="5" cellspacing="0" align="center"><tr><td> <span class="menuinfo"> $categorias$ </span> </td></tr></table> </td> </tr> <tr> <td width="183" height="20" background="$templatedir$/img/barra_menu003.png"> </td> </tr> </table> <br /> <br /> <table width="183" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="183" height="36" valign="top" background="$templatedir$/img/barra_menu001.png"> <div align="left"> <img src="$templatedir$/img/$language$/information.png" width="178" height="36" /></div></td> </tr> <tr> <td width="183" background="$templatedir$/img/barra_menu002.png"> <table width=95% border="0" cellpadding="5" cellspacing="0" align="center"><tr><td> <span class="menuinfo"> $shippinglinkyellow$<br> $privacylinkyellow$<br> $conditionslinkyellow$<br> $contactlinkyellow$<br> $advancedsearchyellow$ </span> </td></tr></table> </td> </tr> <tr> <td width="183" height="20" background="$templatedir$/img/barra_menu003.png"> </td> </tr> </table> </td> <td width="22" valign="top" background="$templatedir$/img/esq_meio001.jpg"> </td> <td width="494" valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="493" height="75" background="$templatedir$/img/barra_meio001.jpg"> <img src="$templatedir$/img/$language$/featured.png" alt="x" width="250" height="75" /></td> </tr> <tr> <td valign="top"> <div id="column_middle"> <span class="content"> $content$ </span> </div> </td> </tr> </table></td> <td width="138" valign="top" background="$templatedir$/img/dir_banner001.jpg"> <br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> <img src="$templatedir$/img/banner1.jpg" width="120" height="70" /><br><br> </td> <td width="46" height="440" valign="top" background="$templatedir$/img/dir002a.jpg"> <img src="$templatedir$/img/dir001a.jpg" width="46" height="450" /></td> </tr> <tr> <td background="$templatedir$/img/esq002.jpg"> </td> <td colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="22" height="131" background="$templatedir$/img/baixo001.jpg"> </td> <td valign="top" background="$templatedir$/img/baixo002.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="44" valign="top"><div align="center"> <img src="$templatedir$/img/baixo_paypal_001.jpg" alt="" width="400" height="44" /></div></td> </tr> <tr> <td valign="top"><div align="center"> <span class="white"> $privacylink$ | $conditionslink$ | $contactlink$ <br> $footerleft$<br> $footerright$ </span> </div></td> </tr> </table></td> <td width="22" valign="top" background="$templatedir$/img/baixo003.jpg"> </td> </tr> </table></td> <td background="$templatedir$/img/dir002a.jpg"> </td> </tr> </table></td> </tr> </table> </td> </tr> </table> </body> </html> Quote Link to comment Share on other sites More sharing options...
katman1971 Posted June 4, 2010 Share Posted June 4, 2010 First, how did you install STSv4.6; Manually or Copy? If you did a "Copy" installation, open your /includes/application_top.php file and find the following line of code: if (tep_session_is_registered('navigation')) { Replace it with: if (tep_session_is_registered('navigation') && is_object($navigation)) { See this for more information Let me know if this worked for you, I did a copy install. I made that change but I am getting this error message now: Warning: include_once(includes/modules/sts/sts_default.php) [function.include-once]: failed to open stream: No such file or directory in /home/buildawe/public_html/store/catalog/includes/classes/sts.php on line 177 Warning: include_once() [function.include]: Failed opening 'includes/modules/sts/sts_default.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/buildawe/public_html/store/catalog/includes/classes/sts.php on line 177 Fatal error: Class 'sts_default' not found in /home/buildawe/public_html/store/catalog/includes/classes/sts.php on line 181 includes/classes/sts.php This is line 177: include_once (DIR_WS_MODULES.'sts/'.$check_file); includes/classes/sts.php This is line 181: $this->script=new $classname; // Create an object from the module Thanks Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 I did a copy install. I made that change but I am getting this error message now: includes/classes/sts.php This is line 177: include_once (DIR_WS_MODULES.'sts/'.$check_file); includes/classes/sts.php This is line 181: $this->script=new $classname; // Create an object from the module Thanks OK, this tells me that you must have copied a file or folder to the wrong directory or you did not do a complete install. In order to install STS, you to upload all of the files from the STS folder as well as copy all of the files from ONE of the MS2 or RC2 folders. Be sure to keep the folder/file tree intact within these folders. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 Here goes my template code: OK...I see a lot of non-stock variables within your template including a lot of variables created in a different language. Did you define these variables in order for STS to know what to do with them? Does ALL of the variables not work? How about the $content$ variable, does it display correctly? Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
katman1971 Posted June 4, 2010 Share Posted June 4, 2010 (edited) OK, this tells me that you must have copied a file or folder to the wrong directory or you did not do a complete install. In order to install STS, you to upload all of the files from the STS folder as well as copy all of the files from ONE of the MS2 or RC2 folders. Be sure to keep the folder/file tree intact within these folders. I probably uploaded files/folders to the wrong place (the night I did it I was really tired!) Since this was the very first change I attempted to make to my vanilla site I decided to upload a fresh catalog folder and start again. Now I try to go to my admin side and I get this warning: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/buildawe/public_html/store/catalog/admin/includes/functions/database.php on line 19Unable to connect to database server! This is line 19: $$link = mysql_connect($server, $username, $password); I tried to insert server, username and password but I must not be putting it in the incorrect format. Thanks for your help. Edited June 4, 2010 by dgriff Quote Link to comment Share on other sites More sharing options...
kelsjc Posted June 4, 2010 Share Posted June 4, 2010 OK...I see a lot of non-stock variables within your template including a lot of variables created in a different language. Did you define these variables in order for STS to know what to do with them? Does ALL of the variables not work? How about the $content$ variable, does it display correctly? All variables has been defined, no problem. All layout is being displayed correctly. The problem is when posting something like: - search - update qty of products - login - registration - welcome "username" - etc... Quote Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 All variables has been defined, no problem. All layout is being displayed correctly. The problem is when posting something like: - search - update qty of products - login - registration - welcome "username" - etc... I would have to disagree. The layout wouldn't be a problem. Your variable defines are the issue. Use the stock variables to confirm this. If they work, then your custom variables are the problem. Look there to find your fix. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
bkellum Posted June 4, 2010 Share Posted June 4, 2010 I probably uploaded files/folders to the wrong place (the night I did it I was really tired!) Since this was the very first change I attempted to make to my vanilla site I decided to upload a fresh catalog folder and start again. Now I try to go to my admin side and I get this warning: This is line 19: $$link = mysql_connect($server, $username, $password); I tried to insert server, username and password but I must not be putting it in the incorrect format. Thanks for your help. This would have to do with your installation of osCommerce and not STS. Check your configure.php files as well as the link below: Installation and Upgrades Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
kelsjc Posted June 4, 2010 Share Posted June 4, 2010 I would have to disagree. The layout wouldn't be a problem. Your variable defines are the issue. Use the stock variables to confirm this. If they work, then your custom variables are the problem. Look there to find your fix. Right, I'll check that. But it Quote Link to comment Share on other sites More sharing options...
kelsjc Posted June 4, 2010 Share Posted June 4, 2010 I would have to disagree. The layout wouldn't be a problem. Your variable defines are the issue. Use the stock variables to confirm this. If they work, then your custom variables are the problem. Look there to find your fix. But it is strange because the $content is the "better display v3" contribution and I did not change anything in $content, however do not work in my template but it works to the other ones. Anyway, I'll check all custom variables again. 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.