Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

Glad you took the time to find the correct STS thread. Wasn't that easy?

 

  1. Usually, with these types of issues, it is most likely that your site's configure.php files are not setup correctly (includes/configure.php and admin/includes/configure.php).
  2. Another possible reason, you do not have the correct permissions setup on your images folder.
  3. And lastly, make sure you didn't make the rookie mistake of turning on "Use Search Engine Safe URL's". This should never be turned on as it is still in development. If you want this option, you will need to install one of the SEO contributions.

 

 

The site works fine in IE when STS is set to false. When I set STS to true (doesn't matter what template I am using) the images on all product pages break in IE. The images work in Opera and Firefox though.

Share this post


Link to post
Share on other sites

Well I can't get the site working properly using STS with IE. SO, does anyone know of any easy way to change the layout without STS?

Share this post


Link to post
Share on other sites

Well I can't get the site working properly using STS with IE. SO, does anyone know of any easy way to change the layout without STS?

 

 

The problem is not STS or IE, but with your coding in your template or CSS.

 

This is why STS comes with sample templates. Use them and get aquainted with STS and osCommerce and then create your own templates.


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites

The problem is not STS or IE, but with your coding in your template or CSS.

 

This is why STS comes with sample templates. Use them and get aquainted with STS and osCommerce and then create your own templates.

 

 

If that were so, the stock templates should work.

Share this post


Link to post
Share on other sites

They do, as I am viewing them now in IE. Hmmmmm.. maybe something else on your PC or your setup is causing the problem?

 

 

I thought that too so I had someone else loook at the site in IE and they couldn't see the images on that page either.

Share this post


Link to post
Share on other sites

this is a reply to my original thread (http://forums.oscommerce.com/topic/362514-sts-content-not-showing/), but as requested by the starter of this topic, I am moving the discussion in here! :)

 

What version of osC are you using?

Currently using osC MS2 (including some patches applied manually)

 

Did you upload all of the files within the STS folder as well as all of the files from the RC2 folder?

I uploaded all the new files from the MS2 folder, and made the changes to the existing files manually.

 

Did you keep the folder structure intact?

I kept the entire folder structure intact and used all the default STS and osC folder names.

 

Did you try using STS using the default settings (other than the enabling the Default module by clicking on the Install button of course)?

After installing STS, I first tried the default settings with one of the sample templates; right from the start I have not seen any $content being displayed, other than what I posted in my previous thread.

 

If no $content would show up altogether, I would expect I had done something wrong editing the files, but since some content does show (albeit nothing usable), I suspect something else has gone wrong.

 

I also tried using the debugging function of STS, but couldn't detect anything strange. No errors/exceptions/warnings are thrown...

 

As I mentioned before, everything is working as expected, it's just that all pages are empty since the $content variable does not contain the expected code.

 

Any suggestion is welcome... :)

Edited by Netson

Share this post


Link to post
Share on other sites

Hello all...

 

I have a question. Using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc) it does not carry the osCid= string with it. Therefore it loses the session, logs the user out and deletes the cart.

 

Does anyone know why or what settings I should check?

 

Thanks!

Share this post


Link to post
Share on other sites

Hello all...

 

I have a question. Using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc) it does not carry the osCid= string with it. Therefore it loses the session, logs the user out and deletes the cart.

 

Does anyone know why or what settings I should check?

 

Thanks!

 

Yes, you need to make sure you have created your links properly (to retain the session ID).

See the following thread in this STS Forum:

 

Creating Page Links


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites

