Jump to content
DiamondSea

[contribution] Simple Template System (sts)

Recommended Posts

hi

 

yet i tried the original Milestone 2.2 , but it isn?t transparent like i thought.

 

perhaps there is someone who explain me where i must do changes in osc - than while working, i will write it down and we can post it to the contrib.

 

Like : putting osc in an iframe and make the background-color transparent

 

;) or something like that

 

there are also the problems of ssl to be solved,

 

I?would be glad, if there is someone professional, who can help me.

 

many greetings

 

carsten

Share this post


Link to post
Share on other sites

Hi

 

I tried a bit for myself

 

and with background: transparent in the stylesheet.css I get it work in IE.-great.

 

But nevertheless, there is still the problem with ssl.

 

a nice day

 

carsten

Share this post


Link to post
Share on other sites
after installing this i get an internet explorer error on each page

 

------------------------------------------------------------------

Line: 2

 

Char: 1

 

Error: Syntax error

 

Code: 0

 

URL: http://www... ( What evere page is being viewed )

-------------------------------------------------------------------

when i switch to $display_normal_output the problem is gone.

 

any ideas what can be causing this.

 

Cheers

Craig

 

 

In .../includes/sts_templates/*/sts_osc_javascript.js remove the first and last lines from the file:

 

<script language="javascript"><!--

 

from the beginning and

 

--></script>

 

from the end.

 

That will prevent the error messages.

 

This will be fixed in the next release.

 

- Brian


Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://forums.oscommerce.com/index.php?showtopic=58541

Share this post


Link to post
Share on other sites
In .../includes/sts_templates/*/sts_osc_javascript.js remove the first and last lines from the file:

 

<script language="javascript"><!--

 

from the beginning and

 

--></script>

 

from the end.

 

That will prevent the error messages.

 

This will be fixed in the next release.

 

  - Brian

 

 

Thanks :D

 

 

 

 

one more question, how to i set a different product template to

 

catalog/product_info.php?cPath=21&products_id=30

 

cheers

Craig

Share this post


Link to post
Share on other sites

:blush:

 

 

4) product_info.php.html

 

This is the generic product_info template.

 

5) product_info.php_c???.html

 

This lets you set a product_info template by category (note the "c" before the "???"). ??? should be replaced by a category id or cPath.

 

6) product_info.php_???.html

 

This lets you set a product_info template by product id. ??? should be replaced by the product id for the item.

 

:blush:

 

Just read the above post

Share this post


Link to post
Share on other sites

when using a template the select options are stacked ontop of eack other with no space seperating them like in pic A how can i get them to be dispayed normally like in pic B

 

ab.gif

 

cheers

Craig

Share this post


Link to post
Share on other sites

Hello Brian,

 

thank you for your answer.

I tried out everything you wrote and installed even the beta 2 Version.

 

But still? I cant get the images ore backgrounds displayed.

 

Using Frontpage as a Editor is showing me everything correct.

But displaying http://myserver/mypath/catalog is showing me the table in the correct settings but without any images. Setting only the background colour is been shown.

 

I am using <td> <img src="/images/Header_links.jpg" width=361 height=122></td>

for images (shown is the known red X in the specified width and height)

and

<td background="/images/Header_links.png" width=352 height=122 nowrap></td>

for the background images (shown is just a white empty field in the width and height I specified).

 

Within the Dreamweaver MX 2004 it is shown correct.

 

What else might be wrong?

 

I know that those questions must be annoying for you all but I really cant find the problem.

I design Themes for static and dynamic (phpnuke, 2fVKP, ?) pages for quite a few years now without having so much difficulties. That?s why it is giving me such a headache. Missing something in front of your eyes... grrrrrrr

 

When there is someone out there who is willing to contact me online to help me get through that, here?s my messenger: galpathfinder@hotmail.com

 

Thank you all for your patience.

 

Juergen

Share this post


Link to post
Share on other sites

Is it posible to set the Atributes (select options)

 

so the is a description between them

 

example:

 

 

Text about this option, blah blah blah..

________________

|_____________|_|

 

Text about option 2, blah blah blah

blah blah blah blah blah blah blah

blah blah blah blah blah

________________

|_____________|_|

 

Hope you get what i mean,

 

Thanks

Craig

Share this post


Link to post
Share on other sites
I cannot seem to get the "click to enlarge" to work. I think there might be a fix out there, can anyone help?

 

http://signature-diamonds.com/ecommerce/os...&products_id=39

 

Please Help

Moez.

 

mcseay just pointed out a bug in the STS3beta2 templates:

 

I noticed the product_info.php.html file contains an absolute link in the "popupWindow" javascript call.

 

