Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Home, login, account move from header to side

    Hi,

    Im using the futurezen template, which i must say is great.

    I would like to move the all the links that appear at the top (home, login) and move them into their own box above the catagories on the left hand side. That would include all the code that correct parses it if ssl is used.

    i'm trying my best to get my head round the over-ride system, am i right to think this sort of change requires the creation of a module, so it can be manipulated and moved by the admin sideboxes page?


    Thanks in advanced.


    Alan

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

    Default Re: Home, login, account move from header to side

    It doesn't *require* creating a new module, though you can if you wish to.

    I did this by copying the "navigation display" section from tpl_header.php to /includes/modules/my_template/column_left.php:
    PHP Code:
    * @version $Id: column_left.php 4274 2006-08-26 03:16:53Z drbyte $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    $column_box_default='tpl_box_default_left.php';
    ?>

    <!--gjh42 5/2/06 copied from tpl_header - tweaked for vertical -->
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
        <br class="clearBoth" />
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
        <br class="clearBoth" />
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>
        <br class="clearBoth" />
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
        <br class="clearBoth" />
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
        <br class="clearBoth" />
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
        <br class="clearBoth" />
    <?php }?>
    </ul>
    </div>
    <div class="navMainSearch forward"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    It sits at the top of the left sidebar. I don't have borders around my individual sideboxes, so it fits in fine. You may want to insert it a bit differently.

  3. #3
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Home, login, account move from header to side

    Thanks, I'll have a look tonight.

    Really appreciate this.

    Alan

  4. #4
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Home, login, account move from header to side

    Hi,

    Thanks for the code, it worked fine.


    Is there anyway to make this look exactly like all the rest of the side boxes?

    my php knowledge is practically nil, so any help is greatly appreciated.


    Alan

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

    Default Re: Home, login, account move from header to side

    You can probably do it using the stylesheet. There are two id's, "navMainWrapper" and "navMain" which are defined there. Unless you are still using the navbar in the header, you can apply the same styling to them as other sideboxes get.

    If you post a link to your site, it will be easier to help you.

  6. #6
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Home, login, account move from header to side

    Hi,

    I finally got it how i was thinking.

    Now i've noticed that the All Products under the Catagories menu is over the blue edge of the sidebox. this is still the case with or without catagories.

    Have a look and let me know what you suggest.

    http://shop.maialouise.co.uk

    I had this on the box i created too, but i was able to add a <BR> to it to sort that one out.

    Thanks

    Alan

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

    Default Re: Home, login, account move from header to side

    I just took a look and couldn't access the site.
    Will try again later.

  8. #8
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Home, login, account move from header to side

    Just typical, i recreate the server and it's not doing it now.

    Next question. How do i make the footer stay at the bottom of the window?

    Alan

 

 

Similar Threads

  1. Move Home & login in header
    By jamair in forum Basic Configuration
    Replies: 2
    Last Post: 19 Jul 2012, 08:27 PM
  2. Move home/login to ezpages header?
    By monkeypeach in forum Basic Configuration
    Replies: 1
    Last Post: 17 Sep 2008, 05:39 PM
  3. Move home/login to inside header?
    By kitschgifts in forum General Questions
    Replies: 2
    Last Post: 27 May 2008, 10:15 PM
  4. How to move Home, Login, Create Account
    By Robbyn7 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Aug 2007, 10:03 AM
  5. How do I move Home and Log In etc. to right side of header?
    By anduril3019 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jan 2007, 12:12 AM

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