Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    Thanks. let me know if you have any luck.

    Matt

  2. #12
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    I have removed all the HTML marks and it still does not work. I have now put them back as it is better to have no text there rather than some funny error message.

    Can anyone tell me the exact bits I am meant to remove? I have removed the uncomment text and the html arrows.

    Thanks

    matt

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Main Page Text Gone!!!

    I'd remove these:
    Code:
    <!-- deprecated - to use - uncomment
    <div id="" class="content">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></div>
    -->
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,816
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    That code is supposed to be commented out. The call in the code for the define page info is:
    Code:
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>
    in the includes/templates/default_template/templates/tpl_index_default.php
    verify that code is there and then we can work on why that code is not calling the define page in correctly
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #15
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    Hi

    Just checked the file and it seems to all be there - see below:


    <?php
    /**
    * Page Template
    *
    * Main index page<br />
    * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
    * Centerboxes are called as necessary
    *
    * @package templateSystem
    * @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: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
    */
    ?>
    <div class="centerColumn" id="indexDefault">
    <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?>

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->

    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
    * get the Define Main Page Text
    */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>

    <?php
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
    while (!$show_display_category->EOF) {
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php
    /**
    * display the Featured Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
    * display the Special Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
    <?php
    /**
    * display the New Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
    <?php
    /**
    * display the Upcoming Products Center Box
    */
    ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>


    <?php
    $show_display_category->MoveNext();
    } // !EOF
    ?>
    <


    Thanks

    Matt

  6. #16
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    This is probably a silly question-
    Is it enabled under Configuration/Define Page Status?
    Doug

  7. #17
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    Hi Doug

    Not a silly question as I'm no expert. It is set to 1, which I think is the correct setting.

    Matt

  8. #18
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    I figured out the issue. It was just the wrong permissions on the directories and files inside of languages/english. I found the following thread which reported similar errors I was having:

    http://www.zen-cart.com/forum/showthread.php?t=92363

    I went back in and realized my html_includes directory and my overrides folder were both closed off and not writable at all. Once I changed them to 777 my main text started appearing again.

  9. #19
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    @Jacdesigner

    To edit any of the define_pages files you must change your permissions to 777 prior to editing, then when finished change them back to 644.

    They do not need to be at 777 to be read by ZenCart if not editing.
    Correct me if I'm wrong, but correct permissions are directories at 755 and files at 644.
    Doug

  10. #20
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Main Page Text Gone!!!

    I'm not sure that this will solve my problem as the text for the main page is in the define main page file and so it is writeable!!

    Matt

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Edited main page & now it's gone!
    By sc436 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Feb 2011, 12:26 PM
  2. Sideboxes gone from right side on main page only
    By icklebits in forum Basic Configuration
    Replies: 17
    Last Post: 26 Nov 2009, 03:30 PM
  3. Main Page Define - Product Listing above Main Text?
    By SaMortensen in forum Basic Configuration
    Replies: 22
    Last Post: 31 Jul 2009, 05:12 AM
  4. Main page text into scrollable text
    By hardwiredtemplates in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Feb 2009, 11:52 PM
  5. Main page text into scrollable text?
    By rvagrrl in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2006, 06:50 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR