Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

hai i tried myself something this one is the home page link http://test1.srimeenakshimobiles.org/index.php in this page i add only nokia product details if i click the nokia products in the home page am getting abt nokia product all details but image not shown in nokia products page even i change all image path correctly for nokia product html here is the link http://test1.srimeenakshimobiles.org/inclu...ndex_nokia.html wat i did wrong here could u pls guide to add for only one product after tat i will manage....................

sundar, I tried viewing your site and everything seemed to be OK.

I used your first link above and then I clicked on the "home" link.


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
sundar, I tried viewing your site and everything seemed to be OK.

I used your first link above and then I clicked on the "home" link.

 

no bkellum not possible bcos am not adding of link for home link am adding the link only for nokia product pls check well again........ http://test1.srimeenakshimobiles.org/index.php http://test1.srimeenakshimobiles.org/inclu...ndex_nokia.html

Share this post


Link to post
Share on other sites

i've a major question.

 

i'm intending to create a new $tattoologo as a header image made clickable on all pages... dived in sts_user_code.php but couldn't figure out a way to do the coding. i'm a php-idiot. tried echo "<img src="images/layout/header.gif"> but doesn't work. is there another way to add in header image other than editing header.php?

 

 

$sts->start_capture();

 

//*what should i put here?//

 

$sts->stop_capture('tattoologo');

 

sorry if this question has been posted in this thread, not sure how to search within a thread. many thanks to the experts.

Share this post


Link to post
Share on other sites
i've a major question.

 

i'm intending to create a new $tattoologo as a header image made clickable on all pages... dived in sts_user_code.php but couldn't figure out a way to do the coding. i'm a php-idiot. tried echo "<img src="images/layout/header.gif"> but doesn't work. is there another way to add in header image other than editing header.php?

 

 

 

 

sorry if this question has been posted in this thread, not sure how to search within a thread. many thanks to the experts.

Veronica,

See this post just a page back in this thread:

http://forums.oscommerce.com/index.php?s=&...t&p=1185882

 

Also, you can create a clickable image in your template just as you would in any other web page.

 

Also: To search this thread, use Google and the following search string:

site:forums.osCommerce.com [Contribution] sts v4

 

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

why cant i use it with a frameset?

 

if i use a simple frameset calling a page with the $variables they show as $variable instead of the content.

can anyone point me a direction?

Share this post


Link to post
Share on other sites

Hey Bill and everyone,

 

I've been running MS2 with STS4.5.8 for a while, but a customer just notified me of a bug.

 

He tried to edit his address, which was fine, but the final stage "continue" button led to the following:

Fatal error: Call to a member function on a non-object in /home/m/i/midlanddiving/public_html/catalog/includes/functions/html_output.php on line 78

 

I have tried editing my test account information and adding new addresses, and I get the same error with every change I make. I even get the error when clicking "back" or "delete" as well as "continue".

 

Any ideas?

 

Thanks, Adam.

 

EDIT: Further testing: It seems submitting changes to the account causes a logout - clicking the browser "back" button causes every site link to give the same error (catalogue entries, account button etc).

Edited by adammde

Share this post


Link to post
Share on other sites

Hello everyone,

 

Thanks for this awesome time saving contribution.

 

I have a question about testing for a variable. I am building a product_info page with a template.

 

I want to know how and where (which file) I can use php code, and I am a NOOB at php, to test if $optionnames$

has some data in it for that product the page CURRENTLY being created. The purpose of it for me

is to load some other text in the "box" for the product options if there aren't any for that particular product.

 

Can I write the code in the template file itself to check for $optionnames$?

 

Any help appreciated.

 

Nacman

Share this post


Link to post
Share on other sites
Hello everyone,

 

Thanks for this awesome time saving contribution.

 

I have a question about testing for a variable. I am building a product_info page with a template.

 

I want to know how and where (which file) I can use php code, and I am a NOOB at php, to test if $optionnames$

has some data in it for that product the page CURRENTLY being created. The purpose of it for me

is to load some other text in the "box" for the product options if there aren't any for that particular product.

 

Can I write the code in the template file itself to check for $optionnames$?

 

Any help appreciated.

 

Nacman

Yes, you can add PHP code directly inside the template page itself.

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
why cant i use it with a frameset?

 

if i use a simple frameset calling a page with the $variables they show as $variable instead of the content.

can anyone point me a direction?

Take a look at the blank template in the test folder. Make sure you have that code inside your frame set otherwise STS will not know what to do with the variables.

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
Take a look at the blank template in the test folder. Make sure you have that code inside your frame set otherwise STS will not know what to do with the variables.

Thanks for the reply but it seems that is something else.

