Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS - making template work


leolimasa

Recommended Posts

Hello all,

 

I have set up sts template system successfuly on my server. I wrote a simple sts_template.html file that looks like this:

 

<html>

<body>

<p>test page</p>

</body>

</html>

 

When I turn "use template" to "true" it works great, but only on Opera browser. Firefox and Internet Explorer just display a blank screen. Tried looking at the page source, and its blank too. I tried everything i could imagine, from looking at apache logs to telnetting to my server and making the HTTP request myself. The server sends the HTML back as it should, but somehow IE and Firefox cannot display it, only Opera. And it only happens when "use templates" is set to "true".

The regular OsCommerce without sts template enabled works fine.

 

Does anyone have any ideas on what is going on here?

 

best regards,

Link to comment
Share on other sites

Hello all,

 

I have set up sts template system successfuly on my server. I wrote a simple sts_template.html file that looks like this:

 

<html>

<body>

<p>test page</p>

</body>

</html>

 

When I turn "use template" to "true" it works great, but only on Opera browser. Firefox and Internet Explorer just display a blank screen. Tried looking at the page source, and its blank too. I tried everything i could imagine, from looking at apache logs to telnetting to my server and making the HTTP request myself. The server sends the HTML back as it should, but somehow IE and Firefox cannot display it, only Opera. And it only happens when "use templates" is set to "true".

The regular OsCommerce without sts template enabled works fine.

 

Does anyone have any ideas on what is going on here?

 

best regards,

You need to have at least the following:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html $htmlparams>
<head>
<meta http-equiv="Content-Language" content="en-us">
<!--$headcontent-->
 <link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<p>This is a blank template. Replace this text with your content. Enjoy! 
Template by: Bill Kellum</p>
</body>
</html>

You are missing the above lines in your template to make it work.

 

Hope this helps,

 

Bill Kellum

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...