I changed:

<a href="java script:popupWindow('http://sts.diamondsea.com/sts3/popup_image.php?pID=$productsid')">

 

to:

<a href="java script:popupWindow('popup_image.php?pID=$productsid')">

 

and it is working.

 

This should fix the problem.

 

This is something that probably everybody will need to fix until the next version goes up. Sorry I missed this one!

 

- Brian


Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://forums.oscommerce.com/index.php?showtopic=58541

Share this post


Link to post
Share on other sites

Hello, thank you so much for this contribution!!!

 

Forgive me for not reading all 120+ pages in this thread, I started at the beginning but figured alot of that stuff wasa out of date.

 

I'm trying to figure out how to modify the html output of each of the boxes. Can the STS do this or is there another way to do so?

 

Thanks!

Share this post


Link to post
Share on other sites
The installation instructions are pretty much the same, except the layout of the template files has changed a bit.

 

Best and easiest way to install: 

 

1) Install Clean MS2.2 version

2) Test and see if it works

3) Go into /catalog/includes (or whatever you called it)

4) Extract all the STS3 files from the ZIP file, preserving the directory structure.

5) Copy the define statements from the end of configure-SAMPLE.php to your working configure.php file

6) Test and see if it works

7) Done.

 

You can then start playing with the templates.

 

I recommend creating/modifying your templates in this order, and one at a time:

 

1) sts_templates.html .........

 

 

 

I know I am missing something painfully obvious here, but I've followed the install instructions. When you say "test" are you referring to bringing up the sts_template.html or the current front page to the store?

 

When I bring up the sts_template.html from a brower, I none of the tags are converted. Everything is displayed as though there was no server-side processing on them. So I see...

 

$catmenu

 

$categorybox

 

$manufacturerbox

 

$whatsnewbox

 

$searchbox

 

$informationbox

 

...in the left column.

 

I'm sure I missed something obvious, but I cannot tell what it is. I've uninstalled and reinstalled.

 

Might it have something to do with the fact that my hosting provider installs oscommerce through CPANEL?

Share this post


Link to post
Share on other sites
I know I am missing something painfully obvious here, but I've followed the install instructions.  When you say "test" are you referring to bringing up the sts_template.html or the current front page to the store?

 

When I bring up the sts_template.html from a brower, I none of the tags are converted.  Everything is displayed as though there was no server-side processing on them.  So I see...

 

$catmenu

 

$categorybox

 

$manufacturerbox

 

$whatsnewbox

 

$searchbox

 

$informationbox

 

...in the left column.

 

I'm sure I missed something obvious, but I cannot tell what it is.  I've uninstalled and reinstalled.

 

Might it have something to do with the fact that my hosting provider installs oscommerce through CPANEL?

 

 

DUH... told you.

 

Since my hosting service doesn't give me a shell, I have to rely on either FTP or cpanel. I opted for cpanel and unzipped it there. Unfortunately, it didn't overwrite the files in the includes folder.

Share this post


Link to post
Share on other sites

Hi there need some help with an STS Design am trying to setup but having a few problems:-

 

1. The Boxes and Header backgrounds have dissapeared

- how do I get them back?

 

2. Click to enlarge doesnt work (tried the bug fix in contrib section).

 

I also added in Admin Controled Info boxes, but cant get STS to recognise it, how do I add it in so I can display it in the template.

 

The website can be seen at WEBSITE, and other feedback would be nice as well thanks

 

I know the box headers etc should have something to do with the stylesheet but I have not touched it so dont know why this has happend.

 

Thanks in Advance

Edited by chrism

Share this post


Link to post
Share on other sites

Have been trying for another day and still cant get this Prob Sorted. I have been through almost all this forum post (all 100 odd pages), and tried adding int he Code to my files to get the click to enlarge function working but cant do it - there must be something I am missing.

 

I have also tried changes the Stylesheet to get the boxes back with no success.

 

Can someone help, I will post any files required so that you can check robs I may have missed

 

Thanks

Share this post


Link to post
Share on other sites

Hi Brian.

 

I love the idea of this contribution, but I'm having trouble getting it to work. I've installed a fresh version of OSC and followed your instructions for installing the latest version of STS. I edited the configure.php file in /includes. When I pull up my site I get the generic page with broken images. Also, when I click a link the URL is http://www.simplycleshaaromatics.com/home/path to catalog/index.php?cPath=3, which is a page not found.

 

I have included the last few lines from configureSample in the configure file and it doesn't seem to be working correctly.

 

I have my catalog install on the root directory. Does this matter?


Thanks!

Clesha

Share this post


Link to post
Share on other sites
Hi Brian.

 

