Jump to content
DiamondSea

[contribution] Simple Template System (sts)

Recommended Posts

on the first picture you see how the template looks like

 

and on the second picture how the index.php looks like:

 

templateproblem.jpg

Share this post


Link to post
Share on other sites

Hi all..

 

Is mine a common problem?

 

After installing STS and doing my layout (great contrib by the way) whenever the 'click to enlarge' is used on a a product i got an exact replica of the template rather than a larger image of the product. Im sure its down to the $headcontent or smothing.

 

Is it a simple fix?

 

The site is at hadley reclaimed

 

Cheers for any help..

 

adi

Share this post


Link to post
Share on other sites
yes - that should be fine - have my images in includes/template_pix/... and linked like this:

 

<img src="template_pix/3_13.jpg" width="36" height="18" alt="">

Try this:

<img src="/catalog/includes/template_pix/3_13.jpg" width="36" height="18" alt="">

 

Don't forget the INITIAL slash.

Share this post


Link to post
Share on other sites

Hello,

 

I have everything working and installed. What I would like to do is have the $catmenu display the following URL type and be able to cutomize it.

 

catalog/index.php?cPath=21

 

Thanks,

 

CoachRock

Share this post


Link to post
Share on other sites

Hello,

 

1. I installed SM, MD, LG images contribution which is located here: http://www.oscommerce.com/community/contributions,695

 

 

How can it work with the Simple Template System STS, what do I edit to make it work. I searched all over the forum and I couldn't get any information on how to get it working, any help on this is greatly appreciated.

 

Thanks all!

:rolleyes:

Share this post


Link to post
Share on other sites
The site is at hadley reclaimed

 

Cheers for any help..

 

adi

I wish I had an answer for you but I don;t.

 

I do have a question for you. How did you apply the horizontal manu you have on your site?

 

Looks very nice and something I have been trying for a long while now.

Share this post


Link to post
Share on other sites

Hi, hoping someone can help, I have installed Oscommerce 2 M2 - clean install - then installed Header Tag Controller - then installed STS - and all seemed to be working fine - everything still working my site. I went into sts_template.html to make some changes and moved things around a bit and uploaded the changed file sts_template.html back into my remote site via ftp - and nothing has changed or moved?

 

Do I need to still do something else or do I save the sts_template.html as something else to make it work?

 

Any help would be appreciated.

 

thanks

 

Maria

Share this post


Link to post
Share on other sites

I am trying to figure out how to create my own variabels for the simple template system. I hyave looked for post without any luck. Can someone explain it to me.

 

TIA

 

Tom


Live free or die

Share this post


Link to post
Share on other sites
Hi, hoping someone can help, I have installed Oscommerce 2 M2 - clean install - then installed Header Tag Controller - then installed STS - and all seemed to be working fine - everything still working my site. I went into sts_template.html to make some changes and moved things around a bit and uploaded the changed file sts_template.html back into my remote site via ftp - and nothing has changed or moved?

 

Do I need to still do something else or do I save the sts_template.html as something else to make it work?

 

Any help would be appreciated.

 

thanks

 

Maria

Maria

 

That is all you need to do. A few things to check,

try using ctrl f5 to refresh as that will do a hard refresh and ignore any existing info,

make sure that you saved the file after making your changes ( I have done this one, made changes uploaded file without saving first, felt stupid.)

 

along the same lines make sure the copy you are working with in your editor is the same one you are uploading to your site (this one took awhile to figure out and really had me ticked)

 

make sure that you uploaded the sts_template to includes folder,( I have done that one also)

 

Well those are some of the things I have done in the last 6 months to make things more difficult for myself and the people around me.


The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Share this post


Link to post
Share on other sites

How can I make it so that the $specialprice in the product_info template says "SALE PRICE:" before the price is shown? So in other words, "SPECIAL PRICE: " would show up along with the price as part of the variable itself.

 

This way I can have a sales price label show up only if there is a sale price.

 

Thanks!

Share this post


Link to post
Share on other sites

In sts_user_code.php, simply add a line like:

 

template[mynewthing] = 'my html code' . tep_href_link(mylink) . 'more html';

 

Then, simply use $mynewthing anywhere you want in your html templates such as sts_template.html

 

sts_display_output has a number of examples of zhat you can do with your own variables.

Share this post


Link to post
Share on other sites
Maria

 

That is all you need to do. A few things to check,

try using ctrl f5 to refresh as that will do a hard refresh and ignore any existing info,