The frameset has its htmlparams and headcontent variables, even the files that the frameset calls have them.

Any other tips?

Thanks you.

Share this post


Link to post
Share on other sites
Yes, you can add PHP code directly inside the template page itself.

 

Ok, thats good. Will keep me from mucking up other good code.... :)

 

Onto a question. Will $optionnames$ have a NULL value if there is no options for the product in question or

will it have another value? Would you suggest a simple IF statement to check for a value of $optionnames$?

 

Any hints how to evaluate this variable? I want to learn so I would prefer to write it myself,

but need a little working knowledge of the variable and its data I guess.

 

Thanks

 

Nacman

Share this post


Link to post
Share on other sites
Hey Bill and everyone,

 

I've been running MS2 with STS4.5.8 for a while, but a customer just notified me of a bug.

 

He tried to edit his address, which was fine, but the final stage "continue" button led to the following:

 

 

I have tried editing my test account information and adding new addresses, and I get the same error with every change I make. I even get the error when clicking "back" or "delete" as well as "continue".

 

Any ideas?

 

Thanks, Adam.

 

EDIT: Further testing: It seems submitting changes to the account causes a logout - clicking the browser "back" button causes every site link to give the same error (catalogue entries, account button etc).

Adam,

This appears to be a messagestack error. It makes me ask how did you install STSv4.5.8; did you use the copy method or the manual method? If you did the manual method, then you may have added the STS code in the wrong place within the osCommerce code causing the messagestack process to be avoided.

 

At the very end of includes/application_top.php, it should look like this:

 

 

// START STS 4.5.8
 require (DIR_WS_CLASSES.'sts.php');
 $sts= new sts();
 $sts->start_capture();
 // END STS 4.5.8
// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// set which precautions should be checked
 define('WARN_INSTALL_EXISTENCE', 'true');
 define('WARN_CONFIG_WRITEABLE', 'true');
 define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
 define('WARN_SESSION_AUTO_START', 'true');
 define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');
?>

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
Thanks for the reply but it seems that is something else.

The frameset has its htmlparams and headcontent variables, even the files that the frameset calls have them.

Any other tips?

Thanks you.

I guess my next question would be....Why do you need your osC store inside a frameset?

Also, what is the name of the page that has the frameset, meaning if I were to visit your store, what page would I be visiting that had the frameset, and then what page are you trying to link to the frame?


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
Yes, you can add PHP code directly inside the template page itself.

 

 

I slept on it and woke up remembering sts_debug is my friend!

 

I figured out how to test for $optionnames$, via $template_pinfo['optionnames'].

Simple code worked. VIOLA!

 

thanks again For the Contrib.

 

Nacman

Share this post


Link to post
Share on other sites

Hi Bill

 

I used the copy method, but I think I must have missed that file, mine listed 4.1 as the version number, and the code was:

 

// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// set which precautions should be checked
 define('WARN_INSTALL_EXISTENCE', 'true');
 define('WARN_CONFIG_WRITEABLE', 'true');
 define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
 define('WARN_SESSION_AUTO_START', 'true');
 define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

// START STS 4.1
 require (DIR_WS_CLASSES.'sts.php');
 $sts= new sts();
 $sts->start_capture();
 // END STS 4.1

 

Moved those lines as per your code, all is right with the world again, thanks :lol:

 

Adam

 

By the way, I've mostly lurked here and never needed to ask much, but when I have, I've been very impressed with the help and speed, thanks very much :thumbsup:

Share this post


Link to post
Share on other sites
Hi Bill

 

I used the copy method, but I think I must have missed that file, mine listed 4.1 as the version number, and the code was:

 

// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

// set which precautions should be checked
 define('WARN_INSTALL_EXISTENCE', 'true');
 define('WARN_CONFIG_WRITEABLE', 'true');
 define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
 define('WARN_SESSION_AUTO_START', 'true');
 define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

// START STS 4.1
 require (DIR_WS_CLASSES.'sts.php');
 $sts= new sts();
 $sts->start_capture();
 // END STS 4.1

 

Moved those lines as per your code, all is right with the world again, thanks :lol:

 

Adam

 

By the way, I've mostly lurked here and never needed to ask much, but when I have, I've been very impressed with the help and speed, thanks very much :thumbsup:

Your welcome! Thanks for replying back to let us know everything worked out OK. :thumbsup:


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

Hi,

Thank you for a great contribution. Have just installed STS 4.5.8 in a clean shop - don't know so much about OsCommerce yet, so I'm testing - and am finding a problem: when clicking on a pic to enlarge it, or click on the link under it, nothing happens. Have I missed something obvious and easy to fix?

Thank you.

Share this post


Link to post
Share on other sites

