Guest Posted January 4, 2005 Posted January 4, 2005 I see a lot of new store owners having a bit of trouble with maintaining TEXT_MAIN so here is a quick fix that is useful on stores that only support one language. In index.php find this code: <td class="main"><?php echo TEXT_MAIN; ?></td> Replace it with this: <td class="main"><?php include('main.php'); ?></td> Next, create a new page in the document root called "main.php". Use HTML and all characters are allowed...no need to escape anything. In addition, it allows for PHP tags and is versatile. It's a quick fix and should eliminate all problems with escaping characters. This will work for a store that supports one language only... Bobby
♥bruyndoncx Posted January 4, 2005 Posted January 4, 2005 If you are looking for a multi-language solution, or a general way for including html into certain pages, check out this contribution that explains how to include texts as well as create popups: http://www.oscommerce.com/community/contri...e+html+and+text KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
yehudas Posted February 16, 2005 Posted February 16, 2005 Hello Chemo, I am having a problem with the main.php I cannot get the styles and sizes on the fonts to match what I am setting in the main.php file. Thanks Yehuda Like it says: One who is embarrassed will never learn!
Yuck Posted February 17, 2005 Posted February 17, 2005 Nice tip, already had html but this makes it so much easier to change, implemented, thanks :thumbsup: I see a lot of new store owners having a bit of trouble with maintaining TEXT_MAIN so here is a quick fix that is useful on stores that only support one language. In index.php find this code: <td class="main"><?php echo TEXT_MAIN; ?></td> Replace it with this: <td class="main"><?php include('main.php'); ?></td> Next, create a new page in the document root called "main.php". Use HTML and all characters are allowed...no need to escape anything. In addition, it allows for PHP tags and is versatile. It's a quick fix and should eliminate all problems with escaping characters. This will work for a store that supports one language only... Bobby <{POST_SNAPBACK}>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.