Jump to content
Sign in to follow this  
Madman00

STS 3.0 Unwanted comments

Recommended Posts

I installed STS 3.0. I noticed that when i view source for my index.php or any page that deals with sts 3.0 the following comments are embeded in the source code of the page.

 

<!-- Page layout by Simple Template System (STS) v3.00 Beta 2 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->

<!-- Using Template File [includes/sts_templates/mysite/sts_template.html) -->

 

What file controls this. How can i remove it.

Share this post


Link to post
Share on other sites
I installed STS 3.0. I noticed that when i view source for my index.php or any page that deals with sts 3.0 the following comments are embeded in the source code of the page.

 

<!-- Page layout by Simple Template System (STS) v3.00 Beta 2 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->

<!-- Using Template File [includes/sts_templates/mysite/sts_template.html) -->

 

What file controls this. How can i remove it.

 

 

ANYONE?

Share this post


Link to post
Share on other sites
Guest
I installed STS 3.0. I noticed that when i view source for my index.php or any page that deals with sts 3.0 the following comments are embeded in the source code of the page.

 

<!-- Page layout by Simple Template System (STS) v3.00 Beta 2 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->

<!-- Using Template File [includes/sts_templates/mysite/sts_template.html) -->

 

What file controls this. How can i remove it.

 

First let me say I have not read all the documentation that comes with this contribution nor read the website support or support thread fully to see if you are allowed or not to remove this. You may want to check before doing so but that's on you. I'm still a php newbie so I'll just point out where the code is.

 

That being said here is the page and portion you are looking for below..

 

In sts_display_output.php

 

 

 // Used for debugging, please don't change
$sts_version = "3.00 Beta";
$sts_osc_version = PROJECT_VERSION;
$sts_osc_version_required = "osCommerce 2.2-MS2";

echo "<!-- Page layout by Simple Template System (STS) v$sts_version on $sts_osc_version - http://www.diamondsea.com/sts/ -->\n";

// Perform OSC version checking
if ($sts_osc_version != $sts_osc_version_required) {
 echo "STS was designed to work with OSC version [$sts_osc_version_required].  This is version [$sts_osc_version].\n";
}

$template['debug'] .= ''; // Define as blank if not already defined

 

Read the whole page and the other comments first make sure you don't remove anything you need. My best guess would be to simply delete the echo part calling the <! -- commented section --> Back up first and find out. But like I said being a newb I'm not sure if you need that echo before the comment or not so back up make the change and see if it still works. If not you can always replace your working copy. BTW that contribution is filled with contact info why not fire off an email or post to the support sections.

 

-- Mindy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×