this is a reply to my original thread (http://forums.oscommerce.com/topic/362514-sts-content-not-showing/), but as requested by the starter of this topic, I am moving the discussion in here! smile.gif

 

 

Currently using osC MS2 (including some patches applied manually)

 

 

I uploaded all the new files from the MS2 folder, and made the changes to the existing files manually.

 

 

I kept the entire folder structure intact and used all the default STS and osC folder names.

 

 

After installing STS, I first tried the default settings with one of the sample templates; right from the start I have not seen any $content being displayed, other than what I posted in my previous thread.

 

If no $content would show up altogether, I would expect I had done something wrong editing the files, but since some content does show (albeit nothing usable), I suspect something else has gone wrong.

 

I also tried using the debugging function of STS, but couldn't detect anything strange. No errors/exceptions/warnings are thrown...

 

As I mentioned before, everything is working as expected, it's just that all pages are empty since the $content variable does not contain the expected code.

 

Any suggestion is welcome... smile.gif

 

Check your installation.

 

  1. Be sure you have indeed uploaded the contents of the "STS" folder to the correct location on your server, keeping the file/folder structure intact (meaning, do not upload the STS folder and everything in it but only upload everything inside of the STS folder.
  2. Either upload everything in the RC2 folder or make the changes to each file manually. If you choose the manual route, save yourself some time and pain by using a good file comparison tool such as Beyond Compare or WinMerge to merge in the changes manually, so as to make sure the modified code is going to the correct location.

Once the above is completed, click on the "install" button for the STS Default module in the admin. Keep all of the default settings and then test your shop.

 

 

 


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites

Hello - I have a question that seems relatively simple but I can't figure it out and can't find anything in this forum to solve it. Sorry if its obvious but I'm relatively new to this.

 

I want to take the links in the $infobox and separate them in the footer of a template. I can't find a variable for them. So I assumed I could create one - basically if I can find the code where the variables are created/executed, copy and change the link. Then use $shipping instead of $infobox. Seems logical but can't follow it in the code. I have been through all the php modules and can't find them.

 

How would I create a variable for Shipping & Returns, Privacy Notice, etc. or is there an easier way of putting these horizontally in a foother without the box heading?

 

Thanks in advance for your reply.

 

Steve

Share this post


Link to post
Share on other sites

I want to take the links in the $infobox and separate them in the footer of a template. I can't find a variable for them. So I assumed I could create one - basically if I can find the code where the variables are created/executed, copy and change the link. Then use $shipping instead of $infobox. Seems logical but can't follow it in the code. I have been through all the php modules and can't find them.

 

How would I create a variable for Shipping & Returns, Privacy Notice, etc. or is there an easier way of putting these horizontally in a foother without the box heading?

 

You have various ways to go

 

1. You use the infobox. First thing is you go to file includes/boxes/information.php and remove the linebreaks <br>. Then you will want to make a template for your infobox, this you call infobox_information.php.html and you place it into the "boxes" folder of your sts template folder. The simpliest way is to have just the $content tag thre, no header no nothing. Last, you place the infobox tag to your template wherever you like.

 

2. You create a tag for each page, as your question. You can look how it is done in file includes/modules/sts_inc/general.php. For example a link to the login page would look like this

$sts->template['login'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '>' .  HEADER_TITLE_LOGIN . '</a>';

 

3. You make the links directly in your template, like this

<li><a href="<?php echo tep_href_link(FILENAME_PRIVACY, '', 'NONSSL'); ?>"><?php echo(LINK_PRIVACY); ?></a></li>

. Of course you need to put it into your own table or div structure + maybe some additional css. If you have your store just in one language, then you dont need a special text definition like in the example, but you can replace <?php echo(LINK_PRIVACY); ?> with just "privacy" or whatever.

 

There are many posts about this and similar issues already in this topic, here are some useful links

Share this post


Link to post
Share on other sites

You have various ways to go

 

1. You use the infobox. First thing is you go to file includes/boxes/information.php and remove the linebreaks <br>. Then you will want to make a template for your infobox, this you call infobox_information.php.html and you place it into the "boxes" folder of your sts template folder. The simpliest way is to have just the $content tag thre, no header no nothing. Last, you place the infobox tag to your template wherever you like.

 

2. You create a tag for each page, as your question. You can look how it is done in file includes/modules/sts_inc/general.php. For example a link to the login page would look like this

$sts->template['login'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '>' .  HEADER_TITLE_LOGIN . '</a>';

 

3. You make the links directly in your template, like this

<li><a href="<?php echo tep_href_link(FILENAME_PRIVACY, '', 'NONSSL'); ?>"><?php echo(LINK_PRIVACY); ?></a></li>

. Of course you need to put it into your own table or div structure + maybe some additional css. If you have your store just in one language, then you dont need a special text definition like in the example, but you can replace <?php echo(LINK_PRIVACY); ?> with just "privacy" or whatever.

 

There are many posts about this and similar issues already in this topic, here are some useful links

 

 

Thanks Multimixer - I thought about this before your reply and just went the add link to the template route. I will try the mod in item 1 as that seems easier over the long haul.

 

Thanks again for the information.

 

Steve

Share this post


Link to post
Share on other sites

Hello

 

I've been experimenting with STS for a new site and I'm running my templates around in circles trying to solve what is probably a simple design issue.

 

I have STS 4.6 w/ Enchanced Specials, Simple Multi Images, and Fancy Tag for STS working perfectly. I am evolving a free template into a "multi" template with header/footer/sidebar/content pages using CSS.

 

My problem occurred when I was following a click stream through our "catalog":

 

Home > Pools > Inground > Accessories

 

Within the Accessories Sub-Catergory I have both products and other sub-categories (yes the logic is flawed, but..) I would like to display the sub-categories at the top and the products below.

 

I would also like to alter the layout of any sub_category pages with sub_categories within them... (wow that was painful)

 

I though that creating an index.php_X.html and index.php_X_X.html would solve this, but that only changes the product_info pages...

 

Please shed some light on this subject or maybe I'm simply not reading the Users Manual/Beginners Tut correctly...

 

thanks

-jt

Share this post


Link to post
Share on other sites

Hello All,

 

I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

http://www.nasawear.com/apparel.php

When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

Thanks,

-Luc


My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Share this post


Link to post
Share on other sites

Hello All,

 

I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

http://www.nasawear.com/apparel.php

When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

Thanks,

-Luc

 

Well, first of all why have you got a file in oscommerce called appareal.php?

My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

Share this post


Link to post
Share on other sites

Hi all,

 

I have a question, I'm trying to integrate the following contrib on my OSC which of course runs STS:

Ajax attributes images

 

What it does is simply linking an option to a an image, so that by slecting the corresponding option you can see a corresponding image in realtime.

 

Unfortunately, when the ajax call happens in product_info.php the result given is not the content I'm supposed to retrive but the HTML code of the STS template.

 

I suppose the two contributions have issues because of this code:

 

    <script language="javascript">

function createRequestObject() {

   var req;

   if(window.XMLHttpRequest){
	  req = new XMLHttpRequest();
   } else if(window.ActiveXObject) {
	  req = new ActiveXObject("Microsoft.XMLHTTP");
   } else {
	  req = NULL;
	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
   }

   return req;

}

   var http = createRequestObject();

   function sendRequestSearch(iets) {

      http.open('get', 'ajaximage.php?zoek='+iets);
      http.onreadystatechange = handleResponseSearch;
      http.send(null);

   }

   function handleResponseSearch() {




      if(http.readyState == 4 && http.status == 200){
         if(http.responseText) {
            document.getElementById("zoek_resultaten").innerHTML = http.responseText;
         } else {
            document.getElementById("zoek_resultaten").innerHTML = "   ";
         }

      } else {
         document.getElementById("zoek_resultaten").innerHTML = "   ";
      }

   }

</script>   

 

 

Any work around suggested?

 

thanks!

Share this post


Link to post
Share on other sites

Well, first of all why have you got a file in oscommerce called apparel.php?

My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

 

I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

 

- Luc


My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Share this post


Link to post
Share on other sites

I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

 

- Luc

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

Share this post


Link to post
Share on other sites

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

 

Thanks for that information, but I have a few more questions.

 

Would it be possible to bring the page I created and put it in the index file in the oscommerce folder or would that just mess everything up more? Secondly, would I be able to use the "Content Outside OSC" to put all of the content that you would normally find inside OSC on to the page I created to match my homepage and then use sts to change the look of the boxes to match my page? And finally does this mean sts is strictly for changing the look of the original OSC store and images?

 

- Luc


My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Share this post


Link to post
Share on other sites

.... :)

You're wrong...

 

STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

 

You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

Content Outside OSC

 

 

 

Now, would somebody answer also my question please? :)

 

I just put that contribution into my apparel page and all I got were error messages, I don't know what I did wrong, I followed the instructions, whitch were not very helpful and I did not work. This is the page: http://www.nasawear.com/apparel.php Does any one have any clue to why I am having all these problems?

 

- Luc


My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Share this post


Link to post
Share on other sites

Hello,

 

The front end of my store is working fine, but my admin tool is running very slowly. The tech support representative at my web hosting service said the following errors were showing on the server:

 

[sat Aug 14 02:47:02 2010] [error] [client 75.142.190.21] File does not exist: /home/lisassti/public_html/admin/includes/javascript/tiny_mce/plugins/codeprotect, referer: http://lisasstitchingpost.com/admin/categories.php?cPath=17

 

[sat Aug 14 02:47:02 2010] [error] [client 75.142.190.21] File does not exist: /home/lisassti/public_html/admin/includes/javascript/tiny_mce/plugins/ibrowser, referer: http://lisasstitchingpost.com/admin/categories.php?cPath=17

 

He said I should share the above errors with those of you on the OsC community forums and see if you could give me any directions that he might be able to assist me with.

 

Thank you in advance,

Lisa

Share this post


Link to post
Share on other sites

I must be a complete NOOB.

 

I've read the docs and everyone seems to get this up and running. I can not seem to get it right.

 

I make the changes to the sts_template.html and when I log into my filemanager and look that file, i can see all the changes I've made.

 

BUT when I go to the site, there are NO changes. It is still the default sts template.

 

YES, I've gone through and enabled the module from the oscommerce admin site. Yes, I've reloaded the store from scratch and followed the directions to a T ...okay so maybe I haven't because it STILL DOESN"T work! aRRRGGGgggHHHHHh

 

Any clues? I've only been able to modify the logo by going through and uploading my own image and naming it store_logo.png

 

grrr please please PLEASE someone help me

 

thanks

Share this post


Link to post
Share on other sites

I must be a complete NOOB.

 

I've read the docs and everyone seems to get this up and running. I can not seem to get it right.

 

I make the changes to the sts_template.html and when I log into my filemanager and look that file, i can see all the changes I've made.

 

BUT when I go to the site, there are NO changes. It is still the default sts template.

 

YES, I've gone through and enabled the module from the oscommerce admin site. Yes, I've reloaded the store from scratch and followed the directions to a T ...okay so maybe I haven't because it STILL DOESN"T work! aRRRGGGgggHHHHHh

 

Any clues? I've only been able to modify the logo by going through and uploading my own image and naming it store_logo.png

 

grrr please please PLEASE someone help me

 

thanks

 

Hello and welcome to osCommerce RC2a and STSv4.6. Sorry to see that you are having problems right at the start.

 

  • Be sure you are indeed uploading the modified template back onto your server in the same location.
  • Be sure you have the correct template set selected that you have made the modifications in (the folder where this modified template resides).
  • If the template set is using a index.php.html template, then you would need to modify that template as well.
  • If all esle fails, refresh the cache in your browser as you may be viewing an old cached page of your site. Try viewing your site from a different computer to see for sure.

Hope this helped,

 

 

 

 


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

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

×