Guest Posted April 22, 2007 Share Posted April 22, 2007 Update: Since it was a relatively new install of osc, I just reinstalled and added sts. Things work fine. Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 22, 2007 Share Posted April 22, 2007 Update: Since it was a relatively new install of osc, I just reinstalled and added sts. Things work fine.Glad you got it working Dan. :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...
Guest Posted April 23, 2007 Share Posted April 23, 2007 So, I sucessfully installed the Featured Sets contribution. I also successfully created a place holder for it. It works great. But, the contribution did not come with a includes/boxes file. How would I go about creating a custom box for a feature with no box file? Quote Link to comment Share on other sites More sharing options...
Aprilrobin Posted April 23, 2007 Share Posted April 23, 2007 STS 4.5 & Dynamenu problem. well, I had the store all up and running beautifully until I decided to mess with Dynamenu! I followed Bill Kellum's directions of how to make it work with STS and my problem is that the fly-outs didn't work. So, I went to add <?php echo $GLOBALS['dmfooter']; ?> to the bottom of application_bottom.php and I am getting funky error message. Now, I'm not all that familiar with Php. I know the directions said to add the code before the ending ?> So, should the last line now just look like this? <?php echo $GLOBALS['dmfooter']; ?> does the ?> at the end of the inserted code combine with the ending ?> I'm supposed to insert it in front of or should there be two? (?>)'s? I tried several ways and nothing seems to be working but that could and probably is just because I don't know what I'm doing. gah, any advice on how to get this to work with the fly-outs? really appreciated. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2007 Share Posted April 23, 2007 (edited) I don't know if the STS Guru's have come up with a remedy for the horizontal fly-out. But for the vertical fly-out your application bottom should look like this: if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) { if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) { tep_gzip_output(GZIP_LEVEL); } } //Output the footer for Dynamenu for osCommerce echo $GLOBALS['dmfooter']; ?> Hope this helps, Dano Edited April 23, 2007 by dealindano Quote Link to comment Share on other sites More sharing options...
Aprilrobin Posted April 24, 2007 Share Posted April 24, 2007 I don't know if the STS Guru's have come up with a remedy for the horizontal fly-out. But for the vertical fly-out your application bottom should look like this: if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) { if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) { tep_gzip_output(GZIP_LEVEL); } } //Output the footer for Dynamenu for osCommerce echo $GLOBALS['dmfooter']; ?> Hope this helps, Dano ah thank you Dano, yes, unfortunately the horizontal fly-out is what I was looking for. I should have mentioned that. Thank you much for your help. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2007 Share Posted April 24, 2007 I don't know which one you call horizontal fly-out. I have this in my code: 0 = Horizontal Drop-down 1 = Vertical Flyout 2 = Tree Menu 3 = Plain Horizontal Menu 4 = Plain Vertical Menu and they are all working with STS v4.5.2 (important to have Service Pack 2!). - Chris Quote Link to comment Share on other sites More sharing options...
pedro_tpo_nz_07 Posted April 25, 2007 Share Posted April 25, 2007 i install it as per instructions 2) Do it again 3) Copy all the new files to your store: - catalog\includes\classes\sts.php - catalog\includes\functions\sts.php - catalog\includes\languages\english\modules\sts folder - catalog\includes\modules\sts folder - catalog\includes\modules\sts_inc folder - catalog\includes\sts_templates: all files then when i go to my admin. modules the config is not there, eg the sts box!! also can anyone please send me some sts samples you did so i can work of them Quote Link to comment Share on other sites More sharing options...
pedro_tpo_nz_07 Posted April 25, 2007 Share Posted April 25, 2007 did all this 3) Copy all the new files to your store: - catalog\includes\classes\sts.php - catalog\includes\functions\sts.php - catalog\includes\languages\english\modules\sts folder - catalog\includes\modules\sts folder - catalog\includes\modules\sts_inc folder - catalog\includes\sts_templates: all files now in admin/modules its not there????????? thanks pw Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 25, 2007 Share Posted April 25, 2007 did all this 3) Copy all the new files to your store: - catalog\includes\classes\sts.php - catalog\includes\functions\sts.php - catalog\includes\languages\english\modules\sts folder - catalog\includes\modules\sts folder - catalog\includes\modules\sts_inc folder - catalog\includes\sts_templates: all files now in admin/modules its not there????????? thanks pw oops....didn't follow ALL of the instructions. You still need to make the modifications to the rest of the files including those on the admin side as well as changes to the stock osC files. 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...
pedro_tpo_nz_07 Posted April 25, 2007 Share Posted April 25, 2007 what modifications as far as i can see i did everything oops....didn't follow ALL of the instructions. You still need to make the modifications to the rest of the files including those on the admin side as well as changes to the stock osC files. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2007 Share Posted April 26, 2007 The install package contains new files, modified files and instructions how to modify those files. Point 3) Lists the new files that you can just copy to your store. Point 4) Tells that you can copy other files (the modified ones) to your store if you have not added any other contribiutions before STS, or use a file-compare program to merge the changes, or make the changes manually with the provided instructions. I would recommend using a file-compare program (Beyond Compare, WinMerge, ...). It'll be your best friend! - Chris Quote Link to comment Share on other sites More sharing options...
krang364 Posted April 26, 2007 Share Posted April 26, 2007 Can someone tell me what file holds the '$content' placeholder code so I can edit its output. Quote Link to comment Share on other sites More sharing options...
Bamboozled Posted April 26, 2007 Share Posted April 26, 2007 Many apologies - I clicked on the new topic button instead of the Add Reply and inadvertently started a new thread. Forgive the repetition here - I'll try to get rid of the other topic if I can... Hi I'm a complete newbie and have looking through this forum but cannot find a resolution to this problem. STS 4.5.2 is installed according to the instructions but when I edit the Use templates and the Use template for infoboxes on the Default tab of the module and click Update nothing at all happens. Could someone tell me what I'm doing wrong - or point me in the right direction for help on this? Many thanks for any help Truly Bamboozled Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 27, 2007 Share Posted April 27, 2007 Many apologies - I clicked on the new topic button instead of the Add Reply and inadvertently started a new thread. Forgive the repetition here - I'll try to get rid of the other topic if I can... Hi I'm a complete newbie and have looking through this forum but cannot find a resolution to this problem. STS 4.5.2 is installed according to the instructions but when I edit the Use templates and the Use template for infoboxes on the Default tab of the module and click Update nothing at all happens. Could someone tell me what I'm doing wrong - or point me in the right direction for help on this? Many thanks for any help Truly Bamboozled If this is a new installation of osC 060817, then you are experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc. There is a simple fix: 1. Open the catalog/admin/includes/functions/compatibility.php. 2. At the end of the “do_magic_quotes_gpc” routine, add the following code reset($ar); It will end up looking like this: function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } 3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php. 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...
krang364 Posted April 27, 2007 Share Posted April 27, 2007 Can someone tell me what file holds the '$content' placeholder code so I can edit its output. Quote Link to comment Share on other sites More sharing options...
Bamboozled Posted April 27, 2007 Share Posted April 27, 2007 If this is a new installation of osC 060817, then you are experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc. There is a simple fix: 1. Open the catalog/admin/includes/functions/compatibility.php. 2. At the end of the “do_magic_quotes_gpc” routine, add the following code reset($ar); It will end up looking like this: function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } 3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php. Thank you so much bkellum - that was beginning to drive me to an early grave!!! Quote Link to comment Share on other sites More sharing options...
TracyS Posted April 29, 2007 Share Posted April 29, 2007 Hi Bill, I'm setting up another osC site for a client and I decided to try the latest STS with it. So I downloaded and installed STS v4.5.2. One problem though - apparently the Header Tags Controller isn't included in the latest version. So now that I have the 4.5.2 setup - how do I add the Header Tags Controller (in the least complicated manner that is - LOL)? :blush: Quote ~Tracy Link to comment Share on other sites More sharing options...
bkellum Posted April 30, 2007 Share Posted April 30, 2007 Hi Bill, I'm setting up another osC site for a client and I decided to try the latest STS with it. So I downloaded and installed STS v4.5.2. One problem though - apparently the Header Tags Controller isn't included in the latest version. So now that I have the 4.5.2 setup - how do I add the Header Tags Controller (in the least complicated manner that is - LOL)? :blush: Tracy, it really isn't that difficult, especially with a new shop. I have mentioned that I was going to make a new bundle of these two but just have not got to it yet. I actually have the code done, just have not found the time to update the manual. If you can wait, I will have this done soon but if you can't, try following the directions listed on the STSv4 Power Pack site. 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 April 30, 2007 Share Posted April 30, 2007 Can someone tell me what file holds the '$content' placeholder code so I can edit its output.$content is taken from the php script (index.php, checkout_process.php, etc.) you are running. For example, the $content for index.php is the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script (index.php) itself. For example: Let's say you have placed your $content tag in the middle column. Now viewing your shop through a browser, you click on a category link. Now the $content tag responds by populating the middle column with the listing proucts for that particular category. Now if you want the listing to appear differently than the stock osC, you will have to edit the PHP code that controls the characteristics of the product listings or install a contribution that will do this for you. Either way, the $content tag is going to populate whatever the PHP code tells it to. Hope this helped, 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...
Wicky Posted May 1, 2007 Share Posted May 1, 2007 STS rocks! I've recently installed osCommerce for the first time and I'm trying to create a shop that doesn't really look anything like osCommerce out of the box - STS is helping to find my feet. I'm stuck on one issue though: How do I replace the $content for the index page? I want to use static images and some embedded Flash on the home page for specific promotions I have created custom layouts for the product listing pages by placing the layout in the following folder: sts_templates > myTemplate > content > product_info.php.html However, if I add index.php.html to the same folder it doesn't seem to work: sts_templates > myTemplate > content > index.php.html Am I missing something? How can I change the contents of the index page? Thanks Quote Link to comment Share on other sites More sharing options...
tomtom98 Posted May 1, 2007 Share Posted May 1, 2007 Well I do appologize for being dumb, I installed the contribution for STS and flash banner. My question is, how do I add a flash banner?? I have it created and uploaded to the site, tried to point index.php to the flash banner, but still no luck and I am lost. Any help is greatly appreciated. I have added the code to imbed and not have the "do you want to use flash" words to not show up. But lost how to link STS to the flash. Thanks Tom Quote Link to comment Share on other sites More sharing options...
bkellum Posted May 2, 2007 Share Posted May 2, 2007 Well I do appologize for being dumb, I installed the contribution for STS and flash banner. My question is, how do I add a flash banner?? I have it created and uploaded to the site, tried to point index.php to the flash banner, but still no luck and I am lost. Any help is greatly appreciated. I have added the code to imbed and not have the "do you want to use flash" words to not show up. But lost how to link STS to the flash. Thanks Tom Tom, I answered this in your other post in the older STS Forum. 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...
krang364 Posted May 2, 2007 Share Posted May 2, 2007 $content is taken from the php script (index.php, checkout_process.php, etc.) you are running. For example, the $content for index.php is the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script (index.php) itself. For example: Let's say you have placed your $content tag in the middle column. Now viewing your shop through a browser, you click on a category link. Now the $content tag responds by populating the middle column with the listing proucts for that particular category. Now if you want the listing to appear differently than the stock osC, you will have to edit the PHP code that controls the characteristics of the product listings or install a contribution that will do this for you. Either way, the $content tag is going to populate whatever the PHP code tells it to. Hope this helped, Thanks Bill! Quote Link to comment Share on other sites More sharing options...
Winterlily Posted May 3, 2007 Share Posted May 3, 2007 Hi guys, Please forgive me if this is an idiotic question or has been answered numerous times - or in numerous places - before (I really HAVE looked for the answer, but don't find it). I'm trying to design a template in my graphics program for use with STS. What size should I make it? Right now I've got it at 1000 pixels wide by 800 pixels high. No particular reason. I would like (I think) the design to be of the type where there's a background, then the main "screen" smaller on top of it. I'm going to have a drawn illustration in the header, so there can be no stretch or distortion (not that distortion is ever a good thing). Before I go on with the design, can you please tell me what dimensions I ought to have the thing be, as a whole, so I don't have to redo? And if there's anything else, tips etc, that I need to know to avoid stretching (or, conversely, left-right scroll bars) later? Thank you! Samantha 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.
Note: Your post will require moderator approval before it will be visible.