Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2014
    Location
    Manchester, New Hampshire, United States
    Posts
    11
    Plugin Contributions
    0

    Default 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.
    Last edited by KsR01; 24 Mar 2014 at 04:24 AM.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default 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.

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

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

    Quote Originally Posted by frank18 View Post
    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.

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

    Quote Originally Posted by KsR01 View Post
    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

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

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

    Quote Originally Posted by gilby View Post
    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.
    Last edited by KsR01; 24 Mar 2014 at 02:27 PM.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

    Quote Originally Posted by KsR01 View Post
    ... 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.....

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

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

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

    Default Re: Hardcoded Lorem Ipsum text in TemplateMonster template

    Quote Originally Posted by gjh42 View Post
    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 Code:
    <?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&trade; 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&trade; E-Commerce Solution.'); 
    }
    ?>

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

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. After I installed my template from TemplateMonster to my host, How do I edit TEXT
    By OscarMolof in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2012, 04:32 AM
  2. Lorem ipsum placeholder text from templatemonster
    By gavztheouch in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 19 Dec 2007, 09:53 PM
  3. Replies: 2
    Last Post: 27 May 2006, 02:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg