Jump to content
DiamondSea

[contribution] Simple Template System (sts)

Recommended Posts

I REALLY love STS. It was one of the easiest contribs for me to install and use and has been the answer to my prayers. I don't think I could get along without it....BUT, I want to do one very simple thing, which is remove the "New Products for XXX" in the content area, and possibly add something else.

So far I have:

Gone back to the install dos and re-read.

Searched the forums.

Searched all my files to find anything related to "columnleft2columnright" as this seems to define what the "$content" displays.

Searched the forums.

Set display to "debug" in order to find see what's going one and found "columnleft2columnright", which indicates an sts_block.

Searched the forums.

Found entries relating to this block and template in "sts_display_output.php".

Searched the forums.

Did another search to find a define for this block or any other refence to it and came up zilch.

Searched the forums.

I have seen posts saying to looking in various "index.php" or "product_info.php", but I have yet to make any sense of this as nothing seems to relate.

Apparently my feeble mind can't seem to fully grasp where "columnleft2columnright" or "$content" is pulling from or where to modify this at.

 

After spending the last several days reading, searching and seeing the number of posts relating to this very subject, instead of merely saying we "can't normally control what appears", one would think there would be a central post, update, or at least a note included in the docs by now, relating to this in more detail, and if there is, I offer my sincere apologies, I apparently overlooked it somehow and perhaps someone would be kind enough to point me to it.

 

Thanks in advance to anyone who can guide me in the right direction.


Just when you think you've got if foolproof, they go and release Fool 2.0

Contibutions installed (but still tweaking) successfully so far (my personal triumphs!..ok..I had help from these forums) :

Categories Description 1.9, Enable-Disable Categories, Header Tags 2.4.3, Loginbox_Best, STS, Paypal IPN 3.1.5, PWA 0.82, Conditions/Privacy Template 2.0, Contact_us_choice 1.0, MS2-2.2 Sitemap

Share this post


Link to post
Share on other sites

Popup windows are driving me nuts! I still cant get them working

 

www.oneofas.co.uk (not work safe)

 

The link looks right, the sts template file has the script in shown previously can anyone help Im sure its dead simple!

 

Many Many Thanks

 

Simon


Hey its free!

Share this post


Link to post
Share on other sites
Popup windows are driving me nuts! I still cant get them working

 

www.oneofas.co.uk (not work safe)

 

The link looks right, the sts template file has the script in shown previously can anyone help Im sure its dead simple!

 

Many Many Thanks

 

Simon

if you need me to post up the source code for any of the pages let me know, this is a great contrib and I couldnt do what I do without it but this bit feels like it is jsut out of reach.

 

Do you need to have product_info.php.html setup in sts_templates? Can someone post me a copy of theirs? I currentlly dont have it setup, are there other templates I should setup here for it too work? I have tried to keep it simple.


Hey its free!

Share this post


Link to post
Share on other sites
Hi,

I've seen a number of sites where the product_info.php.html is working,and it usually has to reside in .../includes/sts_templates/ path.

 

Don't know what you mean by 'config' in respect to STS, there is nothing to configure to use product_info template.

 

Peter

 

hi peter, by config i meant the STS paths in the includes/configure.php, and yes i've got the templates in the sts-templates directory.... but it still refuses to pick them up. I'm currently having to customise product_info directly, but its a bit of a pain.

Edited by adiwillow

Share this post


Link to post
Share on other sites

Hi,

 

if you need me to post up the source code for any of the pages let me know, this is a great contrib and I couldnt do what I do without it but this bit feels like it is jsut out of reach.

 

From memory, there were bug fixes for the STS contribution, in regards to popups ??

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

hi peter, by config i meant the STS paths in the includes/configure.php, and yes i've got the templates in the sts-templates directory.... but it still refuses to pick them up. I'm currently having to customise product_info directly, but its a bit of a pain.

 

Have you applied this patch to version 2.01 ?

 

25 Aug 2004 - STS 2.01 Bug fixes

 

Have you tried the debugging option ?

 

Peter

Share this post


Link to post
Share on other sites
Hi,

From memory, there were bug fixes for the STS contribution, in regards to popups ??

 

Peter

 

Yeah I ve tried the ones for adding the script to the template, the ones shown on the contrib page none seem to make any difference.

 

I might have to try adding a product info template.


Hey its free!

Share this post


Link to post
Share on other sites

I tried searching for an answer to this one but it doesn't look like it has bugged anybody yet which is weird. Anybody know how to add the osCsid to the $catmenu? It is not being included and hence the osCid is lost.

 

PLEASE HELP!!!

Edited by smashing

Share this post


Link to post
Share on other sites

someone earlier asked about the linkpoint gateway in STS.. does it work? cause i'm using STS and tryign to setup linkpoint contrib and not getting it to work

Share this post


Link to post
Share on other sites

Hi,

 

Yeah I ve tried the ones for adding the script to the template, the ones shown on the contrib page none seem to make any difference.

 

I might have to try adding a product info template.

 

Maybe download the actual contrib patch, it just _may_ be slightly different than what is displayed on the contrib page ??

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

I tried searching for an answer to this one but it doesn't look like it has bugged anybody yet which is weird. Anybody know how to add the osCsid to the $catmenu? It is not being included and hence the osCid is lost.

 

You are using $sid , aren't you ?

 

Peter

Share this post


Link to post
Share on other sites
Hi,

You are using $sid , aren't you ?

 

Peter

 

Yes I am but I can't add it to the catmenu's form I tried changing the name of the form to incoprporate $sid and i've tried appending it to the values sent as GET in the form but haven't had good results. I'll elaborate if you want me to.

Share this post


Link to post
Share on other sites

Hi,

 

