Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 51
  1. #21
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Quote Originally Posted by clydejones View Post
    Just to double check:

    #centercolumnFooter {
    margin: 0;
    padding: 0;
    }

    Make sure this is in both of your stylesheets.
    includes/templates/trublu/css/stylesheet.css and stylesheet_new.css
    ----------

    2. in includes/languages/english/extra_definitions/trublu
    create a new file centercolumn_footer_defines.php

    define ('CENTERCOLUMN_FOOTER_TEXT','You can place any text you want here');

    3. open includes/templates/trublu/templates/tpl_index_default.php

    scroll to the bottom of the file and just above the last </div>

    insert the following statement:

    <div id="centercolumnFooter"><?php echo CENTERCOLUMN_FOOTER_TEXT; ?> </div>
    I've done all that. Checked, and rechecked to make sure all were where they should be. Also, I asked if the div statement in centercolumn_footer_defines.php should be inside <?php ?>

    If I don't wrap the statement in php, then the entire statement (just the statement) shows up at the very top of the page. By wrapping it in php, it doesn't show up at the very top of the page, but, it doesn't show up at all.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  2. #22
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customize Center Page Layout

    No it is just another defines statement like the hundreds of others in the language files. So you there is no need to surround it as you describe.

    Take a look at the bottom of the page HERE to see it in action.

  3. #23
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Ok, I removed the php from the file. Take a look at the site, and you'll see what I mean at the very top of the page.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

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

    Default Re: Customize Center Page Layout

    could you post the contents of tpl_index_default.php
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #25
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Here are the contents of tpl_index_default.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">
    <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
    ?>
    <div id="centercolumnFooter"><?php echo CENTERCOLUMN_FOOTER_TEXT; ?> </div>
    </div>
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  6. #26
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Quote Originally Posted by clydejones View Post
    No it is just another defines statement like the hundreds of others in the language files. So you there is no need to surround it as you describe.

    Take a look at the bottom of the page HERE to see it in action.
    Every single defines page in the language files that I've looked at has the defines inside of the php code. When I simply put define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add'); into a blank file, save it, then upload it, then I get define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add'); at the very top of every page.

    When I do this:

    <?php
    define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add');
    ?>

    I doesn't show up at the top of the pages. It doesn't show up at all.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  7. #27
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    What editor are you using? I found a couple of places in your file where the .php had an extra space in it like .p hp and .ph p. I don't know if it makes a difference but here is a cleaned version
    Code:
    <?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
    ?>
    <div id="centercolumnFooter"><?php echo CENTERCOLUMN_FOOTER_TEXT; ?> </div>
    </div>
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  8. #28
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    I use notepad as my editor. Sorry, your changes had no effect.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  9. #29
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    you are correct the define files are structured

    <?php
    copyright comments
    define
    define
    ?php>
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  10. #30
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    I've followed clydes instructions to the letter, both with and without the php in defines file, yet, I cannot get the text to appear in the center column or even register as a division when I list them in firefox.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. How do I customize page layout?
    By zc_fan in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 May 2011, 03:11 AM
  2. Customize one category's page layout
    By timstoel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Dec 2008, 09:39 PM
  3. Center Page Layout
    By a4tech in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2007, 08:15 AM
  4. Customize Page Layout
    By weflorencekoh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Feb 2007, 03:14 PM
  5. customize a page layout
    By mikajlo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Nov 2006, 01:56 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