Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Dec 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cant edit my define_main_page.php ?!

    i tried both of them, via define page and manualy by editing the file via ftp. still dosent work :S

    the text i write via admin panel at define main page saves in the box field but it dosent shows on main page, dont understand why? it works on the default theme:S

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

    Default Re: Cant edit my define_main_page.php ?!

    The banner areas are not output by define_main_page.php, so editing that will do nothing to the banners. The define page content should appear between these tags, so is not being output in the demo.
    Code:
    <div id="indexDefaultMainContent" class="content">
    	</div>
    What do you have in /includes/templates/your_template/templates/tpl_index_default.php around those tags? Post it here in code tags.

  3. #13
    Join Date
    Dec 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cant edit my define_main_page.php ?!

    <?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">
    <!-- 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
    ?>
    </div>

  4. #14
    Join Date
    Dec 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cant edit my define_main_page.php ?!

    Quote Originally Posted by gjh42 View Post
    The banner areas are not output by define_main_page.php, so editing that will do nothing to the banners. The define page content should appear between these tags, so is not being output in the demo.
    Code:
    <div id="indexDefaultMainContent" class="content">
    	</div>
    What do you have in /includes/templates/your_template/templates/tpl_index_default.php around those tags? Post it here in code tags.
    If i try " <div id="indexDefaultMainContent" class="content">Test</div> " just so i will se of i get any text at all. Dosent get any text at all on define main page

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

    Default Re: Cant edit my define_main_page.php ?!

    Code:
    <div id="indexDefaultMainContent" class="content">
    <?php // require($define_page); ?>
    </div>
    The // comments out the require, so define_main_page.php has been forcibly disabled by your template designer (a typical Template Monster behavior). Just remove the // and it will work as it should.

  6. #16
    Join Date
    Dec 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Cant edit my define_main_page.php ?!

    oh lol :S haha! its work! thanks alot.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can't edit "define_main_page.php"
    By AvenueBeads in forum General Questions
    Replies: 3
    Last Post: 3 Aug 2009, 04:27 PM
  2. want to add php code in define_main_page.php
    By parin123 in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2009, 04:27 PM
  3. Edit spanish define_main_page.php in fckeditor
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 May 2008, 05:16 PM
  4. unable to edit the define_main_page.php
    By zc-newbie in forum Customization from the Admin
    Replies: 2
    Last Post: 1 Oct 2006, 03:35 PM

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