Guest Posted January 23, 2006 Posted January 23, 2006 (edited) Hello, this is a post for STS PLUS. First of all I like to congratulate Rigadin for his GREAT work. This is "the contribution". I am a noob in development so I have a problem: How can I declare a new variable? In Brian Gallagher's STS, I was able to create this variables/placeholders I wrote in sts_display_output.php: $template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . ''; After that, I defined in a php language file: define('ANY_STRING_FOR_MULTILANGUAGE', 'file_english.gif'); I have read completelly your "STS PLUS 4.doc" but I cannot find how can I define a custom variable/placeholder in "sts_user_code.php". Can you give me a little example? Thank you very much, Juan Carlos Edited January 23, 2006 by pelopincho Quote
Guest Posted January 24, 2006 Posted January 24, 2006 (edited) Hello, this is a post for STS PLUS. First of all I like to congratulate Rigadin for his GREAT work. This is "the contribution". I am a noob in development so I have a problem: How can I declare a new variable? In Brian Gallagher's STS, I was able to create this variables/placeholders I wrote in sts_display_output.php: $template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . ''; After that, I defined in a php language file: define('ANY_STRING_FOR_MULTILANGUAGE', 'file_english.gif'); I have read completelly your "STS PLUS 4.doc" but I cannot find how can I define a custom variable/placeholder in "sts_user_code.php". Can you give me a little example? Thank you very much, Juan Carlos Hi, In sts_user_code.php, add this line: $sts->template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . ''; In the same file you will also find an example about adding an infobox. This example was wrong before v4.0.6 - Rigadin Edited January 27, 2006 by 241 Quote
Guest Posted January 24, 2006 Posted January 24, 2006 (edited) Hi, In sts_user_code.php, add this line: $sts->template['VARIABLE_NAME'] = '' . ANY_STRING_FOR_MULTILANGUAGE . ''; In the same file you will also find an example about adding an infobox. This example was wrong before v4.0.6 - Rigadin Hi, the example has worked OK for my store maybe you can include this example that you give to me in the doc supplied with STS+. It is an idea and you can save on support with noobs like me. Thank you and my GREATS CONGRATULATIONS again for your module, Juan Carlos Edited January 27, 2006 by 241 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.