Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Hardcoded Lorem Ipsum text in TemplateMonster template

Hardcoded Lorem Ipsum text in TemplateMonster template

Views: 2,084

Results 1 to 11 of 11
24 Mar 2014, 3:21 AM
#1
ksr01 avatar

ksr01

New Zenner

Join Date:
Mar 2014
Location:
Manchester, New Hampshire, United States
Posts:
11
Plugin Contributions:
0

Hardcoded Lorem Ipsum text in TemplateMonster template

I have a new Zen-Cart set up, installed via Softaculous, no plugins or addons. It is set up with a Template Monster Template that came with some sample products. I've had decent success making changes as I go, but there's one thing that stymies me - the stupid Lorem Ipsum nonsense on the front page under the Welcome banner.

http://fightingsheepdog.com/store/

I've looked up a few different fixes, and they all seem to point to editing the index.php file in /public_html/store/includes/languages/english/theme718 but when I edit the lorem ipsum text in notepad, save and re-upload, the site goes blank white. I'm only editing the lorem ipsum text, but even the smallest change wrecks the site's ability to load, so I've had to replace the index.php file from the original every time. I'm aware that Template Monster doesn't get a lot of love here, but this template is meeting my needs - with the exception that the obvious solution is not working. Any ideas? This should be a simple fix, I thought. I've looked for the file in PHPmyAdmin, but I don't see it in the database.

24 Mar 2014, 5:00 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

Admin > Tools > Define Pages - did you look into that?

Their content does not necessarily show up in some searches.

24 Mar 2014, 12:35 PM
#3
ksr01 avatar

ksr01

New Zenner

Join Date:
Mar 2014
Location:
Manchester, New Hampshire, United States
Posts:
11
Plugin Contributions:
0

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

frank18:

Admin > Tools > Define Pages - did you look into that?

Their content does not necessarily show up in some searches.

Yes, I checked - the text does not show up there. There's a define_main_page that's blank, but anything I type there shows up under the Lorem
Ipsum text. If I could delete the lorem ipsum nonsense, the define_main_page would let me replace it after.

When searching my site with Tools ->Developer Toolkit, the lorem text shows up only in the override template:

/public_html/store/includes/languages/english/theme718/index.php

but when I edit it in notepad to remove or change it, it won't work upon re-uploading it. Surely there's got to be a way to edit this chunk of text without the site self destructing.

24 Mar 2014, 12:48 PM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

KsR01:

Yes, I checked - the text does not show up there. There's a define_main_page that's blank, but anything I type there shows up under the Lorem
Ipsum text. If I could delete the lorem ipsum nonsense, the define_main_page would let me replace it after.

When searching my site with Tools ->Developer Toolkit, the lorem text shows up only in the override template:

/public_html/store/includes/languages/english/theme718/index.php

but when I edit it in notepad to remove or change it, it won't work upon re-uploading it. Surely there's got to be a way to edit this chunk of text without the site self destructing.
Is your site UTF-8? (just checked Yes it is)

Try using a proper editor like notepad++

and change the encoding to "encode in utf-8 without BOM"
before saving the file

24 Mar 2014, 1:23 PM
#5
ksr01 avatar

ksr01

New Zenner

Join Date:
Mar 2014
Location:
Manchester, New Hampshire, United States
Posts:
11
Plugin Contributions:
0

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

gilby:

Is your site UTF-8? (just checked Yes it is)

Try using a proper editor like notepad++

and change the encoding to "encode in utf-8 without BOM"
before saving the file

Should be - but I'd be happy to check.

I downloaded notepad++ (seems very nice) and tried what you suggested when editing and saving, but upon uploading the new edited index file, no joy. It still returns a blank white page until I revert it to the original.

24 Mar 2014, 1:41 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

Exactly how are you editing the text? Even one stray quote mark (or one too many removed) or some other characters can cause a fatal error. If you post your edited file here (in PHP tags) we can probably find the error.

