FreeBible.us Posted January 5, 2005 Share Posted January 5, 2005 Brethern! would you please put your muscular shoulder under my falling coffin of the oscommerce! Im messing with the index file for several days now. do not have enough knolage to do it myself. I will learn, I promise! here is a task: I ned to replace this ==== <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define('TEXT_MAIN', '<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define('TEXT_MAIN', '');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> ======= With this: Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? We are glad to have you at the website of the largest wholesaler of Prison Ministry-related literature on the Internet. At this website you will find Bibles, New Testaments, Christian literature, Bible-study books, tracts, paintings and other categories of Christian production. The goal of our Christian Literature is to bring inmates home - changed! Among our priceless books - true testimonies of tough criminals whose lives have been changed by the Lord. After accepting they did not get "rehabilitated" - they became changed. Our good Lord grants them all a completely new life. The Bible says: "Therefore if any man be in Christ, he is a new creature; old things are passed away; behold, all things are become new" (2 Cor. 5:17). Please browse these fine LifeChanging books and read closely the reviews. Read all of them on each book or publication. It will help you understand how God works in making CHRISTIANS out of CRIMINALS. Order our materials and pray that Jesus Christ will perform His miracles in your sons, daughters, husbands and wives... As a registered Publisher we are able to send materials to the US prisons. Mailings of books to US inmates from households are not permitted by the USA Department of Correction regulations. If as a Christian you are impacted by the stories told, and you are called by the Lord to service in the field of prison ministry, consider joining the world-wide outreach of the International Network of Prison Ministries. If you are a ministry or a Christian publisher we will help you to make your publications available to millions of inmates and Prison Ministries world-wide. Contact us using the Secure Email From. You will see this page only once, until registered and logged in. To read this page again - simply log off. Please pray for prisoners around the world, like we do here - daily! Your friendly Admin ====== Hugs and kisses to all! Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 Hiya Find the bit that says define('TEXT_MAIN', 'your text here'); after the comma, space and quote mark move you text, the finish with another quote, a bracket and a semi colon. PLEASE BACKUP the file before hand. Please ensure that all apostrophes have a forward slash before them, eg that\'s otherwise you'll get an error message. To put in a paragraph break, type <br><br> after the full stop at the end of the paragraph then start typing the next one. I hope this helps. Wendy Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 Yes, I'm doing exaclty this for last 4 days. comes to error, line xxxx how do I make " </b><br><br>" enhanced text out of plain Notepad txt file? Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2005 Share Posted January 5, 2005 You can't take all of the stuff in the first part out and replace it with the stuff in the second part. You need to keep stuff like this: define('TEXT_MAIN', ' and this: '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> If this doesn't make sense, you probably need to get someone to edit your files for you. Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 Bulldog - thanks for making that more clear. I think - but I'm not sure that you need to use <strong> either side of the enhanced text. Can you let me know what </br> means please. I'm still learning!!!! Wendy Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 is it close? ===== define('TEXT_MAIN', ' <DIV><FONT size=2>We are glad to have you at the website of the largest wholesaler of Prison Ministry-related literature on the Internet.<BR><BR>At this website you will find Bibles, New Testaments, Christian literature, Bible-study books, tracts, paintings and other categories of Christian production. The goal of our Christian Literature is to bring inmates home - changed!<BR><BR>Among our priceless books - true testimonies of tough criminals whose lives have been changed by the Lord. After accepting they did not get "rehabilitated" - they became changed. Our good Lord grants them all a completely new life.<BR><BR>The Bible says: "Therefore if any man be in Christ, he is a new creature; old things are passed away; behold, all things are become new" (2 Cor. 5:17).<BR><BR>Please browse these fine LifeChanging books and read closely the reviews. Read all of them on each book or publication. It will help you understand how God works in making CHRISTIANS out of CRIMINALS. Order our materials and pray that Jesus Christ will perform His miracles in your sons, daughters, husbands and wives...<BR><BR>As a registered Publisher we are able to send materials to the US prisons. Mailings of books to US inmates from households are not permitted by the USA Department of Correction regulations.<BR><BR>If as a Christian you are impacted by the stories told, and you are called by the Lord to service in the field of prison ministry, consider joining the world-wide outreach of the </FONT><A href="http://prisonministry.net/" target=_blank><FONT size=2>International Network of Prison Ministries</FONT></A><FONT size=2>.<BR><BR>If you are a ministry or a Christian publisher we will help you to make your publications available to millions of inmates and Prison Ministries world-wide. Contact us using the </FONT><A href="http://prisonministry.net/root/email" target=_blank><FONT size=2>Secure Email From</FONT></A><FONT size=2>.<BR><BR>You will see this page only once, until registered and logged in. To read this page again - simply log off.<BR><BR>Please pray for prisoners around the world, like we do here - daily!<BR><BR>Your friendly<BR>Admin<BR></FONT></DIV> '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 is it close? ===== define('TEXT_MAIN', ' <DIV><FONT size=2>We are glad to have you at the website of the largest wholesaler of Prison Ministry-related literature on the Internet.<BR><BR>At this website you will find Bibles, New Testaments, Christian literature, Bible-study books, tracts, paintings and other categories of Christian production. The goal of our Christian Literature is to bring inmates home - changed!<BR><BR>Among our priceless books - true testimonies of tough criminals whose lives have been changed by the Lord. After accepting they did not get "rehabilitated" - they became changed. Our good Lord grants them all a completely new life.<BR><BR>The Bible says: "Therefore if any man be in Christ, he is a new creature; old things are passed away; behold, all things are become new" (2 Cor. 5:17).<BR><BR>Please browse these fine LifeChanging books and read closely the reviews. Read all of them on each book or publication. It will help you understand how God works in making CHRISTIANS out of CRIMINALS. Order our materials and pray that Jesus Christ will perform His miracles in your sons, daughters, husbands and wives...<BR><BR>As a registered Publisher we are able to send materials to the US prisons. Mailings of books to US inmates from households are not permitted by the USA Department of Correction regulations.<BR><BR>If as a Christian you are impacted by the stories told, and you are called by the Lord to service in the field of prison ministry, consider joining the world-wide outreach of the </FONT><A href="http://prisonministry.net/" target=_blank><FONT size=2>International Network of Prison Ministries</FONT></A><FONT size=2>.<BR><BR>If you are a ministry or a Christian publisher we will help you to make your publications available to millions of inmates and Prison Ministries world-wide. Contact us using the </FONT><A href="http://prisonministry.net/root/email" target=_blank><FONT size=2>Secure Email From</FONT></A><FONT size=2>.<BR><BR>You will see this page only once, until registered and logged in. To read this page again - simply log off.<BR><BR>Please pray for prisoners around the world, like we do here - daily!<BR><BR>Your friendly<BR>Admin<BR></FONT></DIV> '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 no. it gives Parse error: parse error, unexpected T_STRING in /home/free/public_html/includes/languages/english/index.php on line 27 Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 Hiya The immediate thing that strikes me here is that I think the break code <br><br> should be in lower case. Also the double quotes around the bible passages might need to be single quotes with the \ infront of them, eg Bible says: \'Therefore if any man be in Christ, he is a new creature; old things are passed away; behold, all things are become new\' (2 Cor. 5:17). Also you need to close up after <DIV> at the beginning and end (sorry if this is obvious). I hope this helps. Wendy Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 I got the message you are getting before I found out about the quotes. Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2005 Share Posted January 5, 2005 no. it gives Parse error: parse error, unexpected T_STRING in /home/free/public_html/includes/languages/english/index.php on line 27 <{POST_SNAPBACK}> You should start over with a clean copy of the file, and enter your text in between the single quote marks, leaving the rest of the file alone. Don't worry about bold and line breaks etc. until you get the text change part figured out. One thing at a time. Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 Baddog (sorry I called you Bulldog earlier) - that's a very good tip. Walk before you run! away, far away from any computer you come across!!!! Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 Here is what I have now. Error in line 13 -- ??? ===== <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<DIV><FONT size=2>We are glad to have you at the website of the largest wholesaler of Prison Ministry-related literature on the Internet.<br><br>At this website you will find Bibles, New Testaments, Christian literature, Bible-study books, tracts, paintings and other categories of Christian production. The goal of our Christian Literature is to bring inmates home - changed!<br><br>Among our priceless books - true testimonies of tough criminals whose lives have been changed by the Lord. After accepting they did not get "rehabilitated" - they became changed. Our good Lord grants them all a completely new life.<br><br>The Bible says:/'Therefore if any man be in Christ, he is a new creature; old things are passed away; behold, all things are become new/' (2 Cor. 5:17).<br><br>Please browse these fine LifeChanging books and read closely the reviews. Read all of them on each book or publication. It will help you understand how God works in making CHRISTIANS out of CRIMINALS. Order our materials and pray that Jesus Christ will perform His miracles in your sons, daughters, husbands and wives...<br><br>As a registered Publisher we are able to send materials to the US prisons. Mailings of books to US inmates from households are not permitted by the USA Department of Correction regulations.<br><br>If as a Christian you are impacted by the stories told, and you are called by the Lord to service in the field of prison ministry, consider joining the world-wide outreach of the </FONT><A href="http://prisonministry.net/" target=_blank><FONT size=2>International Network of Prison Ministries</FONT></A><FONT size=2>.<BR><BR>If you are a ministry or a Christian publisher we will help you to make your publications available to millions of inmates and Prison Ministries world-wide. Contact us using the </FONT><A href="http://prisonministry.net/root/email" target=_blank><FONT size=2>Secure Email From</FONT></A><FONT size=2>.<br><br>You will see this page only once, until registered and logged in. To read this page again - simply log off.<BR><BR>Please pray for prisoners around the world, like we do here - daily!<BR><BR>Your friendly<br>Admin<br></FONT></DIV>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
SunnyWales Posted January 5, 2005 Share Posted January 5, 2005 Hiya - I've spotted double quotes around rehabilitation. I hope this works. Post again if it doesn't. Wendy Wendy Go on spread some sunshine! Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 closed fresh start http://www.oscommerce.com/forums/index.php?showtopic=129004 Link to comment Share on other sites More sharing options...
FreeBible.us Posted January 5, 2005 Author Share Posted January 5, 2005 Hiya - I've spotted double quotes around rehabilitation. I hope this works. Post again if it doesn't. Wendy <{POST_SNAPBACK}> Thank you, changed to /'reablitated/' Parse error: parse error, unexpected T_STRING in /home/free/public_html/includes/languages/english/index.php on line 13 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.