Hello All,

Please excuse if this is a repeat. I tried both the forum search and google but got nonsense results.

I have found and error in the file catalog\admin\modules.php on line 136 of the Dec 16 release it says

@include(DIR_FS_CATALOG_LANGUAGES

it should read

include(DIR_FS_CATALOG_LANGUAGES

Hope that helps


On your last day only you will have to approve or disaprove of how your life has been.

Share this post


Link to post
Share on other sites
Hi,

Thank you for a great contribution. Have just installed STS 4.5.8 in a clean shop - don't know so much about OsCommerce yet, so I'm testing - and am finding a problem: when clicking on a pic to enlarge it, or click on the link under it, nothing happens. Have I missed something obvious and easy to fix?

Thank you.

Yes, take a look at the blank template in the STS templates folder "test". This template will show all of the required tags that make you STS template function correctly.

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'm having a little trouble understanding how the file system works. I created a template infinity_template.html based off the sts_template.html file. I have that in the modules/sts_templates/test folder. I also copied it into the modules/sts_templates/full folder. I then went to the admin under the default settings and changed the setting for the Template Folder to 'full'. It is not using my template then. Is this not correct? Did I make an error somewhere in the install?

 

I was playing around with the other part of STS trying to figure out how to turn on the index and product info parts. It seems no matter what I put into the settings, nothing is happening.

 

What I'd like to do is have my infinity_template for all the outer parts - always and then make a content templates for the category, sub-category and the product_info pages. I guess I'm not understanding how to name the files properly and where to put them so it will work.

 

Thanks so much for any help you can give me :)

 

joanne

Share this post


Link to post
Share on other sites
Hello All,

Please excuse if this is a repeat. I tried both the forum search and google but got nonsense results.

I have found and error in the file catalog\admin\modules.php on line 136 of the Dec 16 release it says

@include(DIR_FS_CATALOG_LANGUAGES

it should read

include(DIR_FS_CATALOG_LANGUAGES

Hope that helps

That is not an error but it should work either way. Look up the @ symbol and how it relates to PHP coding. :thumbsup: It is an error control operator that helps to prevent error messages that may appear. In this example, you may not have a multi-language shop so you wouldn't want an error message to display to tell you what you already know.


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
I guess my next question would be....Why do you need your osC store inside a frameset?

Also, what is the name of the page that has the frameset, meaning if I were to visit your store, what page would I be visiting that had the frameset, and then what page are you trying to link to the frame?

 

My structure was wrong

 

i was trying to make the frameset the template, so when called, the frameset file would not be the template and then...

so i build up my template correctly and then coded a frameset calling my store sts template file and things worked...wow.... *shame*

anyway, thanks for your effort to help, the need of a frameset is that i wanna use a mp3 player on the store, always playing.

 

Cheers!

Share this post


Link to post
Share on other sites
Hello!

 

I'm having a little trouble understanding how the file system works. I created a template infinity_template.html based off the sts_template.html file. I have that in the modules/sts_templates/test folder. I also copied it into the modules/sts_templates/full folder. I then went to the admin under the default settings and changed the setting for the Template Folder to 'full'. It is not using my template then. Is this not correct? Did I make an error somewhere in the install?

 

I was playing around with the other part of STS trying to figure out how to turn on the index and product info parts. It seems no matter what I put into the settings, nothing is happening.

 

What I'd like to do is have my infinity_template for all the outer parts - always and then make a content templates for the category, sub-category and the product_info pages. I guess I'm not understanding how to name the files properly and where to put them so it will work.

 

Thanks so much for any help you can give me :)

 

joanne

joanne,

Since you did not specify which version of osC you are using, I will assume that you have the 060817 version. That version of osC has a bug (Module Refresh Bug).

Here is the fix:

http://forums.oscommerce.com/index.php?sho...p;#entry1117449

 

As for the template naming, look in the STS User Manual under section 3.1, 3.3, 3.6, 3.7, 3.9 and so on. You decided to create you own default template (infinity_template.html) but you failed to specify this in the STS Default Module under the Default Template File name setting. This is the only place in the Modules setup that requires you to specify a template name. STS will automatically pick up the other templates accordingly (see STS User Manual sections listed above).


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
My structure was wrong

 

i was trying to make the frameset the template, so when called, the frameset file would not be the template and then...

so i build up my template correctly and then coded a frameset calling my store sts template file and things worked...wow.... *shame*

anyway, thanks for your effort to help, the need of a frameset is that i wanna use a mp3 player on the store, always playing.

 

Cheers!

:thumbsup: You may find my STS step by step for PHP includes useful then. You can download it from the STS Power Pack site (link in my signature below).

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

×