make sure that you saved the file after making your changes ( I have done this one, made changes uploaded file without saving first, felt stupid.)

 

along the same lines make sure the copy you are working with in your editor is the same one you are uploading to your site (this one took awhile to figure out and really had me ticked)

 

make sure that you uploaded the sts_template to includes folder,( I have done that one also)

 

Well those are some of the things I have done in the last 6 months to make things more difficult for myself and the people around me.

 

Thanks a lot Richard for your response, I went back and double checked I was doing all those things - I thought I was!@ I must have missed a step along the way as going over your instructions step by step - all is now working!

 

Thanks again for taking the time to share your experience! It normally is something simple you overlook at 2.00am.

 

regards

Maria

Share this post


Link to post
Share on other sites

After installing STS, I have two right columns. How do I go about fixing this. The footer is included in the right column.

 

www.needlepointbackbay.com/catalog/

 

column_right.jpg

 

I have looked through the column right and found this code.

 

 

// STS: ADD

$sts_block_name = 'columnleft2columnright';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

Does this control the with of the right column?

 

How do I fix this problem?


Live free or die

Share this post


Link to post
Share on other sites

I have the same problem with the footer. I have posted on a previous page, but apparenlty you must be very lucky to get some help here :>

Share this post


Link to post
Share on other sites
After installing STS, I have two right columns. How do I go about fixing this. The footer is included in the right column.

 

www.needlepointbackbay.com/catalog/

 

 

I have looked through the column right and found this code.

 

 

// STS: ADD

$sts_block_name = 'columnleft2columnright';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

Does this control the with of the right column?

 

How do I fix this problem?

The first place I would look is your sts_template file. Have you made any changes to it? Do you have those boxes listed twice etc? If you do not see anything post it here so we can take a look at it.


The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Share this post


Link to post
Share on other sites
I have the same problem with the footer. I have posted on a previous page, but apparenlty you must be very lucky to get some help here :>

You do not have two footers it just looks that way.

 

If you open up your sts_template file you will find $footer listed once and then for the second one you are seeing you will see the seperate items that make up the footer also listed $banner, $date, $numrequests etc. I am sure that this was done so that you could see all the tags that were supported.

 

If you see something on your site that is not where you want it or if you want to remove something all you need to do is go into your template file and do so.


The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Share this post


Link to post
Share on other sites

I installed the original default template and the layout remained the same so I do not think it is the template.

 

This is the sts_template file

 

<html>

<head>

<!--$headcontent-->

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr class="header">

<td><font size="1" face="Arial, Helvetica, sans-serif"> $cataloglogo</font></td>

<td><div align="right"><font size="1" face="Arial, Helvetica, sans-serif">

$myaccountlogo $cartlogo $checkoutlogo</font></div></td>

</tr>

</table>

<font size="1" face="Arial, Helvetica, sans-serif"><br>

</font>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr class="headerNavigation">

<td><font size="1" face="Arial, Helvetica, sans-serif">$breadcrumbs</font></td>

<td><div align="right"><font size="1" face="Arial, Helvetica, sans-serif">$myaccountlogoff

| $cartcontents | $checkout</font></div></td>

</tr>

</table>

<font size="1" face="Arial, Helvetica, sans-serif"><br>

</font>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr>

<td width="125" valign="top">

<p><font size="1" face="Arial, Helvetica, sans-serif">$catmenu</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$categorybox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$manufacturerbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$whatsnewbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$searchbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$informationbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$infopagesbox</font></p></td>

<td valign="top">

<p>$content</p>

</td>

<td width="125" valign="top">

<p><font size="1" face="Arial, Helvetica, sans-serif">$cartbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$maninfobox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$orderhistorybox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$bestsellersbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$specialfriendbox</font></p>

<p><font size="1" face="Arial, Helvetica, sans-serif">$reviewsbox</font></p>

</td>

</tr>

</table>

<br>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr>

<td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif">$footer</font></div></td>

</tr>

</table>

<br>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr>

<td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif">$banner</font></div></td>

</tr>

</table>

<font size="1" face="Arial, Helvetica, sans-serif"><br>

</font>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr>

<td><font size="1" face="Arial, Helvetica, sans-serif">$date</font></td>

<td> <div align="right"><font size="1" face="Arial, Helvetica, sans-serif">$numrequests</font></div></td>

</tr>

</table>

<font size="1" face="Arial, Helvetica, sans-serif"><br>