I love the idea of this contribution, but I'm having trouble getting it to work.  I've installed a fresh version of OSC and followed your instructions for installing the latest version of STS.  I edited the configure.php file in /includes.  When I pull up my site I get the generic page with broken images.  Also, when I click a link the URL is http://www.simplycleshaaromatics.com/home/path to catalog/index.php?cPath=3, which is a page not found.

 

I have included the last few lines from configureSample in the configure file and it doesn't seem to be working correctly.

 

I have my catalog install on the root directory.  Does this matter?

 

 

Disregard the last post. It's working now. I did a clean install again and downloaded v.3. For some strange reason, I downloaded v. 1.2 the 1st time which didn't have all the necessary files.


Thanks!

Clesha

Share this post


Link to post
Share on other sites

Is the Simple Template System (STS) the best choice in the osCommerce contribution set for graphic designers that are looking to design a stunning-looking osCommerce site?

 

Here are some of the things that would be ideal for us:

 

1. The ability to design different appearances for the home page and secondary pages. Does osCommerce or STS allow for different templates based on where in the shopping cart experience the visitor to the site is? Any help you can provide to help us understand this fundamental point will be greatly appreciated.

 

2. For any given template, the ability to integrate Flash, Javascript, and HTML to give the user a media-rich experience.

 

3. For any given template, the ability to design the page according to what the graphic artists would like us to make the site look like. In an ideal world, we could design sites with CSS (e.g., like csszengarden). Can you give us an idea as to how much design freedom we have with osCommerce and STS?

 

Thanks for any feedback you can provide.

 

Regards,

Steve Amerige

Share this post


Link to post
Share on other sites

I have the template up and running and noticed a new problem: loading V-E-R-Y S-L-O-W-L-Y.

 

Is there a way to fix this? The site would load fine before I loaded BTS.


Thanks!

Clesha

Share this post


Link to post
Share on other sites

Hi there Steve!

 

Is the Simple Template System (STS) the best choice in the osCommerce contribution set for graphic designers that are looking to design a stunning-looking osCommerce site?

 

Depends on who you talk to but, yes, I think so.

 

1. The ability to design different appearances for the home page and secondary pages.  Does osCommerce or STS allow for different templates based on where in the shopping cart experience the visitor to the site is?  Any help you can provide to help us understand this fundamental point will be greatly appreciated.

 

STS is a wrapper to osC functions and will let you apply a different look to the homepage, a category, a product page or across entire categories, subcats and product pages included.

 

2. For any given template, the ability to integrate Flash, Javascript, and HTML to give the user a media-rich experience.

 

Yes. YMMV though depending on exactly what you'd like to do though. Displaying category names or products automagically in Flash may (will) prove a challenge.

 

3. For any given template, the ability to design the page according to what the graphic artists would like us to make the site look like.  In an ideal world, we could design sites with CSS (e.g., like csszengarden).  Can you give us an idea as to how much design freedom we have with osCommerce and STS?

 

Yes. And no. Since STS just wraps functions, boxes and such would require some love applied to them. osC is almost entirely built from inlined html so a cssZenGarden layout will require a LOT of work stripping tables. Many have tried. Few have succeeded :)

 

But you can achieve almost anything as it IS just php. If you're going to dig that far into the source you may not need STS for very much by the time you're done. Of course the only way to know for sure is to get it installed and evaluate.

 

Hope that helps,

 

Iggy


Everything's funny but nothing's a joke...

Share this post


Link to post
Share on other sites

Hi Iggy,

 

Thanks for your substantive reply! Your comment that one can have separate templates for the various positions of the hierarchy is especially heartening. That will probably work for us. And, I suppose we can just edit the templates and splice together Photoshop (ImageReady) images to make the page look like an artist created it.

 

I have installed STS. I guess all that I need to do now is to start figuring out just how one specifies the templates for each of the categories and other members of the hierarchy that you mentioned. If you could comment on that, that'd be great--right now, I need a confidence builder. :thumbsup:

 

And, of course, I'll read whatever documentation I can get my hands on. I guess that also includes the PHP. Fortunately, I speak several foreign languages. :lol:

 

Thanks again,

Steve Amerige

Share this post


Link to post
Share on other sites

STS 2.01 has an extensive readme and there's always this thread.

 

If you standardize your product display and use the osc product_info.php you'll have an easier time integrating contribs and here's a link

 

 

Cats, subcats and products

 

to how to get a consistent template across entire categories. It seems this is standard behavior in STS 3.0 though.

 

Good luck and if you make some cool changes folks might use be sure to bring them back to the community!

 

Iggy


Everything's funny but nothing's a joke...

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

×