Guest Posted January 29, 2007 Share Posted January 29, 2007 Go to whatever contribution page and look at the end of the URL: there is an ID. Change it to 112 and you'll see the contribution. Name is something like "Products listing in Columns". Quote Link to comment Share on other sites More sharing options...
artico Posted January 29, 2007 Share Posted January 29, 2007 thanx Quote Link to comment Share on other sites More sharing options...
mblakeslee Posted January 29, 2007 Share Posted January 29, 2007 Content does not display in SIS 4.3.3 install I have a MS2 install with several working contributions. They are: AJAX-AttributeManager-v2.3c-beta attrib_sort_v1.2 EP_v2_76c_MS2 fec3.2 Options_as_images_1_2 product_sort_v16 Quantity_price_breaks_per_product An additional, original mod I made was using css and additions to configure.php to provide a little more flexibility in the design. The changes weren't substantial; just some changes to utilize CSS better, defines for the corners of infoboxes, conditionals to turn on/off certain infoboxes and defines to turn on/off the left and right columns. In light of these changes, I used the manual method of installing STS 4.3.3 described in the "Installation Text" document. The templating is working, but $content is not being populated, so the center of the page is blank. I used the debug mechanism to display the various tags and $content area is empty, only displaying the variable name, HR and start/end comments. I have checked the code insertions and there doesn't appear to be any errors there. I have looked through the forum and the documentation, but need some help with resolving this. I would appreciate any guidance on debugging this and any insight into the mechanics of the contribution. Originally posted as http://www.oscommerce.com/forums/index.php?showtopic=247797, reposted to STS4 thread. Thanks. Michael Quote Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2007 Share Posted January 29, 2007 Hi guys Wonder if anyone can help. Just installed STS and i seem stuck on the last part of modding my files Parse error: parse error, unexpected $ in /home/xxxxxxxxxxx/public_html/includes/footer.php on line 43 above is the error displayed on my home page, if i go into admin and install STS i get the same error as above but it takes my home page away and just displays the error???? Have i posted the right info? if not, tell me what you need and i will provide Please please please can someone help me out? TIA Marc Quote Link to comment Share on other sites More sharing options...
bkellum Posted January 29, 2007 Share Posted January 29, 2007 Content does not display in SIS 4.3.3 install I have a MS2 install with several working contributions. They are: AJAX-AttributeManager-v2.3c-beta attrib_sort_v1.2 EP_v2_76c_MS2 fec3.2 Options_as_images_1_2 product_sort_v16 Quantity_price_breaks_per_product An additional, original mod I made was using css and additions to configure.php to provide a little more flexibility in the design. The changes weren't substantial; just some changes to utilize CSS better, defines for the corners of infoboxes, conditionals to turn on/off certain infoboxes and defines to turn on/off the left and right columns. In light of these changes, I used the manual method of installing STS 4.3.3 described in the "Installation Text" document. The templating is working, but $content is not being populated, so the center of the page is blank. I used the debug mechanism to display the various tags and $content area is empty, only displaying the variable name, HR and start/end comments. I have checked the code insertions and there doesn't appear to be any errors there. I have looked through the forum and the documentation, but need some help with resolving this. I would appreciate any guidance on debugging this and any insight into the mechanics of the contribution. Originally posted as http://www.oscommerce.com/forums/index.php?showtopic=247797, reposted to STS4 thread. Thanks. Michael Michael, check to see that your defined end character matches what you set coded for your content variable. For ex: If it is set for "$", be sure to code your content variable as "$content$". If not, you will get blank content but should at least see the variable in your web browser. Otherwise, you may have forgot a step in the installation or one of your contributions is conflicting. Try doing a file comparison with your store files against the files provided in the contribution. This should help you isolate the missing or offending code. Hope this helped, Bill Kellum 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 January 29, 2007 Share Posted January 29, 2007 Hi guys Wonder if anyone can help. Just installed STS and i seem stuck on the last part of modding my files Parse error: parse error, unexpected $ in /home/xxxxxxxxxxx/public_html/includes/footer.php on line 43 above is the error displayed on my home page, if i go into admin and install STS i get the same error as above but it takes my home page away and just displays the error???? Have i posted the right info? if not, tell me what you need and i will provide Please please please can someone help me out? TIA Marc Marc, You have inserted either a space into your code or did not insert the code in the correct location. In the /includes/footer.php file, you need the following lines of code (see the installation instructions for the exact placement): // START STS 4.3.3 if ($sts->display_template_output) { } else { //END STS 4.3.3 // START STS 4.3.3 } // END STS 4.3.3 Hope this helped you out, Bill Kellum 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...
Guest Posted January 30, 2007 Share Posted January 30, 2007 Content does not display in SIS 4.3.3 install I have a MS2 install with several working contributions. They are: AJAX-AttributeManager-v2.3c-beta attrib_sort_v1.2 EP_v2_76c_MS2 fec3.2 Options_as_images_1_2 product_sort_v16 Quantity_price_breaks_per_product An additional, original mod I made was using css and additions to configure.php to provide a little more flexibility in the design. The changes weren't substantial; just some changes to utilize CSS better, defines for the corners of infoboxes, conditionals to turn on/off certain infoboxes and defines to turn on/off the left and right columns. In light of these changes, I used the manual method of installing STS 4.3.3 described in the "Installation Text" document. The templating is working, but $content is not being populated, so the center of the page is blank. I used the debug mechanism to display the various tags and $content area is empty, only displaying the variable name, HR and start/end comments. I have checked the code insertions and there doesn't appear to be any errors there. I have looked through the forum and the documentation, but need some help with resolving this. I would appreciate any guidance on debugging this and any insight into the mechanics of the contribution. Originally posted as http://www.oscommerce.com/forums/index.php?showtopic=247797, reposted to STS4 thread. Thanks. Michael Be sure you have enabled the right column, it is where the $content variable is populated. - Rigadin Quote Link to comment Share on other sites More sharing options...
star8 Posted January 30, 2007 Share Posted January 30, 2007 Hi! I am using the latest STS pack, BDP and show sub categories sontriubutions with oscommerce 060817. My problem is that the product names does'nt show up on the product list, product information and under new products. I think the meta tag information is not generating the product names. I went over again the installtion procedures and find nothing. I also tried "fill all tags" under fill tags. What could be the problem? Any suggaestions will be appreciated. Thanks ;) Quote Link to comment Share on other sites More sharing options...
Becki Posted January 30, 2007 Share Posted January 30, 2007 HI, my 'click image to enlarge' is not working, I think it's the same problem as artico but I couldn't find a solution in the forum. I tried sts_template.php but that also did not allow the popup? Top of view source in product_info <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html $htmlparams> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>CraftMeHappy.co.uk - CraftMeHappy.co.uk</title> <meta name="Description" content="CraftMeHappy.co.uk brings you huge savings on innovative premium products CraftMeHappy.co.uk Bargain Card Paper Stamps"/> <meta name="Keywords" content="CraftMeHappy.co.uk Bargain Card Paper Stamps, CraftMeHappy.co.uk Bargain Card Paper Stamps"/> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <!-- EOF: Generated Meta Tags --> <base href="http://www.craftmehappy.co.uk/"> <!-- start get_javascript(applicationtop2header) //--> <!-- end get_javascript(applicationtop2header) //--> It worked on a offline store at home, which was catalog/product_info It is now live at /product_info. Bill you mentioned the javescript file may have moved? Any ideas please? http://www.craftmehappy.co.uk/product_info.php?products_id=2 I just get a javascript error! Thanks Quote Link to comment Share on other sites More sharing options...
Becki Posted January 30, 2007 Share Posted January 30, 2007 (edited) BTW - If i disable templates it works? Thanks in advance :) Edited January 30, 2007 by Becki Quote Link to comment Share on other sites More sharing options...
star8 Posted January 31, 2007 Share Posted January 31, 2007 Hi! This is my second time to post this message. I really need to make it work I am using the latest STS pack, BDP and show sub categories sontriubutions with oscommerce 060817. My problem is that the product names does'nt show up on the product list, product information and under new products. I think the meta tag information is not generating the product names. I went over again the installtion procedures and find nothing. I also tried "fill all tags" under fill tags. What could be the problem? Any suggaestions will be appreciated. Thanks! :blush: Quote Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2007 Share Posted January 31, 2007 The problem does not come from STS. Switch off STS and try again. Probably a mistake when installing another contrib. - Rigadin Quote Link to comment Share on other sites More sharing options...
Becki Posted January 31, 2007 Share Posted January 31, 2007 BTW - If i disable templates it works? Thanks in advance :) Found out my includes/header.php didn't upload correclty so was missing the STScode at the top. All works now, except for the enlarge window not resizing correctly. Becki Quote Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2007 Share Posted January 31, 2007 New STS v4.4 is out: - NEW: template for popup_image.php - NEW: infobox template for the frame around the product listing (option). - NEW: choose the templates folder from admin, not fixed anymore to includes/sts_templates - NEW: place images and buttons in your template folder, they will be used instead of the default images and buttons. Thanks to Arnoldl for this one. Have fun! - Rigadin Quote Link to comment Share on other sites More sharing options...
dehuszar Posted January 31, 2007 Share Posted January 31, 2007 Sam, if you are using a newer version of STS you could make a content template and see if that works for you. There are instructions in the STS User Manual. The most recent version of STS is 4.3.3. Am I correct in thinking that I will have to go through the relevant php files and make custom $variables in my sts_usercode.php for all of the fields and generated content from each of those source php files? If so, has anyone done this already for the account management pages? I'd hate to reinvent this particular wheel. Also, the manual only refers to using the /content/ folder for product pages. If you can use it for pages other than product pages, then that's not entirely clear from reading the manual (though great news) and should be updated in the next revision of the manual. Thanks in advance, Sam Quote Link to comment Share on other sites More sharing options...
dehuszar Posted January 31, 2007 Share Posted January 31, 2007 Becki, you should follow the format specified in the osCommerce Knowledge Base: <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT) . '">' . 'CHECKOUT' . '</a>'; ?> or you could also use: <a href="<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL'); ?>" class="links"><?php echo HEADER_TITLE_CHECKOUT; ?></a> Both of these examples do the same thing. It is important how you create your links so that you do not lose the session ID and risk causing the customers cart to empty after clicking on a bad link. bkellum, can you hint at what knowledgebase article this is discussed? I've rummaged through a bunch after using the search criteria of SESSION, LINKS, COOKIES, and SSL, but haven't come across an explanation of or reference to the syntax you use above. I think this might help me with my issues where using explicit product links causes the sessionID to disappear. Super thanks in advance, Sam Quote Link to comment Share on other sites More sharing options...
dehuszar Posted January 31, 2007 Share Posted January 31, 2007 bkellum, can you hint at what knowledgebase article this is discussed? I've rummaged through a bunch after using the search criteria of SESSION, LINKS, COOKIES, and SSL, but haven't come across an explanation of or reference to the syntax you use above. I think this might help me with my issues where using explicit product links causes the sessionID to disappear. Super thanks in advance, Sam Scratch that.... just found it. For anyone else interested, here is the link: http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/252 With that out of the way, isn't there a security issue with putting the SESSIONID in the link? Or is it just for the server-side processing. I just don't want SessionIDs being bookmarked for a lot of obvious reasons. Also, the article states that the tep_href_link statement must be in <?php ... ?> brackets. Which of course means the file must be a .php file. Will this be an issue putting such links into an html template meant for STS, or will the php code be metabolized properly once the resultant page is rendered by the server? I don't know if this is where Becki is getting stuck, but I'm certainly not sure what the best way forward is. I'll certainly experiment, but I don't want to assume I'm doing this safely and securely just because it works (assuming it will). Sam Quote Link to comment Share on other sites More sharing options...
banGbro Posted February 1, 2007 Share Posted February 1, 2007 I have a question about $content/info box templates... Im using STS 4.4, latest version.... Basically I know how to modify info box templates. But all it does is modify the rectangle around it. I want to change more. For example for category box, I want to change the apperance of categories. Instead of standard links I want something menu like. i.e. instead of <a> tag, I want <li> and <ud>.... so that categories look exactly like menu on my site. Is it possible to do that? Quote Link to comment Share on other sites More sharing options...
bkellum Posted February 1, 2007 Share Posted February 1, 2007 Scratch that.... just found it. For anyone else interested, here is the link: http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/252 With that out of the way, isn't there a security issue with putting the SESSIONID in the link? Or is it just for the server-side processing. I just don't want SessionIDs being bookmarked for a lot of obvious reasons. Also, the article states that the tep_href_link statement must be in <?php ... ?> brackets. Which of course means the file must be a .php file. Will this be an issue putting such links into an html template meant for STS, or will the php code be metabolized properly once the resultant page is rendered by the server? I don't know if this is where Becki is getting stuck, but I'm certainly not sure what the best way forward is. I'll certainly experiment, but I don't want to assume I'm doing this safely and securely just because it works (assuming it will). Sam Sam, I do not recommend putting the SESSIONID in the link. You should just follow the guidelines as posted in that knowledge base article. Also, you can include PHP code in your STS template which is one of the reasons STS is so simple to use with osCommerce. :thumbsup: One way I take advantage of this is using the PHP include statement so that I can have one header.php.html and one footer.php.html template for all of my pages in my site. :thumbsup: 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...
artico Posted February 1, 2007 Share Posted February 1, 2007 Found out my includes/header.php didn't upload correclty so was missing the STScode at the top. All works now, except for the enlarge window not resizing correctly. Becki Hi Becki I'm still trying to solve the same prob you had, can you explain how did you make it work ? Tnx :thumbsup: Quote Link to comment Share on other sites More sharing options...
Guest Posted February 1, 2007 Share Posted February 1, 2007 I have a question about $content/info box templates... Im using STS 4.4, latest version.... Basically I know how to modify info box templates. But all it does is modify the rectangle around it. I want to change more. For example for category box, I want to change the apperance of categories. Instead of standard links I want something menu like. i.e. instead of <a> tag, I want <li> and <ud>.... so that categories look exactly like menu on my site. Is it possible to do that? To modify the inside of an infobox you'll have to modify the code of the infobox. Infoboxes can be found in includes/boxes/. Infoboxes that display in the content area can be found in includes/modules/ Quote Link to comment Share on other sites More sharing options...
Becki Posted February 1, 2007 Share Posted February 1, 2007 Hi Becki I'm still trying to solve the same prob you had, can you explain how did you make it work ? Tnx :thumbsup: Hi, My problem was that i had a javascript error when you clicked on the 'click to enlarge' - I think same as yours. Anyway my problem was that the STS code in catalog/includes/header.php was missing - it should have something like // START STS 4.3.2 $sts->restart_capture ('applicationtop2header'); // Capture header from the actual script, needed to take out javascript // END STS 4.3.2 at the top (see the STS install guide) Have a look in the top of your code (view source) when on the product_info page - is the popup javascript there? Becki Quote Link to comment Share on other sites More sharing options...
artico Posted February 1, 2007 Share Posted February 1, 2007 Hi, My problem was that i had a javascript error when you clicked on the 'click to enlarge' - I think same as yours. Anyway my problem was that the STS code in catalog/includes/header.php was missing - it should have something like at the top (see the STS install guide) Have a look in the top of your code (view source) when on the product_info page - is the popup javascript there? Becki Hi Becki I checked my header.php file and it got this code at the top // START STS 4.1 $sts->restart_capture ('applicationtop2header'); // Capture header from the actual script, needed to take out javascript // END STS 4.1 I don't use product_info page, the sts_template.html shows my product. here is the code: (do I miss something ?) :'( <html $htmlparams><head> <meta http-equiv="Content-Language" content="en-us"> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #CCCCCC; } .style1 {color: #FFFFFF} --> </style></head> <body> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="16%" valign="top"><table width="100%" height="199" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="107" align="center" valign="top"><img src="images/logo.jpg" width="151" height="107"></td> </tr> <tr> <td align="center" valign="top"></td> </tr> <tr> <td align="center" valign="top"><table width="150" height="143" border="0" cellpadding="0" cellspacing="0"> <tr> <td><br></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" bgcolor="#666666"><span class="style1">Categories</span></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=24"><img src="images/old.jpg" width="148" height="29" border="0"></a></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=25"><img src="images/b_gold.jpg" width="148" height="29" border="0"></a></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=26"><img src="images/b_silver.jpg" width="148" height="29" border="0"></a></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=27"><img src="images/b_red.jpg" width="148" height="29" border="0"></a></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=28"><img src="images/b_orange.jpg" width="148" height="29" border="0"></a></td> </tr> <tr> <td align="center"><a href="store/catalog/index.php?cPath=29"><img src="images/b_other.jpg" width="148" height="29" border="0"></a></td> </tr> </table></td> </tr> <tr> <td><br> $whatsnewbox</td> </tr> <tr> <td> </td> </tr> <tr> <td valign="bottom">$informationbox</td> </tr> </table></td> </tr> </table></td> <td width="14%" align="center" valign="bottom" bgcolor="#DD1E2F"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center" valign="bottom"><font color="#FFFFFF">$date</font></td> </tr> </table></td> <td width="70%" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="10"><br><Br></td> </tr> <tr> <td height="5" bgcolor="#999999"><font face=arial color="#000000">$breadcrumbs</font></td> </tr> <tr> <td valign="top">$content</td> </tr> <tr> <td align="right" valign="bottom">$numrequests</td> </tr> </table></td> </tr> </table> </body> </html> Quote Link to comment Share on other sites More sharing options...
Becki Posted February 1, 2007 Share Posted February 1, 2007 Hi Becki I checked my header.php file and it got this code at the top // START STS 4.1 $sts->restart_capture ('applicationtop2header'); // Capture header from the actual script, needed to take out javascript // END STS 4.1 I don't use product_info page, the sts_template.html shows my product. here is the code: (do I miss something ?) :'( There are much better people on here that should be able to help you out - i really don't want to offer advice that is wrong! But with my store I have just one template for every page - the default. When I click onto a product (say in product listing - products all in rows) it then goes to the individual product page where the click to enlarge text appears - this is the peoduct_info page, in the view source bit there you shoul dhave something like <!-- start get_javascript(applicationtop2header) //--><script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> Becki Quote Link to comment Share on other sites More sharing options...
Becki Posted February 1, 2007 Share Posted February 1, 2007 (edited) Sam, I do not recommend putting the SESSIONID in the link. You should just follow the guidelines as posted in that knowledge base article. Also, you can include PHP code in your STS template which is one of the reasons STS is so simple to use with osCommerce. :thumbsup: One way I take advantage of this is using the PHP include statement so that I can have one header.php.html and one footer.php.html template for all of my pages in my site. :thumbsup: Hi Sam/Bill, I will try with the header.php.html when I have some more time but for now I have created other placeholders in sts_inc/general.php which are just links using the tep_.... code mentioned. In my index file I have then just linked the text for the nav bar to for example $urlmyaccount# etc. All seems to work fine - is this OK for now until I have more time to play with the includes. Many thanks Becki www.craftmehappy.co.uk/index.php i should note that i have used the $banner_only# placeholder to be the store logo. there are three logos in total so when you move around the store the text under the main title changes. I thought this was a neat way of doing it but perhaps this causes unforseen problems? What do you think? Edited February 1, 2007 by Becki 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.