24 Mar 2014, 1:48 PM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

KsR01:

... There's a define_main_page that's blank, but anything I type there shows up under the Lorem
Ipsum text....

That's the part that puzzles me....

If your local machine was a Linux box you could download your file system and quickly find the Lorem Ipsum using 'grep' - don't know how long that would take on a Windows box.....

24 Mar 2014, 2:27 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

Also check your /logs folder for error log files related to the blank page.

24 Mar 2014, 4:35 PM
#9
ksr01 avatar

ksr01

New Zenner

Join Date:
Mar 2014
Location:
Manchester, New Hampshire, United States
Posts:
11
Plugin Contributions:
0

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

gjh42:

Exactly how are you editing the text? Even one stray quote mark (or one too many removed) or some other characters can cause a fatal error. If you post your edited file here (in PHP tags) we can probably find the error.

It's the three lines like TEXT_GREETING_GUEST. If I edit that text in any way, even just adding a single character, it screws up. I tried just adding a few letters in the middle of "lorem gggipsum" and that did it. Make any changes to the index.php file and upon replacing it, the site goes blank white. It's weird.

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: index.php 19537 2011-09-20 17:14:44Z drbyte $
 */

define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

// values for compare system
  define('COMPARE_DEFAULT', 'Add to compare');
  define('COMPARE_DEFAULT_1', 'Compare');
  define('COMPARE_REMOVE', 'remove');
  define('COMPARE_COUNT_START', 'up to ');
  define('COMPARE_COUNT_END', ' items');

// Showcase vs Store
if (STORE_STATUS == '0') {
  define('TEXT_GREETING_GUEST', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ');
} else {
  define('TEXT_GREETING_GUEST', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ');
}

define('TEXT_GREETING_PERSONAL', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ');

define('TEXT_INFORMATION', 'Define your main Index page copy here.');

//moved to english
//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

//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') || (zen_check_url_get_terms()) ) {
  // This section deals with product-listing page contents
  define('HEADING_TITLE', 'Available Products');
  define('TABLE_HEADING_IMAGE', 'Product 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', 'Filter Results by:');
  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') {
  // This section deals with the "home" page at the top level with no options/products selected
  /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
  define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} elseif ($category_depth == 'nested') {
  // This section deals with displaying a subcategory
  /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
  define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.'); 
}
?>
24 Mar 2014, 4:47 PM
#10
ksr01 avatar

ksr01

New Zenner

Join Date:
Mar 2014
Location:
Manchester, New Hampshire, United States
Posts:
11
Plugin Contributions:
0

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

You know what? I discovered I can delete it even if I can't change it. Good enough, I can use define pages editor to add the text I want. What a nightmare. Thanks for your help, guys.

24 Mar 2014, 10:50 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Hardcoded Lorem Ipsum text in TemplateMonster template

KsR01:

It's the three lines like TEXT_GREETING_GUEST. If I edit that text in any way, even just adding a single character, it screws up. I tried just adding a few letters in the middle of "lorem gggipsum" and that did it. Make any changes to the index.php file and upon replacing it, the site goes blank white. It's weird.

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: index.php 19537 2011-09-20 17:14:44Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // values for compare system define('COMPARE_DEFAULT', 'Add to compare'); define('COMPARE_DEFAULT_1', 'Compare'); define('COMPARE_REMOVE', 'remove'); define('COMPARE_COUNT_START', 'up to '); define('COMPARE_COUNT_END', ' items'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. '); } else { define('TEXT_GREETING_GUEST', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. '); } define('TEXT_GREETING_PERSONAL', 'Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. '); define('TEXT_INFORMATION', 'Define your main Index page copy here.'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //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') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product 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', 'Filter Results by:'); 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') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.'); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.'); } ?>

Although it seems that you've found a solution, the next thing I would have done was to see how TEXT_GREETING_GUEST was used. Perhaps some sort of verification of content or something was occurring. But the review of the logs folder should have also revealed necessary information.