Jump to content

VikezFan

Members
  • Content count

    13
  • Joined

  • Last visited

  1. Are there any issues using STSv4.6_1 with OsCommerce 2.3.1?
  2. VikezFan

    [Contribution] STS v4

    No problem, not rude at all. However, it is not a problem with SSL. No SSL on my local server. It is a path problem. I will use XXXXX for my local site name. My site is at http: //localhost/XXXXX/oscommerce/catalog/. Here is the relevant part of my configure.php file: define('HTTP_SERVER', 'http://localhost/XXXXX/'); define('HTTPS_SERVER', 'http://localhost/XXXXX/'); define('ENABLE_SSL', false); define('DIR_WS_HTTP_CATALOG', 'oscommerce/catalog/'); define('DIR_WS_HTTPS_CATALOG', 'oscommerce/catalog/'); Therefore, substr(((($request_type == 'SSL') ? DIR_WS_HTTPS_CATALOG : DIR_WS_HTTP_CATALOG) . STS_TEMPLATE_DIR),0,-1); returns a path of: oscommerce/catalog/includes/sts_templates/blue_hash/style.css Couple that with the fact that the starting point is http:// localhost/XXXXX/oscommerce/catalog/ appended with the above relative path would make: http:// localhost/XXXXX/oscommerce/catalog/oscommerce/catalog/includes/sts_templates/blue_hash/style.css It is interesting in the fact that it has no problem finding the template only the template's stylesheet. I am not trying to be difficult, but everything on the entire site except this path works. I am just trying to get this running so I can move on to customizing the template.
  3. VikezFan

    [Contribution] STS v4

    I have figured out why I was having problems with the STS template path. After trying a few things and examining the page source I came up with the following. Since I am on a testing server, my catalog is not my root. If it were, I would not have had a problem. Originally the definition for templatedir in sts_inc/general.php was: $sts->template['templatedir'] = substr(((($request_type == 'SSL') ? DIR_WS_HTTPS_CATALOG : DIR_WS_HTTP_CATALOG) . STS_TEMPLATE_DIR),0,-1); which since my DIR_WS_HTTP_CATALOG is oscommerce/catalog/ gave me the following result in the source code: <link rel="stylesheet" type="text/css" href="oscommerce/catalog/includes/sts_templates/blue_hash/style.css" /> Since my index.php is in the oscommerce/catalog/ folder, the path is incorrect. When I change the line to read: $sts->template['templatedir'] = substr(STS_TEMPLATE_DIR,0,-1); it gives me the correct path as follows: <link rel="stylesheet" type="text/css" href="includes/sts_templates/blue_hash/style.css" /> All the templates work correctly for me now. I have no idea why I have these problems and others don't. Unless I am mistaken, since it is using a relative path to style.css it should catch whether it is http or https thus making ($request_type == 'SSL') ? DIR_WS_HTTPS_CATALOG : DIR_WS_HTTP_CATALOG) unnecessary. Correct me if I am wrong.
  4. VikezFan

    [Contribution] STS v4

    I know this has been brought up before, but I am having problems with template paths using STS 4.6. I am trying to get this to work on my localhost. The templates I have are using $templatedir$ for their path and my installation is not finding them. I noticed that $templatedir$ uses DIR_WS_HTTP_CATALOG as part of its path. If I hard path DIR_WS_HTTP_CATALOG i.e. http: //localhost/... then it works for the templates but messes up all of the links within the site. I want to be able to use $templatedir$ so that I can migrate seamlessly from the desktop to the server. Any ideas? On a side note, I noticed a lightbox.css stylesheet being called out on some templates. What is this for?
×