DiamondSea Posted April 11, 2004 Author Share Posted April 11, 2004 -Header Logo. I can't seem to change it. I went into the header.php file to change it, but it still shows the oscommerce.gif logo. I changed the display option in sts_display_output.php to debug mode, and it lists the .GIF image that I want. But even with that, I'm still not seeing my image, only the oscommerce.gif image I'm having the same problem, except that I edited the sts_display_output.php file to insert my logo. I couldn't find any other file to put it in; that file was my best guess after looking through all of the files. Works fine in template output mode, but the image doesn't display (and isn't in the page source) in normal output mode. 1) How do I fix this so that my catalog logo displays in normal output mode? 2) What file should I be editing to define what certain values, such as $cataloglogo, should be? This is perplexing me HUGE, but I can't figure it out. Thanks! Matt This one confuses a lot of people. Don't bother with the whole $catlogo thing. Just put in your logo in the template file like you normally would. It's that simple! - 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...
JohnnyVegas Posted April 11, 2004 Share Posted April 11, 2004 I found out that if you set your "Images Required" to "Flase" in the admin, the header graphic disapears. Admin/Configurations/images ---> Quote Link to comment Share on other sites More sharing options...
DVBHardware Posted April 11, 2004 Share Posted April 11, 2004 I have checked the javascript to allow a popup in the display output sts file , I do not see anything wrong I think. I can realy use help on this one. http://www.oscommerce.com/forums/index.php?sho...ndpost&p=344698 Jimmy Quote I'm not a coder just a splicer. Link to comment Share on other sites More sharing options...
Xax Posted April 11, 2004 Share Posted April 11, 2004 Thanks Brian! It felt good to finally get that $cataloglogo problem out of the way :). I found a recent post that said STS is NOT compatible with Worldpay. Is this true? If so, that's really bad news, but I'd like to know before I waste any more time on my template. If it's true, are there any contributions or work-arounds available? And are there any plans for Worldpay support in the near future? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2004 Share Posted April 11, 2004 First of all thank you so much for this contribution. It has really helped me solve a problem I had with a customer's design. I do have a small issue that maybe you can direct me. First of all I am working with a clean install of 2.2ms2 and STS 1.4 I've managed to make all the major changes this client wanted without a problem, but they've come back and now asked to change to graphic layout which will require a black background. I've found the areas within the stylesheet that control the font changes I need to make, however I realized that the text inside the forms generated by create_account.php are using the smalltext class and the font color I'm using isn't appropriate for those boxes. I need to isolate that text and modify the font color to a more appropriate color once I go to the black backgrond. I've tried to create a new class in the style sheet and edit the corresponding code, with no luck. Font is still reflecting the smalltext class. What do you suggest? Thanks again for all you help in creating this contribution. Ruth in AZ Quote Link to comment Share on other sites More sharing options...
♥ozcsys Posted April 11, 2004 Share Posted April 11, 2004 MY click to enlarge on the products pages quit working and I am sure the problem is I have this <!-- start get_javascript(applicationtop2header) //--> <!-- end get_javascript(applicationtop2header) //--> instead of this <!-- 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> <!-- end get_javascript(applicationtop2header) //--> any ideas? I thought maybe it was a header tag controller issue so I removed it from the product info.php file and changed the name of the header tags.php file so STS would not see it and still the same problem. I am using 2.01 so I have the latest version. If I turn off the template and display normal output the problem goes away even with the header tag controller reinstalled. If I look at the debug info I get this $template['headcontent']--------------------------------------------------------------------------------<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>osCommerce</title><base href="http://localhost/pepper/"> <!-- start get_javascript(applicationtop2header) //--> <!-- end get_javascript(applicationtop2header) //--> The template is just not picking the info up. Well if anyone has any ideas that would be great. Thanks Quote The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
♥ozcsys Posted April 11, 2004 Share Posted April 11, 2004 I'm having the same problem, except that I edited the sts_display_output.php file to insert my logo. I couldn't find any other file to put it in; that file was my best guess after looking through all of the files. Works fine in template output mode, but the image doesn't display (and isn't in the page source) in normal output mode. 1) How do I fix this so that my catalog logo displays in normal output mode? 2) What file should I be editing to define what certain values, such as $cataloglogo, should be? This is perplexing me HUGE, but I can't figure it out. Thanks! Matt If you want it to display in both normal and template mode you probably need to change it both places. In template mode it gets the info from the display output file but in normal mode it should come from the header file. The values are set in the display output file if you look starting at around line 177 you will see where these are all defined. This is also where you can add your own $ definitions to the template. Quote The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
Xax Posted April 12, 2004 Share Posted April 12, 2004 Fantastic! If it's in the instructions, I missed it. Thanks Richard! :D Quote Link to comment Share on other sites More sharing options...
♥ozcsys Posted April 12, 2004 Share Posted April 12, 2004 I found a workaround for my problem. I added the javascript directly to the sts template file right after the $headcontent tag and it seems to work. I thought I tried doing that yesterday before I posted but if I did I somehow did it incorrectly the first time. I would still be intrested in knowing why this part of the code quit working if anyone can tell me but at least I found an easy enough workaround for it. Quote The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
DVBHardware Posted April 13, 2004 Share Posted April 13, 2004 I fixed it myself, First: I had in sts_user_code.php due to the previous lines describing to add this below this made the help popup with unnessary affiliate info that should not be there so I commented it out. // $sts_block_name = 'affiliatebox'; // require(STS_START_CAPTURE); // require(DIR_WS_BOXES . 'affiliate.php'); // require(STS_STOP_CAPTURE); // $template['affiliatebox'] = strip_unwanted_tags($sts_block['affiliatebox'], 'affiliatebox'); Second: sts_display_output.php I needed to add in shown in bold if (strpos($scriptname, "popup") !== false || strpos($scriptname, "info_shopping_cart") !== false || strpos($scriptname, "affiliate_help") !== false) { It had to be "affiliate_help" due to the fact that there is 18 help files. If you just made it "affiliate" it will change the whole page content to normal output. In a previous OSC-Affiliate 1.09 there was only "popup_affiliate_help.php" which would have done the same. It took me 3 days to figure it out since nobody replyed, I could not write basic 101 php but a little common sence and research goes a long way. To bad I wasted 3 days. Quote I'm not a coder just a splicer. Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 I have installed the latest versions of both osc and sts . Everything works perfectly up to the point of setting up the multiple templates, mainly the product_info.php.html template. It is installed in my sts_templates folder. Everything matches perfectly, yet it will not use that template. Anybody else having this problem? Thanks, Dave Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Dave, you need to create a corresponding 'product_info.php' file as well. Just duplicate your 'index.php' file and rename it. It works, promise: http://www.rogersnowsocks.com/product_info...?products_id=29 ;) Quote Link to comment Share on other sites More sharing options...
JohnnyVegas Posted April 13, 2004 Share Posted April 13, 2004 I'm looking for a dynamic horizontal drop down menu that works with STS and the categories output of OsC. Does anyone have any info on a workable contribution of one, or some experience of examples of a working one? This is holding up my whole site. Any help would be great. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 (edited) Nice Site Joshua! Thanks for the reply. Are you talking about the html files or the actual php files. And what folder does this go in? I have a product_info.php in /catalog Does it need to be somewhere else? Dave Edited April 13, 2004 by bythevineyard Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Dave, you need to create a corresponding 'product_info.php' file as well. Just duplicate your 'index.php' file and rename it. It works, promise: http://www.rogersnowsocks.com/product_info...?products_id=29 ;) I have version 2.01 and the template is not working ? Do you change other thing in the files ? Thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 No, I just layout the 'page.php.html' file and save it in the sts_templates folder. Then create a corresponding 'page.php' file and put it in root (i.e. /catalog/). I'm using 1.8 right now, and I'm not sure what all has changed... Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Have done those things..... I have product_info.php in /catalog and product_info.php.html in /catalog/includes/sts-templates. But my product pages are still using the template saved in /catalog/includes/sts_template.html (FLASH BULB!) If I want to use multiple templates do I have to get rid of the sts_template.html and use /sts-templates/index.php.html instead??? I know there is something I am missing or doing wrong that is simple.....grrrr Joshua-->> What html file is powering your main shopping page? Thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Well that wasn't the correct solution. The sts_template.html has to be there..... Does anybody have STS 2.1 working properly with the product_info pages? Thanks, Dave Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 bythevineyard - I created an 'index.php.html' file to run the homepage. 'sts_template.html' runs everything else that I haven't created an individual page for. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Ahhhh You aren't using the product_info.php.html from the newest release then? How did you customize your individual product pages ? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Okay. New Question on STS 2.01. Does anybody have a working install that utilizes the product_info tags instead of the $content tag??? (am wondering if I need to take a couple steps back and go to the version everybody else is using successfully.) Thanks, Dave Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Need help. After installing 2.1 today, I have been reciving some error messges. ____________________________________________________________________ Template file doesn't exist: [sTS_DEFAULT_TEMPLATE] Warning: fopen("STS_DEFAULT_TEMPLATE", "r") - No such file or directory in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 120 Can't open Template file: [sTS_DEFAULT_TEMPLATE] Warning: stat failed for STS_DEFAULT_TEMPLATE (errno=2 - No such file or directory) in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 124 Warning: fread(): supplied argument is not a valid File-Handle resource in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 124 Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 125 Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 138 Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 138 Fatal error: Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear:/usr/share/phpwhois-3.0.6') in /home/httpd/vhosts/vivhost.nl/httpdocs/webstore/includes/sts_display_output.php on line 138 _______________________________________________________________ It seems to me that it can't find the sts_template.html, but this one is on the server. Is there anyone who has experianced the same? or am just to.... :blink: not to understand. Help.... :) EMFGLOBAL Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Help!! :( sts_display_output.php is not picking up my sts-templates/product_info.php.html file for custom product diplays Any fixes? Dave Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2004 Share Posted April 13, 2004 Found it finally!! I will quit being a whiner now.... If you install 2.01 and the fix for popups you have to go back in to sts_display_output and make it set the $scriptbasename variable. Add the three commented out lines back in, before the fix.... This makes it work perfectly. Thanks. Dave Quote Link to comment Share on other sites More sharing options...
Sapro Posted April 14, 2004 Share Posted April 14, 2004 What about templates that use php includes (ie banner / random image)? The sts_template.html ignores my php and so I have a nice blank spot where my image goes. Here's the working version: http://www.bridalworkshop.com/indexnew.php The image directly under the logo is a rotating banner (click refresh a couple times and it will change). But to make this work in the ecommerce section I have to manually enter HTML to a static image. Is there an easy way around this that I'm not thinking of? http://www.bridalworkshop.com/shop/ 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.