I think you will find that osCid actually isn't being lost, it may not appear in the category menu because that is how osCommerce usually works.

 

After the cookie is set, you will no longer see the "osCid" in any links.

 

I'm using an (STS) site at present, no "osCid" in the links (expected), but the "osCid" is of course set in the cookies (what is expected).

 

Peter

Share this post


Link to post
Share on other sites
Hi,

 

I think you will find that osCid actually isn't being lost, it may not appear in the category menu because that is how osCommerce usually works.

 

After the cookie is set, you will no longer see the "osCid" in any links.

 

I'm using an (STS) site at present, no "osCid" in the links (expected), but the "osCid" is of course set in the cookies (what is expected).

 

Peter

 

Hi

Thanks for replying. What I do find is this: If a user is logged in they will keep their cookie, and their osCid will successfully follow them from page to page as long as they click on links I have provided in the sts_template (all of those links I make sure to link with $sid at the end of course) except if they click on any link in the the $catmenu - bingo they lose the $sid and have to re-login to checkout for example. Please check out the site for yourself overhere (still in developement) Were can I see your site for your example?

Share this post


Link to post
Share on other sites

Hi,

 

What I do find is this: If a user is logged in they will keep their cookie, and their osCid will successfully follow them from page to page as long as they click on links I have provided in the sts_template (all of those links I make sure to link with $sid at the end of course)

 

You don't need to add the session id, if the session is already registered (i.e. cookie), then the session id will usually not appear in links, this is how osCommerce works, so there is no need to append a session id, when osCommerce has already removed it, ....... for a good reason.

 

Here is what we usually setup in admin

 

Sessions

 

Title Value

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session False

 

and we log sessions to the database.

 

... except if they click on any link in the the $catmenu - bingo they lose the $sid and have to re-login to checkout for example. Please check out the site for yourself overhere (still in developement).

 

If they are having to login, this set of osCommerce code:

 

	if (!tep_session_is_registered('customer_id')) {
	 $navigation->set_snapshot();
	 tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 

is used throughout, to indicate whether a login is needed, therefore (somehow), the "customer_id" session has become 'unregistered' , which is not usually how osCommerce works.

 

You could also possibly determine what the PHP setting for "session.use_trans_sid" is, because application_top.php does this .........

 

// disable use_trans_sid as tep_href_link() does this manually
 if (function_exists('ini_set')) @ini_set('session.use_trans_sid', 0);

 

Peter

Share this post


Link to post
Share on other sites
Hi,

Have you applied this patch to version 2.01 ?

 

25 Aug 2004 - STS 2.01 Bug fixes

 

Have you tried the debugging option ?

 

Peter

 

Cheers :D now working... i'd missed out one update.

 

BUT i havent had chance to read all of the thread, but are the image popups meant to work by default? or do i have to include something with the $imagesmall ...

Share this post


Link to post
Share on other sites

Al little off topic but i have a question about the install. I have installed the STS, but i get the

Warning: I am able to write to the configuration file........
error now. When i installed the store i did not have this error. I had to goto the config file and change the chmod from 444 to 644 inorder to add the code to that file for the install of STS. Now when i go back and try and change the chmod back to 444 it will not keep and keeps applying 644 chmod to the file. Any sugestions on how to reslove this

 

Thank you

Share this post


Link to post
Share on other sites

I'm sure htis has been answered quite a bit.. But.. i'm using STS and my images won't enlarge when you click them. i downlaoded the 2.01 version.. none of my popup's seem to be wroking.. I saw there were some fixes on teh STS contrib page but not sure which one i need to do

Share this post


Link to post
Share on other sites
Al little off topic but i have a question about the install. I have installed the STS, but i get the  error now. When i installed the store i did not have this error. I had to goto the config file and change the chmod from 444 to 644 inorder to add the code to that file for the install of STS. Now when i go back and try and change the chmod back to 444 it will not keep and keeps applying 644 chmod to the file. Any sugestions on how to reslove this

 

Thank you

 

 

i am a bit confussed. i thought it was 777 to make changes and 644 to stop people from writing to it?

Edited by Joedy

Share this post


Link to post
Share on other sites
I'm sure htis has been answered quite a bit.. But.. i'm using STS and my images won't enlarge when you click them. i downlaoded the 2.01 version..  none of my popup's seem to be wroking.. I saw there were some fixes on teh STS contrib page but not sure which one i need to do

 

 

mine worked np at all. do you have a site to look at put the link up. another good contrib i used was the auto resizer it came in very handy

Edited by Joedy

Share this post


Link to post
Share on other sites

Hi,

 

I'm using STS, but I'm having a little problem: I've just finished setting up my shopping cart, but in "manufacturers" (which I call "artists", I'm selling CDs), it always send me to the index page, no matter which artist I choose.

 

I'm having the same trouble from the "artist Info, more products" links.

 

My site: www.costaqmusic.com

 

thank you.

Shutiri.

Share this post


Link to post
Share on other sites

Hi,

 

I'm using STS, but I'm having a little problem:  I've just finished setting up my shopping cart, but in "manufacturers" (which I call "artists", I'm selling CDs), it always send me to the index page, no matter which artist I choose.

 

Are you sure each product has a manufacturer assigned to it ?

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

Al little off topic but i have a question about the install. I have installed the STS, but i get the  error now. When i installed the store i did not have this error. I had to goto the config file and change the chmod from 444 to 644 inorder to add the code to that file for the install of STS. Now when i go back and try and change the chmod back to 444 it will not keep and keeps applying 644 chmod to the file. Any sugestions on how to reslove this

 

If you were able to cmod the configure.php file to 444 beforehand and cannot now, delete the file, then upload it, then cmod to 444.

 

Peter

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

×