</font>

<table width="100%" border="1" cellpadding="3" cellspacing="0">

<tr>

<td><font size="1" face="Arial, Helvetica, sans-serif">Copyright © 2003</font></td>

<td> <div align="right"><font size="1" face="Arial, Helvetica, sans-serif">Simple

Template System by <a href="http://www.Diamondsea.com/">DiamondSea.com</a></font></div>

<div align="right"></div></td>

</tr>

</table>

<p> </p>

</body>

</html>


Live free or die

Share this post


Link to post
Share on other sites

Anyone find that you can not add a meta tag for TITLE?

 

I have and all I get is "OSCommerce" for my page title?

 

How do you fix or change the page tile with STS?

Share this post


Link to post
Share on other sites

Hi There Everyone

 

I am a bit stuck here, php is rather new to me, and cart systems even newer. I have all the STS zips and I have been trying to install 2.01.

 

I change the config file (pasted the stuff before the closing php tag) and copied over all the other files that we are told to and I come up with a blank index page but can see the admin section of the cart fine.

 

What am I doing wrong. :(

 

Any one have a toturiol for Dummies on how to build your page and get it to show?

 

Kel

 

PS maybe someone would make a self install that knows what we "dummies don't know how to do :blink:


I live in my own little world. But it's OK. They know me here.

Share this post


Link to post
Share on other sites

I wish I had an answer for you but I don;t.

 

I do have a question for you. How did you apply the horizontal manu you have on your site?

 

Looks very nice and something I have been trying for a long while now.

The horizontal drop down menu is based on a combination of a dreamweaver extension and the STS contribution.

 

The dreamweaver extension is simply called 'drop down menu builder' and all you do is replace the links with the STS '$' function.. dead easy. I imagin you could do it with any drop down menu system simply replacing the content with $.

Share this post


Link to post
Share on other sites

I wish I had an answer for you but I don;t.

 

I do have a question for you. How did you apply the horizontal manu you have on your site?

 

Looks very nice and something I have been trying for a long while now.

The horizontal drop down menu is based on a combination of a dreamweaver extension and the STS contribution.

 

The dreamweaver extension is simply called 'drop down menu builder' and all you do is replace the links with the STS '$' function.. dead easy. I imagine you could do it with any drop down menu system simply replacing the content with $.

 

Anyway.. does no-one else have this template problem with the java popup? Surely it must be a common prob? To refresh your memory i'm getting a template replica instead of the image on popups..

 

see the site..

 

hadley reclaimed

Edited by adiwillow

Share this post


Link to post
Share on other sites

well, I dont know about the problem you are having with a popup. I just wanted to mention this. Your site is not Netscape/Mozilla friendly.

 

I looked at it in IE, and that drop down feature is really nice, but when using Mozilla it doesnt work at all, which makes your site really hard to navigate.

 

Maybe look around for some cross browser compliant drop down menu, and try the same thing. I use one on my site www.absinthe-extract.com that works with all browsers, and it is free from www.DynamicDrive.com. Here is the info.

 

//Top Navigational Bar III v3.4.1.1b (By BrotherCake @ cake@brothercake.net)
//Permission granted/modified by Dynamicdrive.com to include script in archive
//For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com
//This notice MUST stay intact for legal use

Edited by Goanna

Share this post


Link to post
Share on other sites

yep cheers.. i know about the netscape thing .. i just haven't got round to making it netscape friendly as yet.. not too much of a prob as i can just make the links go direct to the relevant pages rather than drop down a menu. Its on the 'to do' list.

 

I'll check out the lnk though.. cheers.

adi

Share this post


Link to post
Share on other sites
yes - that should be fine - have my images in includes/template_pix/... and linked like this:

 

<img src="template_pix/3_13.jpg" width="36" height="18" alt="">

Try this:

<img src="/catalog/includes/template_pix/3_13.jpg" width="36" height="18" alt="">

 

Don't forget the INITIAL slash.

Thanx - that helped for the "normal" pix

 

...but there is no change with the pix that are included by the stylesheet :blink:

 

 

any idea?

Share this post


Link to post
Share on other sites

ok - I solved the problem....

 

... it seems that the index.php is not able to "grab" the stylesheet that is linked with the template.html - if you put the whole stylesheet in the head of the template.html instead of just linking it - then it works!

 

 

:lol: strange - but it worx now - thanx to all of you! ;)

 

 

(especially to Rusyn)

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

×