zellbest Posted November 25, 2009 Share Posted November 25, 2009 Hi all before to post I already tryed to solve my problem using the search function :) i edit the privacy.php (in my language) folder: this is my file: <?php /* $Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy e trattamento dei dati'); define('HEADING_TITLE', 'Privacy e trattamento dei dati'); define('TEXT_INFORMATION', 'Informativa ai sensi dell’art.13 D.lgs n.196/2003 “Codice in materia di protezione dei dati personali”.'); $text = <<<TEXT Ai sensi dell’articolo 13 del D.lgs n.196/2003, Le/Vi forniamo le seguenti informazioni: 1. I dati personali da Lei/Voi forniti o acquisiti nell’ambito della nostra attività saranno oggetto di trattamento improntato ai principi di correttezza, liceità, trasparenza e di tutela della Sua/Vostra riservatezza e dei Suoi/Vostri diritti. TEXT; define( 'TEXT_INFORMATION', $text ); ?> the first define work, the second I insert with $text is not displayed in the websites i tryed with a DEFINE too but same problem I recive no error from the websites but the is not displayer best regards to everyone Link to comment Share on other sites More sharing options...
Ben Nevis Posted November 25, 2009 Share Posted November 25, 2009 Rather than trying to use a variable in the define statement, just put all your defined text in the define statement between quote marks, as you did in the first example - put the text you are trying to assign to $text, into the define statement itself. You can use html tags in the define statement to create line and paragraph breaks etc. www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used! Link to comment Share on other sites More sharing options...
zellbest Posted November 25, 2009 Author Share Posted November 25, 2009 Rather than trying to use a variable in the define statement, just put all your defined text in the define statement between quote marks, as you did in the first example - put the text you are trying to assign to $text, into the define statement itself. You can use html tags in the define statement to create line and paragraph breaks etc. it doesn't work may the problem be that I can have just one define('TEXT_INFORMATION',''); ???????????? Link to comment Share on other sites More sharing options...
Ben Nevis Posted November 25, 2009 Share Posted November 25, 2009 Yes, can only have one and that one has to contain the entire text you want to appear - like this: define('TEXT_INFORMATION', 'Informativa ai sensi dell’art.13 D.lgs n.196/2003<p> “Codice in materia di protezione dei dati personali”.<p><p>Ai sensi dell’articolo 13 del D.lgs n.196/2003, Le/Vi forniamo le seguenti informazioni:<p>1. I dati personali da Lei/Voi forniti o acquisiti nell’ambito della nostra attività <p>saranno oggetto di trattamento improntato ai principi di correttezza, liceità, trasparenza e di tutela della Sua/Vostra riservatezza e dei <p>Suoi/Vostri diritti.'); Single apostrophes need to be escaped with a backslash: \' but I'm not sure if the ’ character you used is an apostrophe?. www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.