beeonline Posted February 25, 2004 Share Posted February 25, 2004 Hi Whenever the "click to enlarge" is clicked, new page is opened with the template look without the picture in it. I had similar problem...I check the file names on both the image and the folder they were in.EG folder... My cars...did not work folder... my-cars... did work Hope this helps Cheers Malc Quote Link to comment Share on other sites More sharing options...
beeonline Posted February 25, 2004 Share Posted February 25, 2004 HiI am trying to some banners on my front page to link to the product categories and I am having probs with the link URL's... using the following method to link one banner works and the other does not.. The working link <A href="$cat_Diy"><IMG height=150 src="http://www.beeonline.net/store/images/banners-frontpage/banner-diy.jpg" width=227 border=0></A> this works and goes to http://beeonline.net/store/index.php?cPath=46 The non-working link <A href="$cat_Auto_Care"><IMG height=150 src="http://www.beeonline.net/store/images/banners-frontpage/banner-auto-care.jpg" width=227 border=0></A> this does not work and goes to http://beeonline.net/store/index.php?cPath=90Auto_Care I have also used the following $urlcat and this doesn't work either... Can anyone help with this one its driving me nuts... I have tried this method also <A href="http://www.beeonline.net/store/index.php?cpath=46"> I can get this to work if I activate search engine safe url wich is supposed to be in development I still haven't found a answer to this problem...anyone Cheers Malc Quote Link to comment Share on other sites More sharing options...
tlelliott77 Posted February 25, 2004 Share Posted February 25, 2004 Marco I posted a question about this to this thread: http://www.oscommerce.com/forums/index.php?showtopic=75636 on 11th of Feb. Since then I've changed so many other files it would be impossible to say which files might have helped solve the problem. Some mods I've installed are: Newsletter unsubscribe ship in cart simple manual order entry drop down menus added to cart Master products recover cart sales Files I've definitely changed: index.php boxes/shopping_cart.php admin/categories.php boxes/categories.php Sorry I can't be any more help. You might try sending a message to miami_seo who started that thread to see if he's solved it, or at least whether it's the same problem with STS. Good luck Tim Quote Link to comment Share on other sites More sharing options...
Dr. DK Posted February 25, 2004 Share Posted February 25, 2004 Any help with the "click to enlarge", product_image.php for not showing the picture, but it shows the template instead? Thanks! Quote ----------------------------------------------------------------------- Sincerely, Dr. DK Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2004 Share Posted February 25, 2004 I would like to perpetuate the question about the "Manufacturer's links/drop down menu. Is there a solution to producing output for these links when an index.php_0.html file is used? I guess it's not the end of the world, as the Manufacturer's filter still works within each category. Still it would be nice to give the shopper the option to browse by manufacturer from the home page right out of the gate. JP Quote Link to comment Share on other sites More sharing options...
Dr. DK Posted February 25, 2004 Share Posted February 25, 2004 Here's the same problem again. I just installed a fresh copy of OSC again, and a fresh copy of STS. No custom template, just tested with the one that comes with STS. When you click on "click to enlarge", the popup_image.php displays the template file. No other contributions used whatsoever. Any suggestions? Thanks! Quote ----------------------------------------------------------------------- Sincerely, Dr. DK Link to comment Share on other sites More sharing options...
Dr. DK Posted February 25, 2004 Share Posted February 25, 2004 Not sure what's wrong with the STS files that go into the catalog/include, but even tryed the manual change, and still no luck. :ph34r: Any suggestions? Quote ----------------------------------------------------------------------- Sincerely, Dr. DK Link to comment Share on other sites More sharing options...
Ulysses Posted February 26, 2004 Share Posted February 26, 2004 G'day, Just how "fesh" does the installation have to be, for the STS contrib to work? Or, to put it another way, what is it that needs not to have been changed since the original install? Unfortunately I have not read every single post in this 84+ page thread, but did have a good search for answers to these Qs. As this thread is still fresh and ongoing, I suppose I should also ask if the current ed., of STS actually works or are there still teething problems. Gracias amigos! Ulysses Quote Link to comment Share on other sites More sharing options...
Ulysses Posted February 26, 2004 Share Posted February 26, 2004 G'day Chris, Thanks for your suggestion. Had a look at Speedy's 11 point list, which is simple up to step 5 - after which it made no sense to me. I would need to get a php/mySQL chap to look at it. However, Speedy says "(pls understand that it was done with a clean install)", so I can only assume we would need to scrap the shop and all the work that's gone into it and start from scratch. Do you know if that's the only way to use the STS thingo? Like, dump it and start again? Surely not. Thanks Ulysses Quote Link to comment Share on other sites More sharing options...
Dr. DK Posted February 26, 2004 Share Posted February 26, 2004 Here's the fix for popup_image.php when displaying the template file instead of the picture. Find in STS_display_output.php: Find: // Override if we need to show a pop-up window $scriptname = $_SERVER['PHP_SELF']; $scriptname = getenv('SCRIPT_NAME'); $scriptbasename = substr($scriptname, strrpos($scriptname, '/') + 1); Replace with: // Override if we need to show a pop-up window $scriptname = $HTTP_SERVER_VARS['PHP_SELF']; //$scriptname = getenv('SCRIPT_NAME'); $scriptbasename = substr($scriptname, strrpos($scriptname, '/') + 1); That should solve your problem with the pop up images showing the template file! Enjoy! :D Quote ----------------------------------------------------------------------- Sincerely, Dr. DK Link to comment Share on other sites More sharing options...
marcom Posted February 26, 2004 Share Posted February 26, 2004 Hi all, is there really nobody who has problems with there forgotten password link since installing sts? tried everything but just can't find a solution.. hi oscommerce community.. I think i've got a challenge.. everything on my site finally works.. when i press the link forgotten password during login, the system asks me to fill in my e-mail adress.. But, when i fill in my emailadress i get the error : Faillure: youre emailadress does'nt exists in our database, check your emailadress. BUT when i look in my admin the emailadress is exactly the same.. also tried it with a testaccount but the same faillure.. I have this problem from the moment i have installed sts.... I,m working with oscommerce 2.2 ms2 sts 1.8 please help me with this one, really don't know were to search anymore.. already tried to install everything again, twice... thanks, Marco van Meurs (sorry for my poor english) Really need help with this one.... don't know were to look anymore. :( Quote Link to comment Share on other sites More sharing options...
Ulysses Posted February 26, 2004 Share Posted February 26, 2004 Given the length and complexity of issues covered in this 83-page thread, is it now appropriate to re-name STS, CTS - Complicated Template System? :lol: But will another new acronym add further to the confusion? :blink: Ulysses Quote Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2004 Share Posted February 27, 2004 Does anyone know how I can remove the "Product notification" box with STS? This is my right column: $cartbox $maninfobox $orderhistorybox $bestsellersbox $specialfriendbox $reviewsbox $live_support I tried to delete $maninfobox but it doesn't help. Any clue? Quote Link to comment Share on other sites More sharing options...
TheBlueEyz Posted February 28, 2004 Share Posted February 28, 2004 Hmmm.. is anybody else getting this problem? I want to change the content of the logo, that is, the $cataloglogo tag. I went into header.php and manually changed the image from 'oscommerce.gif' to my own file, 'logo.jpg'. When I print out the debug information using the STS debug printout, it says that the content of the header tag is in fact, logo.jpg. But the source code of the page reveals that it's STILL LOADING oscommerce.gif, and that is the image that is showing up. How in the heck can it be loading a different image.. IN THE HEADER.. than the image I have specified IN THE HEADER FILE?! <rips hair out> It's kind of like saying "echo 3" and have it echo "purple monkey dishwasher".. shouldn't be possible.. Quote Link to comment Share on other sites More sharing options...
TheBlueEyz Posted February 28, 2004 Share Posted February 28, 2004 Nevermind, I got it. STS moves them from header.php to sts_display_output.php. Quote Link to comment Share on other sites More sharing options...
DiamondSea Posted February 28, 2004 Author Share Posted February 28, 2004 Hmmm.. is anybody else getting this problem? I want to change the content of the logo, that is, the $cataloglogo tag. I went into header.php and manually changed the image from 'oscommerce.gif' to my own file, 'logo.jpg'. When I print out the debug information using the STS debug printout, it says that the content of the header tag is in fact, logo.jpg. But the source code of the page reveals that it's STILL LOADING oscommerce.gif, and that is the image that is showing up. How in the heck can it be loading a different image.. IN THE HEADER.. than the image I have specified IN THE HEADER FILE?! <rips hair out> I've been thinking about just removing the whole $catlogo thing and just putting it in the template as an HTML <img> tag with a link. I get more questions about $catlogo than anything else. I really only put it in "because it was there" in the OSC code. Thoughts? It's kind of like saying "echo 3" and have it echo "purple monkey dishwasher".. shouldn't be possible.. I had to laugh when I read this. For those who are sadly twisted enough to, like me, wonder "why 'purple monkey dishwasher'?" I present you with: Your Guide to Purple Monkey Dishwasher Enjoy - 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...
illusive Posted February 29, 2004 Share Posted February 29, 2004 Hello I just installed my sts onto fresh of osc and updated my configure.php file but i get this problem : Template file doesn't exist: [sTS_DEFAULT_TEMPLATE] Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory in /home/illusive/public_html/westside/includes/sts_display_output.php on line 120 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/illusive/public_html/westside/includes/sts_display_output.php on line 124 Warning: fread(): supplied argument is not a valid stream resource in /home/illusive/public_html/westside/includes/sts_display_output.php on line 124 Warning: fclose(): supplied argument is not a valid stream resource in /home/illusive/public_html/westside/includes/sts_display_output.php on line 125 Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /home/illusive/public_html/westside/includes/sts_display_output.php on line 138 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/illusive/public_html/westside/includes/sts_display_output.php on line 138 http://www.illusivecreations.com/westside/ is the addres of the site. Any Ideas would be great. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 29, 2004 Share Posted February 29, 2004 Hello I just installed my sts onto fresh of osc and updated my configure.php file but i get this problem : Template file doesn't exist: [sTS_DEFAULT_TEMPLATE] Warning: fopen(STS_DEFAULT_TEMPLATE): failed to open stream: No such file or directory in /home/illusive/public_html/westside/includes/sts_display_output.php on line 120 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/illusive/public_html/westside/includes/sts_display_output.php on line 124 Warning: fread(): supplied argument is not a valid stream resource in /home/illusive/public_html/westside/includes/sts_display_output.php on line 124 Warning: fclose(): supplied argument is not a valid stream resource in /home/illusive/public_html/westside/includes/sts_display_output.php on line 125 Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /home/illusive/public_html/westside/includes/sts_display_output.php on line 138 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/illusive/public_html/westside/includes/sts_display_output.php on line 138 http://www.illusivecreations.com/westside/ is the addres of the site. Any Ideas would be great. illusive, Did you include the following lines into your ../catalog/includes/configure.php: // 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', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); // STS: EOADD Also what version did you install. Speedy http://www.the-solutions-place.com http://www.speedy-computer.com http://www.ld.net/?sagrav Quote Link to comment Share on other sites More sharing options...
illusive Posted February 29, 2004 Share Posted February 29, 2004 Yes i did the configure.php thing and i installed the newest version of sts. Quote Link to comment Share on other sites More sharing options...
illusive Posted February 29, 2004 Share Posted February 29, 2004 Ok i fixed that error i just had to move the define statements above the database ones. however the template doesnt show up for some reason http://illusivecreations.com/westside/ Quote Link to comment Share on other sites More sharing options...
Guest Posted February 29, 2004 Share Posted February 29, 2004 Ok i fixed that error i just had to move the define statements above the database ones. however the template doesnt show up for some reason http://illusivecreations.com/westside/ It did for me. You have "17 requests since Saturday 28 February, 2004". It is a plain template that is included with STS. You will need to create your own template by using the default "sts_template.html". Speedy http://www.the-solutions-place.com http://www.speedy-computer.com http://www.ld.net/?sagrav Quote Link to comment Share on other sites More sharing options...
illusive Posted February 29, 2004 Share Posted February 29, 2004 on my computer it is only showing the os commerce one. Quote Link to comment Share on other sites More sharing options...
endorphin Posted February 29, 2004 Share Posted February 29, 2004 Hi, I'd like to say Great work to DiamondSea, an excellent OSC contribute. Is there anyway i can simply modify the layout of the boxes on STS? Cheers, Paul Quote Link to comment Share on other sites More sharing options...
TheBlueEyz Posted February 29, 2004 Share Posted February 29, 2004 Ok i fixed that error i just had to move the define statements above the database ones. however the template doesnt show up for some reason http://illusivecreations.com/westside/ If you have caching enabled in the Admin area, you won't see the changes immediately.. Disable caching and then refresh your browser. Also, in your template, you might want to use valign="top" in your left hand column, as the infoboxes are showing up faaaaar down on the left hand side. Quote Link to comment Share on other sites More sharing options...
TheBlueEyz Posted February 29, 2004 Share Posted February 29, 2004 Hi, I'd like to say Great work to DiamondSea, an excellent OSC contribute. Is there anyway i can simply modify the layout of the boxes on STS? Cheers, Paul Look in catalog/includes/boxes You'll see a php file for each box type.. You have to edit those :( I had to read the box.php class file in includes/classes though to be able to understand how to edit the file, so unless you're php savvy, it might be kind of difficult. 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.